Merge branch 'master' of ssh://handel.debian.org/srv/puppet.debian.org/git/dsa-puppet
authorPeter Palfrader <peter@palfrader.org>
Wed, 12 Aug 2009 08:30:00 +0000 (10:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 12 Aug 2009 08:30:00 +0000 (10:30 +0200)
* 'master' of ssh://handel.debian.org/srv/puppet.debian.org/git/dsa-puppet:
  ignore /etc/bind as well
  Make bind write to a subdirectory of /var/log

modules/geodns/files/common/named.conf.options
modules/geodns/manifests/init.pp
modules/samhain/templates/samhainrc.erb

index aa59344..1a87200 100644 (file)
@@ -30,7 +30,7 @@ options {
 logging {
 
        channel queries {
-               file "/var/log/geoip-query.log" versions 4 size 40m;
+               file "/var/log/bind9/geoip-query.log" versions 4 size 40m;
                print-time yes;
                print-category yes;
        };
index d55d85c..5e4feaf 100644 (file)
@@ -78,6 +78,12 @@ class geodns {
                         group   => geodnssync,
                         mode    => 440,
                         ;
+                "/var/log/bind9":
+                        ensure  => directory,
+                        owner   => bind,
+                        group   => bind,
+                        mode    => 775,
+                        ;
         }
 
         exec {
index 6fc23ce..a00b61e 100644 (file)
@@ -90,6 +90,7 @@ file=/var/state/samhain/samhain_file
 file=/etc/bind/zones/db.debian.net
 file=/etc/exim4/bsmtp
 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
+file=/etc/bind
 file=/etc/bind/named.conf.acl
 file=/etc/bind/named.conf.options
 file=/etc/bind/named.conf.local