// USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
//
-acl Nagios {
- 192.25.206.33/32;
-};
+<%- def country
+def country(c)
+ if scope.call_function('versioncmp', [@lsbmajdistrelease, '9']) <= 0
+ "geoip country " + c
+ else
+ "country_" + c
+ end
+end %->
// Africa
acl AF {
- country_AO;
+ <%= country "AO" %>;
country_BF;
country_BI;
country_BJ;
country_TC;
country_TT;
country_US;
+ country_UY;
country_VC;
country_VG;
country_VI;
country_PE;
country_PY;
country_SR;
- country_UY;
country_VE;
};
acl undef {
country_A1;
country_A2;
+ 8.8.8.8/32; // Google DNS Server fails with GeoIP
+ 8.8.4.4/32; // Google DNS Server fails with GeoIP
+ 208.67.222.222/32; // OpenDNS fails with GeoIP
+ 208.67.220.220/32; // OpenDNS fails with GeoIP
};