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