right, this is an array
[mirror/dsa-puppet.git] / modules / named / templates / named.conf.acl.erb
1 //
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
4 //
5
6 acl Nagios {
7         <%=
8   str = ''
9   localinfo.keys.sort.each do |node|
10       if localinfo[node]['nagiosmaster']
11           keyinfo[node][0]['ipHostNumber'].each do |ip|
12               str += "\t" + ip + "/32;\n"
13           end
14       end
15   end
16   str
17 %>
18
19 };
20
21 // Africa
22 acl AF {
23         country_AO;
24         country_BF;
25         country_BI;
26         country_BJ;
27         country_BW;
28         country_CD;
29         country_CF;
30         country_CG;
31         country_CI;
32         country_CM;
33         country_CV;
34         country_DJ;
35         country_DZ;
36         country_EG;
37         country_EH;
38         country_ER;
39         country_ET;
40         country_GA;
41         country_GH;
42         country_GM;
43         country_GN;
44         country_GQ;
45         country_GW;
46         country_KE;
47         country_KM;
48         country_LR;
49         country_LS;
50         country_LY;
51         country_MA;
52         country_MG;
53         country_ML;
54         country_MR;
55         country_MU;
56         country_MW;
57         country_MZ;
58         country_NA;
59         country_NE;
60         country_NG;
61         country_RE;
62         country_RW;
63         country_SC;
64         country_SD;
65         country_SH;
66         country_SL;
67         country_SN;
68         country_SO;
69         country_ST;
70         country_SZ;
71         country_TD;
72         country_TG;
73         country_TN;
74         country_TZ;
75         country_UG;
76         country_YT;
77         country_ZA;
78         country_ZM;
79         country_ZW;
80 };
81
82 // Asia
83 acl AS {
84         country_AE;
85         country_AF;
86         country_AM;
87         country_AP; // global region Asia/Pacific
88         country_AZ;
89         country_BD;
90         country_BH;
91         country_BN;
92         country_BT;
93         country_CC;
94         country_CN;
95         country_CX;
96         country_CY;
97         country_GE;
98         country_HK;
99         country_ID;
100         country_IL;
101         country_IN;
102         country_IO;
103         country_IQ;
104         country_IR;
105         country_JO;
106         country_JP;
107         country_KG;
108         country_KH;
109         country_KP;
110         country_KR;
111         country_KW;
112         country_KZ;
113         country_LA;
114         country_LB;
115         country_LK;
116         country_MM;
117         country_MN;
118         country_MO;
119         country_MV;
120         country_MY;
121         country_NP;
122         country_OM;
123         country_PH;
124         country_PK;
125         country_PS;
126         country_QA;
127         country_SA;
128         country_SG;
129         country_SY;
130         country_TH;
131         country_TJ;
132         country_TL;
133         country_TM;
134         country_TW;
135         country_UZ;
136         country_VN;
137         country_YE;
138 };
139
140 // Europe
141 acl EU {
142         country_AD;
143         country_AL;
144         country_AT;
145         country_AX;
146         country_BA;
147         country_BE;
148         country_BG;
149         country_BY;
150         country_CH;
151         country_CZ;
152         country_DE;
153         country_DK;
154         country_EE;
155         country_ES;
156         country_EU; // global region Europe
157         country_FI;
158         country_FO;
159         country_FR;
160         country_GB;
161         country_GG;
162         country_GI;
163         country_GR;
164         country_HR;
165         country_HU;
166         country_IE;
167         country_IM;
168         country_IS;
169         country_IT;
170         country_JE;
171         country_LI;
172         country_LT;
173         country_LU;
174         country_LV;
175         country_MC;
176         country_MD;
177         country_ME;
178         country_MK;
179         country_MT;
180         country_NL;
181         country_NO;
182         country_PL;
183         country_PT;
184         country_RO;
185         country_RS;
186         country_RU;
187         country_SE;
188         country_SI;
189         country_SJ;
190         country_SK;
191         country_SM;
192         country_TR;
193         country_UA;
194         country_VA;
195 };
196
197 // North America
198 acl NA {
199         country_AG;
200         country_AI;
201         country_AN;
202         country_AW;
203         country_BB;
204         country_BL;
205         country_BM;
206         country_BS;
207         country_BZ;
208         country_CA;
209         country_CR;
210         country_CU;
211         country_DM;
212         country_DO;
213         country_GD;
214         country_GL;
215         country_GP;
216         country_GT;
217         country_HN;
218         country_HT;
219         country_JM;
220         country_KN;
221         country_KY;
222         country_LC;
223         country_MF;
224         country_MQ;
225         country_MS;
226         country_MX;
227         country_NI;
228         country_PA;
229         country_PM;
230         country_PR;
231         country_SV;
232         country_TC;
233         country_TT;
234         country_US;
235         country_VC;
236         country_VG;
237         country_VI;
238 };
239
240 // South America
241 acl SA {
242         country_AR;
243         country_BO;
244         country_BR;
245         country_CL;
246         country_CO;
247         country_EC;
248         country_FK;
249         country_GF;
250         country_GY;
251         country_PE;
252         country_PY;
253         country_SR;
254         country_UY;
255         country_VE;
256 };
257
258 // Oceania
259 acl OC {
260         country_AS;
261         country_AU;
262         country_CK;
263         country_FJ;
264         country_FM;
265         country_GU;
266         country_KI;
267         country_MH;
268         country_MP;
269         country_NC;
270         country_NF;
271         country_NR;
272         country_NU;
273         country_NZ;
274         country_PF;
275         country_PG;
276         country_PN;
277         country_PW;
278         country_SB;
279         country_TK;
280         country_TO;
281         country_TV;
282         country_UM;
283         country_VU;
284         country_WF;
285         country_WS;
286 };
287
288 // Antarctica
289 acl AN {
290         country_AQ;
291         country_BV;
292         country_GS;
293         country_HM;
294         country_TF;
295 };
296
297 acl undef {
298         country_A1;
299         country_A2;
300         8.8.8.8/32; // Google DNS Server fails with GeoIP
301         8.8.4.4/32; // Google DNS Server fails with GeoIP
302         208.67.222.222/32; // OpenDNS fails with GeoIP
303         208.67.220.220/32; // OpenDNS fails with GeoIP
304 };