From: Peter Palfrader Date: Wed, 1 Feb 2017 19:14:21 +0000 (+0100) Subject: deploy network/interfaces stanza for anycast node X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ff5205dae81c774113481a1a88e4908fbb37b3a3;p=mirror%2Fdsa-puppet.git deploy network/interfaces stanza for anycast node --- 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