[keepalived] Crans configuration

certbot_on_virtu
_shirenn 2020-08-07 17:31:02 +02:00
parent ea0d140a66
commit dfa8f6059b
10 changed files with 68 additions and 53 deletions

View File

@ -1,11 +1,16 @@
--- ---
keepalived: glob_keepalived:
dhcp: mail_source: keepalived@crans.org
password: "plopisverysecure" mail_destination: root@crans.org
id: 60 smtp_server: smtp.adm.crans.org
ipv6: no pool:
zones: dhcp:
- vlan: adh-nat password: "plopisverysecure"
ipv4: 100.64.0.99/16 id: 60
brd: 100.64.255.255 ipv6: no
notify: /usr/scripts/notify-dhcp
zones:
- vlan: adh-nat
ipv4: 100.64.0.99/16
brd: 100.64.255.255

View File

@ -3,8 +3,9 @@ interfaces:
adm: eth0 adm: eth0
srv: eth1 srv: eth1
keepalived_instances: lco_keepalived:
- name: proxy instances:
tag: VI_DAUR - name: proxy
state: MASTER tag: VI_DAUR
priority: 150 state: MASTER
priority: 150

View File

@ -5,8 +5,9 @@ interfaces:
bornes: eth1 bornes: eth1
switches: eth2 switches: eth2
keepalived_instances: loc_keepalived:
- name: radius instances:
tag: VI_RAD - name: radius
state: BACKUP tag: VI_RAD
priority: 100 state: BACKUP
priority: 100

View File

@ -3,8 +3,9 @@ interfaces:
adm: eth1 adm: eth1
srv: eth0 srv: eth0
keepalived_instances: loc_keepalived:
- name: proxy instances:
tag: VI_DAUR - name: proxy
state: BACKUP tag: VI_DAUR
priority: 100 state: BACKUP
priority: 100

View File

@ -7,8 +7,9 @@ interfaces:
wifi_new: ens1f0.22 wifi_new: ens1f0.22
zayo: ens1f0.26 zayo: ens1f0.26
keepalived_instances: loc_keepalived:
- name: router instances:
tag: VI_ROUT - name: router
state: MASTER tag: VI_ROUT
priority: 150 state: MASTER
priority: 150

View File

@ -10,12 +10,13 @@ interfaces:
srv: ens1f0.24 srv: ens1f0.24
zayo: ens1f0.26 zayo: ens1f0.26
keepalived_instances: loc_keepalived:
- name: radius instances:
tag: VI_RAD - name: radius
state: BACKUP tag: VI_RAD
priority: 50 state: BACKUP
- name: router priority: 50
tag: VI_ROUT - name: router
state: BACKUP tag: VI_ROUT
priority: 100 state: BACKUP
priority: 100

View File

@ -5,8 +5,9 @@ interfaces:
bornes: eth1 bornes: eth1
switches: eth2 switches: eth2
keepalived_instances: loc_keepalived:
- name: radius instances:
tag: VI_RAD - name: radius
state: MASTER tag: VI_RAD
priority: 150 state: MASTER
priority: 150

View File

@ -8,8 +8,9 @@ interfaces:
adh-nat: ens23 adh-nat: ens23
keepalived_instances: loc_keepalived:
- name: dhcp instances:
tag: VI_DHCP - name: dhcp
state: BACKUP tag: VI_DHCP
priority: 100 state: BACKUP
priority: 100

View File

@ -8,8 +8,9 @@ interfaces:
adh-nat: ens23 adh-nat: ens23
keepalived_instances: loc_keepalived:
- name: dhcp instances:
tag: VI_DHCP - name: dhcp
state: MASTER tag: VI_DHCP
priority: 150 state: MASTER
priority: 150

View File

@ -1,5 +1,7 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
- hosts: keepalived - hosts: keepalived
vars:
keepalived: "{{ glob_keepalived | combine(loc_keepalived) }}"
roles: roles:
- keepalived - keepalived