deploy network/interfaces stanza for anycast node
authorPeter Palfrader <peter@palfrader.org>
Wed, 1 Feb 2017 19:14:21 +0000 (20:14 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 1 Feb 2017 19:14:21 +0000 (20:14 +0100)
modules/roles/manifests/bgp.pp
modules/roles/templates/anycast/interfaces.erb [new file with mode: 0644]

index 315054e..5e3fbb0 100644 (file)
@@ -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 (file)
index 0000000..9c26d13
--- /dev/null
@@ -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