/[adm]/puppet/modules/bind/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/bind/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Wed Oct 27 00:14:45 2010 UTC (13 years, 6 months ago) by misc
File size: 1187 byte(s)
- fix syntax

1 class bind {
2 class bind_base {
3 package { bind:
4 ensure => installed
5 }
6
7 service { named:
8 ensure => running,
9 path => "/etc/init.d/named",
10 subscribe => [ Package["bind"]]
11 }
12 }
13
14 file { '/etc/named.conf':
15 ensure => present,
16 owner => root,
17 group => root,
18 mode => 644,
19 require => Package["bind"],
20 content => "",
21 notify => [Service['named']]
22 }
23
24 define zone_master {
25 file { "/var/lib/named/var/named/master/$name.zone":
26 ensure => present,
27 owner => root,
28 group => root,
29 mode => 644,
30 content => template("bind/zones/$name.zone"),
31 require => Package[bind],
32 notify => Service[named]
33 }
34 }
35
36 class bind_master inherits bind_base {
37 file { '/etc/named.conf':
38 content => template("bind/named_base.conf", "bind/named_master.conf"),
39 }
40 }
41
42 class bind_slave inherits bind_base {
43 file { '/etc/named.conf':
44 content => template("bind/named_base.conf", "bind/named_slave.conf"),
45 }
46 }
47
48 }

  ViewVC Help
Powered by ViewVC 1.1.30