Signed-off-by: Stephen Gran <steve@lobefin.net>
define ferm::conf ($content=undef, $source=undef, $ensure=present) {
+ include ferm
+
case $ensure {
present,absent: {}
default: { fail ( "Invald ensure `${ensure}' for ${name}" ) }
if $source {
file { $fname:
ensure => $ensure,
- source => $source
+ source => $source,
+ notify => Service['ferm']
}
} elsif $content {
file { $fname:
ensure => $ensure,
content => $content,
+ notify => Service['ferm']
}
}
}
$prio='00',
$notarule=false
) {
+
+ include ferm
+
file {
"/etc/ferm/dsa.d/${prio}_${name}":
ensure => present,