Parent Directory | Revision Log
rework the layout of the bind module
1 | class bind { |
2 | package { 'bind': } |
3 | |
4 | service { 'named': |
5 | restart => 'service named restart', |
6 | subscribe => Package['bind'], |
7 | } |
8 | |
9 | file { '/etc/named.conf': |
10 | ensure => link, |
11 | target => '/var/lib/named/etc/named.conf', |
12 | require => Package['bind'], |
13 | } |
14 | |
15 | exec { 'named_reload': |
16 | command => 'service named reload', |
17 | refreshonly => true, |
18 | } |
19 | |
20 | file { '/var/lib/named/etc/named.conf': |
21 | require => Package['bind'], |
22 | content => '', |
23 | notify => Service['named'], |
24 | } |
25 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |