projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b198c12
)
only notify service if defined
author
Peter Palfrader
<peter@palfrader.org>
Mon, 17 Jul 2017 13:09:59 +0000
(15:09 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Mon, 17 Jul 2017 13:09:59 +0000
(15:09 +0200)
modules/systemd/manifests/override.pp
patch
|
blob
|
history
diff --git
a/modules/systemd/manifests/override.pp
b/modules/systemd/manifests/override.pp
index
8ffee48
..
117b16e
100644
(file)
--- a/
modules/systemd/manifests/override.pp
+++ b/
modules/systemd/manifests/override.pp
@@
-25,12
+25,16
@@
define systemd::override (
]
}
} 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,
}
}
}