[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:
dhcp:
password: "plopisverysecure"
id: 60
ipv6: no
zones:
- vlan: adh-nat
ipv4: 100.64.0.99/16
brd: 100.64.255.255
glob_keepalived:
mail_source: keepalived@crans.org
mail_destination: root@crans.org
smtp_server: smtp.adm.crans.org
pool:
dhcp:
password: "plopisverysecure"
id: 60
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
srv: eth1
keepalived_instances:
- name: proxy
tag: VI_DAUR
state: MASTER
priority: 150
lco_keepalived:
instances:
- name: proxy
tag: VI_DAUR
state: MASTER
priority: 150

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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