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['kill_file_override'],
Package['stunnel4']
],
+ subscribe => [ File[$certfile],
+ File[$keyfile]
+ ],
refreshonly => true,
;
}