summaryrefslogtreecommitdiff
path: root/manifests/classes/bind-base.pp
blob: c4420852faf5235ec1f6a01a18ce46f36df0a0d5 (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
/*

= 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 {
  package {"bind9":
    ensure => present,
  }

  service {"bind9":
    ensure  => running,
    enable  => true,
    require => Package["bind9"],
  }

  file {["/etc/bind/pri", "/etc/bind/zones"]:
    ensure => directory,
    owner  => root,
    group  => root,
    mode   => 0755,
    require => Package["bind9"],
    purge   => true,
    force   => true,
    recurse => true,
    source  => "puppet:///modules/bind/empty",
  }
}