]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geodns/templates/default/config.erb
Configure gdnsd to only listen on external addresses
[chef.git] / cookbooks / geodns / templates / default / config.erb
index cd53c2c2d915b628cc02b7fa6a1a29f7b3630e17..2d1ed8ef01d2f1ae3af9b23214bfea352cc072f8 100644 (file)
@@ -1,9 +1,13 @@
+options => {
+  listen => [ <%= node.ipaddresses(:role => :external).join(", ") %> ]
+}
+
 plugins => {
   geoip => {
     maps => {
       country => {
-        geoip_db => /usr/share/GeoIP/GeoIPv6.dat
-        datacenters => [ad,ae,af,ag,ai,al,am,ao,ap,aq,ar,as,at,au,aw,ax,az,ba,bb,bd,be,bf,bg,bh,bi,bj,bl,bm,bn,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,ck,cl,cm,cn,co,cr,cu,cv,cx,cy,cz,de,dj,dk,dm,do,dz,ec,ee,eg,eh,er,es,et,eu,fi,fj,fk,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gu,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,il,im,in,io,iq,ir,is,it,je,jm,jo,jp,ke,kg,kh,ki,km,kn,kp,kr,kw,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mf,mg,mh,mk,ml,mm,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,mz,na,nc,ne,nf,ng,ni,nl,no,np,nr,nu,nz,om,pa,pe,pf,pg,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,sv,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tr,tt,tv,tw,tz,ua,ug,um,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,xx,ye,yt,za,zm,zw]
+        geoip2_db => /var/lib/GeoIP/GeoLite2-Country.mmdb
+        datacenters => [ad,ae,af,ag,ai,al,am,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,bd,be,bf,bg,bh,bi,bj,bl,bm,bn,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,ck,cl,cm,cn,co,cr,cu,cv,cx,cy,cz,de,dj,dk,dm,do,dz,ec,ee,eg,eh,er,es,et,fi,fj,fk,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gu,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,il,im,in,io,iq,ir,is,it,je,jm,jo,jp,ke,kg,kh,ki,km,kn,kp,kr,kw,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mf,mg,mh,mk,ml,mm,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,mz,na,nc,ne,nf,ng,ni,nl,no,np,nr,nu,nz,om,pa,pe,pf,pg,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,sv,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tr,tt,tv,tw,tz,ua,ug,um,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,xx,ye,yt,za,zm,zw]
         map => {
           default => [xx]
           AF => {
@@ -76,7 +80,6 @@ plugins => {
             AE => [ae]
             AF => [af]
             AM => [am]
-            AP => [ap]
             AZ => [az]
             BD => [bd]
             BH => [bh]
@@ -143,7 +146,6 @@ plugins => {
             DK => [dk]
             EE => [ee]
             ES => [es]
-            EU => [eu]
             FI => [fi]
             FO => [fo]
             FR => [fr]
@@ -282,7 +284,6 @@ plugins => {
           al => al.tile.openstreetmap.org.
           am => am.tile.openstreetmap.org.
           ao => ao.tile.openstreetmap.org.
-          ap => ap.tile.openstreetmap.org.
           aq => aq.tile.openstreetmap.org.
           ar => ar.tile.openstreetmap.org.
           as => as.tile.openstreetmap.org.
@@ -342,7 +343,6 @@ plugins => {
           er => er.tile.openstreetmap.org.
           es => es.tile.openstreetmap.org.
           et => et.tile.openstreetmap.org.
-          eu => eu.tile.openstreetmap.org.
           fi => fi.tile.openstreetmap.org.
           fj => fj.tile.openstreetmap.org.
           fk => fk.tile.openstreetmap.org.