projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix ferm syntax
[mirror/dsa-puppet.git]
/
modules
/
ferm
/
manifests
/
conf.pp
diff --git
a/modules/ferm/manifests/conf.pp
b/modules/ferm/manifests/conf.pp
index
a97d4a9
..
0dffa77
100644
(file)
--- 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) {
define ferm::conf ($content=undef, $source=undef, $ensure=present) {
+ include ferm
+
case $ensure {
present,absent: {}
default: { fail ( "Invald ensure `${ensure}' for ${name}" ) }
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,
if $source {
file { $fname:
ensure => $ensure,
- source => $source
+ source => $source,
+ notify => Service['ferm']
}
} elsif $content {
file { $fname:
ensure => $ensure,
content => $content,
}
} elsif $content {
file { $fname:
ensure => $ensure,
content => $content,
+ notify => Service['ferm']
}
}
}
}
}
}