summaryrefslogtreecommitdiff
path: root/manifests/base.pp
blob: 369100a18294ace8761af865863b4accdac590a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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'],
  }

}