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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 457 - (hide annotations) (download)
Wed Nov 24 15:22:18 2010 UTC (13 years, 4 months ago) by misc
File size: 1447 byte(s)
add a Requires to fix bootstraping ( ie, puppet try to do the link
before bind is installed, and show a error )
1 misc 30 class bind {
2     class bind_base {
3     package { bind:
4     ensure => installed
5     }
6 misc 27
7 misc 30 service { named:
8     ensure => running,
9     path => "/etc/init.d/named",
10     subscribe => [ Package["bind"]]
11     }
12 misc 40
13     file { '/etc/named.conf':
14     ensure => "/var/lib/named/etc/named.conf",
15     owner => root,
16     group => root,
17 misc 457 mode => 644,
18     require => Package[bind]
19 misc 40 }
20 misc 30 }
21 misc 27
22 misc 40
23     file { '/var/lib/named/etc/named.conf':
24 misc 27 ensure => present,
25     owner => root,
26     group => root,
27     mode => 644,
28 misc 30 require => Package["bind"],
29     content => "",
30     notify => [Service['named']]
31 misc 27 }
32    
33 misc 30 define zone_master {
34     file { "/var/lib/named/var/named/master/$name.zone":
35     ensure => present,
36     owner => root,
37     group => root,
38     mode => 644,
39     content => template("bind/zones/$name.zone"),
40     require => Package[bind],
41     notify => Service[named]
42     }
43 misc 27 }
44    
45 misc 30 class bind_master inherits bind_base {
46 misc 42 file { '/var/lib/named/etc/named.conf':
47 misc 30 content => template("bind/named_base.conf", "bind/named_master.conf"),
48     }
49 misc 27 }
50    
51 misc 30 class bind_slave inherits bind_base {
52 misc 42 file { '/var/lib/named/etc/named.conf':
53 misc 30 content => template("bind/named_base.conf", "bind/named_slave.conf"),
54     }
55     }
56 misc 27
57 misc 30 }

  ViewVC Help
Powered by ViewVC 1.1.30