2 $bgp_peers = $::hostname ? {
3 mirror-accumu => '2001:6b0:1e:2::1c6/128 130.242.6.198/32',
4 mirror-skroutz => '2a03:e40:42:200::151:1/128 2a03:e40:42:200::151:2/128 154.57.0.249/32 154.57.0.250',
9 fail("Do not have bgp_peers set for $::hostname.")
12 @ferm::rule { 'dsa-bgp':
13 description => 'Allow BGP from peers',
15 rule => "&SERVICE_RANGE(tcp, bgp, ($bgp_peers))"
18 file { '/etc/network/interfaces.d/anycasted':
19 content => template('roles/anycast/interfaces.erb')