From ff5205dae81c774113481a1a88e4908fbb37b3a3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 1 Feb 2017 20:14:21 +0100 Subject: [PATCH] deploy network/interfaces stanza for anycast node --- modules/roles/manifests/bgp.pp | 5 +++++ modules/roles/templates/anycast/interfaces.erb | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 modules/roles/templates/anycast/interfaces.erb diff --git a/modules/roles/manifests/bgp.pp b/modules/roles/manifests/bgp.pp index 315054ecb..5e3fbb0ce 100644 --- a/modules/roles/manifests/bgp.pp +++ b/modules/roles/manifests/bgp.pp @@ -13,4 +13,9 @@ class roles::bgp { domain => '(ip ip6)', rule => "&SERVICE_RANGE(tcp, bgp, ($bgp_peers))" } + + file { '/etc/network/interfaces.d/anycasted': + content => template('roles/anycast/interfaces.erb') + } + } diff --git a/modules/roles/templates/anycast/interfaces.erb b/modules/roles/templates/anycast/interfaces.erb new file mode 100644 index 000000000..9c26d1313 --- /dev/null +++ b/modules/roles/templates/anycast/interfaces.erb @@ -0,0 +1,4 @@ +iface lo inet static + address 193.31.7.1/24 dev $IFACE +iface lo inet6 static + address 2a02:158:ffff:deb::1/64 -- 2.20.1