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