Shift the burden of causality to the files
This commit is contained in:
parent
da7e6b9465
commit
641d416c97
@ -6,18 +6,12 @@ class bind (
|
|||||||
ensure => latest,
|
ensure => latest,
|
||||||
}
|
}
|
||||||
|
|
||||||
file { $bind::params::confdir:
|
|
||||||
ensure => directory,
|
|
||||||
require => Package[$bind::params::bind_package],
|
|
||||||
}
|
|
||||||
|
|
||||||
service { $bind::params::bind_service:
|
service { $bind::params::bind_service:
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
hasrestart => true,
|
hasrestart => true,
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
require => Package[$bind::params::bind_package],
|
require => Package[$bind::params::bind_package],
|
||||||
subscribe => File[$bind::params::confdir],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
concat { [
|
concat { [
|
||||||
@ -25,9 +19,10 @@ class bind (
|
|||||||
"${bind::params::confdir}/views.conf",
|
"${bind::params::confdir}/views.conf",
|
||||||
"${bind::params::confdir}/zones.conf",
|
"${bind::params::confdir}/zones.conf",
|
||||||
]:
|
]:
|
||||||
owner => $bind::params::bind_user,
|
owner => $bind::params::bind_user,
|
||||||
group => $bind::params::bind_group,
|
group => $bind::params::bind_group,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
notify => Service[$bind::params::bind_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
concat::fragment { "named-acls-header":
|
concat::fragment { "named-acls-header":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user