add mirror-accumu as anycast bgp host
[mirror/dsa-puppet.git] / modules / roles / manifests / bgp.pp
index 315054e..f8292df 100644 (file)
@@ -1,7 +1,9 @@
 class roles::bgp {
        $bgp_peers = $::hostname ? {
-               bilbao    => '2001:41c9:2:13c::/128 89.16.162.0/32',
-               default    => undef,
+               mirror-bytemark => '2001:41c9:2:13c::2/128 89.16.162.2/32',
+               mirror-conova => '2a02:16a8:5404:199::25/128 217.196.157.53/32',
+               mirror-accumu => '2001:6b0:1e:2::1c6/128 130.242.6.198/32',
+               default       => undef,
        }
 
        if ! $bgp_peers {
@@ -13,4 +15,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')
+       }
+
 }