]
}
} elsif $source {
+ if defined(Service["${name}"]) {
+ $notify = [ Exec['systemctl daemon-reload'], Service["${name}"] ]
+ } else {
+ $notify = [ Exec['systemctl daemon-reload'] ]
+ }
+
file { "${dest}":
ensure => $ensure,
source => $source,
- notify => [ Exec['systemctl daemon-reload'],
- Service["${name}"],
- ]
+ notify => $notify,
}
}
}