/[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 42 - (hide annotations) (download)
Wed Oct 27 15:20:29 2010 UTC (10 years, 10 months ago) by misc
File size: 1409 byte(s)
- fix the filename here too

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     mode => 644
18     }
19 misc 30 }
20 misc 27
21 misc 40
22     file { '/var/lib/named/etc/named.conf':
23 misc 27 ensure => present,
24     owner => root,
25     group => root,
26     mode => 644,
27 misc 30 require => Package["bind"],
28     content => "",
29     notify => [Service['named']]
30 misc 27 }
31    
32 misc 30 define zone_master {
33     file { "/var/lib/named/var/named/master/$name.zone":
34     ensure => present,
35     owner => root,
36     group => root,
37     mode => 644,
38     content => template("bind/zones/$name.zone"),
39     require => Package[bind],
40     notify => Service[named]
41     }
42 misc 27 }
43    
44 misc 30 class bind_master inherits bind_base {
45 misc 42 file { '/var/lib/named/etc/named.conf':
46 misc 30 content => template("bind/named_base.conf", "bind/named_master.conf"),
47     }
48 misc 27 }
49    
50 misc 30 class bind_slave inherits bind_base {
51 misc 42 file { '/var/lib/named/etc/named.conf':
52 misc 30 content => template("bind/named_base.conf", "bind/named_slave.conf"),
53     }
54     }
55 misc 27
56 misc 30 }

  ViewVC Help
Powered by ViewVC 1.1.28