From f777daf1c3e81e12b3802420394a46b8aa5a3fe2 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 11 Sep 2012 19:53:06 +0100 Subject: [PATCH] some service notification Signed-off-by: Stephen Gran --- modules/ferm/manifests/conf.pp | 6 +++++- modules/ferm/manifests/rule.pp | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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, -- 2.20.1