2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 @def &SERVICE($proto, $port) = {
7 proto $proto mod state state (NEW) dport $port ACCEPT;
10 @def &SERVICE_RANGE($proto, $port, $srange) = {
11 proto $proto mod state state (NEW) dport $port @subchain "$port" { saddr ($srange) ACCEPT; }"
14 @def &TCP_UDP_SERVICE($port) = {
15 proto (tcp udp) dport $port ACCEPT;
18 @def &TCP_UDP_SERVICE_RANGE($port, $srange) = {
19 proto (tcp udp) dport $port @subchain "$port" { saddr ($srange) ACCEPT; }"
24 allnodeinfo = scope.lookupvar('deprecated::allnodeinfo')
25 roles = scope.lookupvar('deprecated::roles')
27 %w{nagiosmaster postgres_backup_server}.each do |role|
29 roles[role].each do |node|
30 next unless allnodeinfo.has_key?(node) and allnodeinfo[node].has_key?('ipHostNumber')
31 rolehost[role] << allnodeinfo[node]['ipHostNumber']
33 rolehost[role].flatten!.sort.uniq
37 allnodeinfo.keys.sort.each do |node|
38 next unless allnodeinfo[node].has_key?('ipHostNumber')
39 dbs << allnodeinfo[node]['ipHostNumber']
44 @def $HOST_NAGIOS_V4 = (<%= scope.function_filter_ipv4([rolehost['nagiosmaster']]).uniq.join(' ') %>);
45 @def $HOST_NAGIOS_V6 = (<%= scope.function_filter_ipv6([rolehost['nagiosmaster']]).uniq.join(' ') %>);
46 @def $HOST_NAGIOS = ( $HOST_NAGIOS_V4 $HOST_NAGIOS_V6 );
48 @def $HOST_PGBACKUPHOST_V4 = (<%= scope.function_filter_ipv4([rolehost['postgres_backup_server']]).uniq.join(' ') %>);
49 @def $HOST_PGBACKUPHOST_V6 = (<%= scope.function_filter_ipv6([rolehost['postgres_backup_server']]).uniq.join(' ') %>);
50 @def $HOST_PGBACKUPHOST = ( $HOST_PGBACKUPHOST_V4 $HOST_PGBACKUPHOST_V6 );
56 data = YAML.safe_load(File.open("/srv/puppet.debian.org/puppet-facts/fastly_ranges.yaml").read)
57 return data['addresses']
63 @def $HOST_FASTLY = (<%= getfastlyranges().join(' ') %>);
65 @def $HOST_DEBIAN_V4 = (<%= scope.function_filter_ipv4([dbs]).uniq.join(' ') %>);
66 @def $HOST_DEBIAN_V6 = (<%= scope.function_filter_ipv6([dbs]).uniq.join(' ') %>);
67 @def $HOST_DEBIAN = ($HOST_DEBIAN_V4 $HOST_DEBIAN_V6);
71 @def $weasel = ($weasel 86.59.118.144/28); # debian@sil
72 @def $weasel = ($weasel 86.59.21.32/29); # anguilla1
73 @def $weasel = ($weasel 86.59.30.32/28); # anguilla2
74 @def $weasel = ($weasel 213.235.231.192/26); # sil-noreply
75 @def $weasel = ($weasel 141.201.0.0/16); # uni salzburg
76 @def $weasel = ($weasel 194.118.0.0/16 62.46.0.0/15); # A1 Telekom
77 @def $weasel = ($weasel 2001:826:408::/48); # unisbg
78 @def $weasel = ($weasel 2001:858:10f::/48); # anguilla
81 @def $zobel = ($zobel 87.139.82.80/32); # exit.credativ.com
82 @def $zobel = ($zobel 87.193.134.192/27); # credativ qsc
83 @def $zobel = ($zobel 94.79.138.160/29); # credativ Unitiymedia
84 @def $zobel = ($zobel 78.47.2.104/29); # baldur, bragi, saga
85 @def $zobel = ($zobel 217.6.179.48/29); # credativ DTAG
86 @def $zobel = ($zobel 62.154.226.64/27); # credativ DTAG 2
87 @def $zobel = ($zobel 92.198.42.24/29); # DG-i Office
88 @def $zobel = ($zobel 93.94.128.0/21); # DG-i AS
89 @def $zobel = ($zobel 195.49.152.0/22); # DG-i AS
90 @def $zobel = ($zobel 194.187.64.0/22); # DG-i AS
91 @def $zobel = ($zobel 88.99.108.200/29); # buri, dag, ...
92 @def $zobel = ($zobel 2001:6f8:1215::/48); # baldur
93 @def $zobel = ($zobel 2001:6f8:928::/48); # WS2
94 @def $zobel = ($zobel 2a01:198:549::/48); # WGS20
95 @def $zobel = ($zobel 2a01:198:6b2::/48); # AdS20
96 @def $zobel = ($zobel 2a02:158::/32); # DG-i AS
97 @def $zobel = ($zobel 2003:5b:203b::/48); # credativ DTAG v6
98 @def $zobel = ($zobel 2a01:4f8:10a:1504::/64); # buri, dag, ....
101 @def $luca = ($luca 162.210.192.22); # jump snafu.emyr.net
102 @def $luca = ($luca 2604:9a00:2010:a041:4:ffff:a2d2:c016); # jump snafu.emyr.net
105 @def $tfheen = ($tfheen 178.255.151.162); # vuizook
106 @def $tfheen = ($tfheen 51.174.0.0/15); # Altibox
107 @def $tfheen = ($tfheen 2a02:20c8:2640::/64); # vuizook
108 @def $tfheen = ($tfheen 2a01:798::/29); # Altibox
111 @def $jcristau = ($jcristau 82.255.47.115/32); # home
112 @def $jcristau = ($jcristau 62.210.122.202/32); # topinambour
113 @def $jcristau = ($jcristau 2a01:e35:2ff2:f730::/61); # home
114 @def $jcristau = ($jcristau 2001:bc8:3f1d::/48); # topinambour
116 @def $master = (82.195.75.110 2001:41b8:202:deb:216:36ff:fe40:4001); # master.debian.org
117 @def $people = (5.153.231.30 2001:41c8:1000:21::21:30); # paradis.debian.org
118 @def $draghi = (82.195.75.106 2001:41b8:202:deb:1a1a:0:52c3:4b6a); # draghi.debian.org
120 @def $DSA_IPS = ($weasel $zobel $luca $tfheen $jcristau $master $people $draghi);