summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
971573d)
BIND 9.9 and BIND 9.10 have different formats for geoip. Add a
function that DTRT, and test it slightly before doing it to all countries.
// USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
//
// USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
//
+<%- def country
+def country(c)
+ if scope.call_function('versioncmp', [@lsbmajdistrelease, '9']) <= 0
+ "geoip country " + c
+ else
+ "country_" + c
+ end
+end %->
+
country_BF;
country_BI;
country_BJ;
country_BF;
country_BI;
country_BJ;