Shift the burden of causality to the files

This commit is contained in:
Nate Riffe 2012-09-03 19:52:40 -05:00
parent da7e6b9465
commit 641d416c97

View File

@ -6,18 +6,12 @@ class bind (
ensure => latest,
}
file { $bind::params::confdir:
ensure => directory,
require => Package[$bind::params::bind_package],
}
service { $bind::params::bind_service:
ensure => running,
enable => true,
hasrestart => true,
hasstatus => true,
require => Package[$bind::params::bind_package],
subscribe => File[$bind::params::confdir],
}
concat { [
@ -25,9 +19,10 @@ class bind (
"${bind::params::confdir}/views.conf",
"${bind::params::confdir}/zones.conf",
]:
owner => $bind::params::bind_user,
group => $bind::params::bind_group,
mode => '0644',
owner => $bind::params::bind_user,
group => $bind::params::bind_group,
mode => '0644',
notify => Service[$bind::params::bind_service],
}
concat::fragment { "named-acls-header":