projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to restart stunnels when certs change
[mirror/dsa-puppet.git]
/
modules
/
stunnel4
/
manifests
/
init.pp
diff --git
a/modules/stunnel4/manifests/init.pp
b/modules/stunnel4/manifests/init.pp
index
c2e9db7
..
5aeb648
100644
(file)
--- a/
modules/stunnel4/manifests/init.pp
+++ b/
modules/stunnel4/manifests/init.pp
@@
-16,6
+16,18
@@
class stunnel4 {
mode => 555,
;
}
mode => 555,
;
}
+
+ case $client {
+ true: {
+ $certfile = "/etc/ssl/debian/certs/thishost.crt"
+ $keyfile = /etc/ssl/debian/keys/thishost.key
+ }
+ default: {
+ $certfile = /etc/exim4/ssl/thishost.crt
+ $keyfile = /etc/exim4/ssl/thishost.key
+ }
+ }
+
exec {
"restart_stunnel_${name}":
command => "true && cd / && env -i /etc/init.d/stunnel4 restart puppet-${name}",
exec {
"restart_stunnel_${name}":
command => "true && cd / && env -i /etc/init.d/stunnel4 restart puppet-${name}",
@@
-25,6
+37,9
@@
class stunnel4 {
Exec['kill_file_override'],
Package['stunnel4']
],
Exec['kill_file_override'],
Package['stunnel4']
],
+ subscribe => [ File[$certfile],
+ File[$keyfile]
+ ],
refreshonly => true,
;
}
refreshonly => true,
;
}