Add relay01 and relay02 hosts
This commit is contained in:
parent
ca03926094
commit
e6a6e32755
5 changed files with 101 additions and 0 deletions
47
group_vars/relay.yml
Normal file
47
group_vars/relay.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
---
|
||||||
|
network_dns_servers:
|
||||||
|
- 172.20.20.10
|
||||||
|
- 172.20.21.7
|
||||||
|
- 172.20.21.8
|
||||||
|
network_dns_search:
|
||||||
|
- foo.sh
|
||||||
|
network_default_gateway: 37.16.96.145
|
||||||
|
|
||||||
|
network_vip_interfaces:
|
||||||
|
- device: vio0
|
||||||
|
vhid: 5
|
||||||
|
ipaddr: 172.20.20.5
|
||||||
|
netmask: 255.255.252.0
|
||||||
|
pass: "{{ vip5_pass }}"
|
||||||
|
priority: "{{ vip150_priority }}"
|
||||||
|
- device: vio1
|
||||||
|
vhid: 150
|
||||||
|
ipaddr: 37.16.96.150
|
||||||
|
netmask: 255.255.255.240
|
||||||
|
pass: "{{ vip150_pass }}"
|
||||||
|
priority: "{{ vip150_priority }}"
|
||||||
|
- device: vio0
|
||||||
|
vhid: 6
|
||||||
|
ipaddr: 172.20.20.6
|
||||||
|
netmask: 255.255.252.0
|
||||||
|
pass: "{{ vip6_pass }}"
|
||||||
|
priority: "{{ vip151_priority }}"
|
||||||
|
- device: vio1
|
||||||
|
vhid: 151
|
||||||
|
ipaddr: 37.16.96.151
|
||||||
|
netmask: 255.255.255.240
|
||||||
|
pass: "{{ vip151_pass }}"
|
||||||
|
priority: "{{ vip151_priority }}"
|
||||||
|
- device: vio1
|
||||||
|
vhid: 152
|
||||||
|
ipaddr: 37.16.96.152
|
||||||
|
netmask: 255.255.255.240
|
||||||
|
pass: "{{ vip152_pass }}"
|
||||||
|
priority: "{{ vip152_priority }}"
|
||||||
|
|
||||||
|
firewall_raw:
|
||||||
|
- pass quick proto carp
|
||||||
|
firewall_in:
|
||||||
|
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||||
|
- {proto: tcp, port: 636}
|
||||||
|
- {proto: tcp, port: 6514}
|
17
host_vars/relay01.home.foo.sh.yml
Normal file
17
host_vars/relay01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
vmhost: vmhost01.home.foo.sh
|
||||||
|
network_interfaces:
|
||||||
|
- device: vio0
|
||||||
|
vlan: 20
|
||||||
|
mac: 52:54:00:ac:dc:53
|
||||||
|
ipaddr: 172.20.21.83
|
||||||
|
netmask: 255.255.252.0
|
||||||
|
proto: static
|
||||||
|
- device: vio1
|
||||||
|
vlan: 102
|
||||||
|
proto: none
|
||||||
|
|
||||||
|
# kludge advskew values for carps
|
||||||
|
vip150_priority: 120
|
||||||
|
vip151_priority: 240
|
||||||
|
vip152_priority: 120
|
17
host_vars/relay02.home.foo.sh.yml
Normal file
17
host_vars/relay02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
vmhost: vmhost02.home.foo.sh
|
||||||
|
network_interfaces:
|
||||||
|
- device: vio0
|
||||||
|
vlan: 20
|
||||||
|
mac: 52:54:00:ac:dc:54
|
||||||
|
ipaddr: 172.20.21.84
|
||||||
|
netmask: 255.255.252.0
|
||||||
|
proto: static
|
||||||
|
- device: vio1
|
||||||
|
vlan: 102
|
||||||
|
proto: none
|
||||||
|
|
||||||
|
# kludge advskew values for carps
|
||||||
|
vip150_priority: 240
|
||||||
|
vip151_priority: 120
|
||||||
|
vip152_priority: 240
|
5
hosts
5
hosts
|
@ -57,6 +57,10 @@ print01.home.foo.sh
|
||||||
proxy01.home.foo.sh
|
proxy01.home.foo.sh
|
||||||
proxy02.home.foo.sh
|
proxy02.home.foo.sh
|
||||||
|
|
||||||
|
[relay]
|
||||||
|
relay01.home.foo.sh
|
||||||
|
relay02.home.foo.sh
|
||||||
|
|
||||||
[shell]
|
[shell]
|
||||||
shell01.foo.sh
|
shell01.foo.sh
|
||||||
shell02.foo.sh
|
shell02.foo.sh
|
||||||
|
@ -105,3 +109,4 @@ fsolgw
|
||||||
log
|
log
|
||||||
ns
|
ns
|
||||||
proxy
|
proxy
|
||||||
|
relay
|
||||||
|
|
15
playbooks/relay.yml
Normal file
15
playbooks/relay.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
- import_playbook: "include/deploy-kvm-guest.yml myhosts=relay"
|
||||||
|
|
||||||
|
- name: configure instance
|
||||||
|
hosts: relay
|
||||||
|
user: root
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- "{{ ansible_private }}/vars.yml"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- base
|
||||||
|
- ifstated
|
||||||
|
- relayd
|
Loading…
Add table
Add a link
Reference in a new issue