From: Stephen Gran Date: Tue, 11 Sep 2012 18:53:06 +0000 (+0100) Subject: some service notification X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f777daf1c3e81e12b3802420394a46b8aa5a3fe2;p=mirror%2Fdsa-puppet.git some service notification Signed-off-by: Stephen Gran --- diff --git a/modules/ferm/manifests/conf.pp b/modules/ferm/manifests/conf.pp index a97d4a930..0dffa773d 100644 --- a/modules/ferm/manifests/conf.pp +++ b/modules/ferm/manifests/conf.pp @@ -1,5 +1,7 @@ define ferm::conf ($content=undef, $source=undef, $ensure=present) { + include ferm + case $ensure { present,absent: {} default: { fail ( "Invald ensure `${ensure}' for ${name}" ) } @@ -14,12 +16,14 @@ define ferm::conf ($content=undef, $source=undef, $ensure=present) { if $source { file { $fname: ensure => $ensure, - source => $source + source => $source, + notify => Service['ferm'] } } elsif $content { file { $fname: ensure => $ensure, content => $content, + notify => Service['ferm'] } } } diff --git a/modules/ferm/manifests/rule.pp b/modules/ferm/manifests/rule.pp index 8965c48dc..939f926bb 100644 --- a/modules/ferm/manifests/rule.pp +++ b/modules/ferm/manifests/rule.pp @@ -7,6 +7,9 @@ define ferm::rule ( $prio='00', $notarule=false ) { + + include ferm + file { "/etc/ferm/dsa.d/${prio}_${name}": ensure => present,