From 641d416c974a4041a199d5740779b0cf1b484bec Mon Sep 17 00:00:00 2001 From: Nate Riffe Date: Mon, 3 Sep 2012 19:52:40 -0500 Subject: [PATCH] Shift the burden of causality to the files --- manifests/init.pp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 0d0d150..35aedfb 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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":