X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fnamed%2Fmanifests%2Finit.pp;h=28a666b5a1b5ce2f78f467de98f09adc478fda64;hb=faa394e092aa7af4c280508a215aff53ceb1db05;hp=0c75aebf07dc854b9db0d59cbd04e2365a0ce38c;hpb=96f38cb57f542dd3d83e9b0b7bf201e3ec23f2d3;p=mirror%2Fdsa-puppet.git diff --git a/modules/named/manifests/init.pp b/modules/named/manifests/init.pp index 0c75aebf0..28a666b5a 100644 --- a/modules/named/manifests/init.pp +++ b/modules/named/manifests/init.pp @@ -1,22 +1,25 @@ class named { - include munin-node::bind - package { - bind9: ensure => installed; - } + munin::check { 'bind': } - exec { - "bind9 restart": - path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", - refreshonly => true, - ; - } - exec { - "bind9 reload": - path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", - refreshonly => true, - ; - } -} + package { 'bind9': + ensure => installed + } + + service { 'bind9': + ensure => running, + } -# vim: set fdm=marker ts=8 sw=8 et: + @ferm::rule { 'dsa-bind': + domain => '(ip ip6)', + description => 'Allow nameserver access', + rule => '&TCP_UDP_SERVICE(53)' + } + + file { '/var/log/bind9': + ensure => directory, + owner => bind, + group => bind, + mode => '0775', + } +}