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