From e79124527c5a388d92b1ae536a10c63eabc51b48 Mon Sep 17 00:00:00 2001 From: shirenn <shirenn@crans.org> Date: Mon, 3 Aug 2020 01:01:36 +0200 Subject: [PATCH] [keepalived] gulp and sanitize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit De sombres choses ce sont passé cette nuit, des vlans avec des noms bizarre, des tirets qui se transforme en underscore. La seule chose qu'il faut retenir, c'est qu'au petit matin la lumière revient et wifinewserveur meurt; --- group_vars/{router.yml => keepalived.yml} | 3 --- host_vars/gulp.adm.crans.org.yml | 14 ++++++++++++++ host_vars/odlyd.adm.crans.org.yml | 1 - hosts | 3 ++- plays/keepalived.yml | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) rename group_vars/{router.yml => keepalived.yml} (94%) create mode 100644 host_vars/gulp.adm.crans.org.yml diff --git a/group_vars/router.yml b/group_vars/keepalived.yml similarity index 94% rename from group_vars/router.yml rename to group_vars/keepalived.yml index e9d73843..c507466e 100644 --- a/group_vars/router.yml +++ b/group_vars/keepalived.yml @@ -26,9 +26,6 @@ keepalived: - vlan: adm ipv4: 10.231.136.254/24 brd: 10.231.136.255 - - vlan: bornes - ipv4: 10.231.148.254/24 - brd: 10.231.148.255 - vlan: fil_pub ipv4: 185.230.78.254/24 brd: 185.230.78.255 diff --git a/host_vars/gulp.adm.crans.org.yml b/host_vars/gulp.adm.crans.org.yml new file mode 100644 index 00000000..1d244937 --- /dev/null +++ b/host_vars/gulp.adm.crans.org.yml @@ -0,0 +1,14 @@ +--- +interfaces: + adm: eno1.2 + fil_pub: ens1f0.23 + srv: ens1f0.24 + fil_new: ens1f0.21 + wifi_new: ens1f0.22 + zayo: ens1f0.26 + +keepalived_instances: + - name: router + tag: VI_ROUT + state: MASTER + priority: 150 diff --git a/host_vars/odlyd.adm.crans.org.yml b/host_vars/odlyd.adm.crans.org.yml index a5fdba0e..2e0d7c1e 100644 --- a/host_vars/odlyd.adm.crans.org.yml +++ b/host_vars/odlyd.adm.crans.org.yml @@ -9,7 +9,6 @@ interfaces: fil_pub: ens1f0.23 srv: ens1f0.24 zayo: ens1f0.26 - zrt: ens1f0.1132 keepalived_instances: - name: radius diff --git a/hosts b/hosts index 1c974fcb..50c1c610 100644 --- a/hosts +++ b/hosts @@ -9,7 +9,8 @@ dhcp.adm.crans.org -[router] +[keepalived] +gulp.adm.crans.org odlyd.adm.crans.org eap.adm.crans.org radius.adm.crans.org diff --git a/plays/keepalived.yml b/plays/keepalived.yml index 36d94ea3..dc2e7419 100755 --- a/plays/keepalived.yml +++ b/plays/keepalived.yml @@ -1,5 +1,5 @@ #!/usr/bin/env ansible-playbook --- -- hosts: router +- hosts: keepalived roles: - keepalived -- GitLab