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