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 62.99.152.176/28); # campus sbg
77 @def $weasel = ($weasel 194.118.0.0/16 62.46.0.0/15); # A1 Telekom
79 @def $zobel = ($zobel 87.139.82.80/32); # exit.credativ.com
80 @def $zobel = ($zobel 87.193.134.192/27); # credativ qsc
81 @def $zobel = ($zobel 94.79.138.160/29); # credativ Unitiymedia
82 @def $zobel = ($zobel 78.47.2.104/29); # baldur, bragi, saga
83 @def $zobel = ($zobel 217.6.179.48/29); # credativ DTAG
84 @def $zobel = ($zobel 62.154.226.64/27); # credativ DTAG 2
85 @def $zobel = ($zobel 92.198.42.24/29); # DG-i Office
86 @def $zobel = ($zobel 93.94.128.0/21); # DG-i AS
87 @def $zobel = ($zobel 195.49.152.0/22); # DG-i AS
88 @def $zobel = ($zobel 194.187.64.0/22); # DG-i AS
89 @def $zobel = ($zobel 88.99.108.200/29); # buri, dag, ...
91 @def $luca = ($luca 162.210.192.22); # jump snafu.emyr.net
93 @def $tfheen = ($tfheen 178.255.151.162); # vuizook
94 @def $tfheen = ($tfheen 51.174.0.0/15); # Altibox
96 @def $jcristau = ($jcristau 82.255.47.115/32); # home
97 @def $jcristau = ($jcristau 62.210.122.202/32); # topinambour
98 @def $master = (82.195.75.110); # master.debian.org
99 @def $people = (5.153.231.30); # paradis.debian.org
100 @def $DSA_IPS = ($weasel $zobel $luca $tfheen $jcristau $master $people);
103 @def $weasel6 = ($weasel6 2001:826:408::/48); # unisbg
104 @def $weasel6 = ($weasel6 2001:858:10f::/48); # anguilla
106 @def $zobel6 = ($zobel6 2001:6f8:1215::/48); # baldur
107 @def $zobel6 = ($zobel6 2001:6f8:928::/48); # WS2
108 @def $zobel6 = ($zobel6 2a01:198:549::/48); # WGS20
109 @def $zobel6 = ($zobel6 2a01:198:6b2::/48); # AdS20
110 @def $zobel6 = ($zobel6 2a02:158::/32); # DG-i AS
111 @def $zobel6 = ($zobel6 2003:5b:203b::/48); # credativ DTAG v6
112 @def $zobel6 = ($zobel6 2a01:4f8:10a:1504::/64); # buri, dag, ....
114 @def $luca6 = ($luca6 2604:9a00:2010:a041:4:ffff:a2d2:c016); # jump snafu.emyr.net
116 @def $tfheen6 = ($tfheen6 2a02:20c8:2640::/64); # vuizook
117 @def $tfheen6 = ($tfheen6 2a01:798::/29); # Altibox
118 @def $jcristau6 = ();
119 @def $jcristau6 = ($jcristau6 2a01:e35:2ff2:f730::/61); # home
120 @def $jcristau6 = ($jcristau6 2001:bc8:3f1d::/48); # topinambour
121 @def $master6 = (2001:41b8:202:deb:216:36ff:fe40:4001); # master.debian.org
122 @def $DSA_V6_IPS = ($weasel6 $zobel6 $luca6 $tfheen6 $jcristau6 $master6);
124 @def $USER_joerg = ();
125 @def $USER_joerg = ($USER_joerg 213.146.108.160/29);
126 @def $USER_joerg = ($USER_joerg 46.4.205.32);
127 @def $USER_joerg6 = ();
128 @def $USER_joerg6 = ($USER_joerg6 2a02:248:1005::/48);
129 @def $USER_joerg6 = ($USER_joerg6 2a01:4f8:131:1520::6667);
131 @def $BUILDD_SSH_ACCESS = ();
132 @def $BUILDD_SSH_ACCESS = ($BUILDD_SSH_ACCESS 209.87.16.60); # wuiet
133 @def $BUILDD_SSH_ACCESS = ($BUILDD_SSH_ACCESS 97.107.116.29); # master
134 @def $BUILDD_SSH_ACCESS = ($BUILDD_SSH_ACCESS 82.195.75.110); # new-master