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:
f63ad02
)
Notify service when the underlying file changes or the service changes
author
Tollef Fog Heen
<tfheen@err.no>
Sat, 30 Sep 2017 20:21:07 +0000
(22:21 +0200)
committer
Tollef Fog Heen
<tfheen@err.no>
Sat, 30 Sep 2017 20:21:07 +0000
(22:21 +0200)
modules/roles/manifests/mirror_health.pp
patch
|
blob
|
history
diff --git
a/modules/roles/manifests/mirror_health.pp
b/modules/roles/manifests/mirror_health.pp
index
a00f0a4
..
2a0413b
100644
(file)
--- a/
modules/roles/manifests/mirror_health.pp
+++ b/
modules/roles/manifests/mirror_health.pp
@@
-14,6
+14,7
@@
define roles::mirror_health (
owner => 'root',
group => 'root',
mode => '0555',
owner => 'root',
group => 'root',
mode => '0555',
+ notify => Service["mirror-health-${check_service}"],
}
file { "/etc/systemd/system/mirror-health-${check_service}.service":
}
file { "/etc/systemd/system/mirror-health-${check_service}.service":
@@
-21,7
+22,7
@@
define roles::mirror_health (
group => 'root',
mode => '0444',
content => template('roles/mirror-health.service.erb'),
group => 'root',
mode => '0444',
content => template('roles/mirror-health.service.erb'),
- notify =>
Exec['systemctl daemon-reload'
],
+ notify =>
[Exec['systemctl daemon-reload'], Service["mirror-health-${check_service}"]
],
}
file { "/etc/systemd/system/multi-user.target.wants/mirror-health-${check_service}.service":
}
file { "/etc/systemd/system/multi-user.target.wants/mirror-health-${check_service}.service":