diff options
Diffstat (limited to 'manifests/base.pp')
-rw-r--r-- | manifests/base.pp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp new file mode 100644 index 0000000..369100a --- /dev/null +++ b/manifests/base.pp @@ -0,0 +1,39 @@ +# = Class: bind::base +# +# Declares some basic resources. +# You should NOT include this class as is, as it won't work at all! +# Please refer to Class['bind']. +# +class bind::base { + + include concat::setup + + concat {'/etc/bind/named.conf.local': + owner => root, + group => root, + mode => '0644', + force => true, + } + + package {'bind9': + ensure => present, + } + + service {'bind9': + ensure => running, + enable => true, + require => Package['bind9'], + } + + file {'/etc/bind/zones': + ensure => directory, + owner => root, + group => root, + mode => '0755', + purge => true, + force => true, + recurse => true, + require => Package['bind9'], + } + +} |