X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fstunnel4%2Fmanifests%2Finit.pp;fp=modules%2Fstunnel4%2Fmanifests%2Finit.pp;h=5aeb6487769c6ea4e597208ced8a323affe74414;hb=eab40215531d8135cdc051d1fe2eb8d3cfbddd87;hp=c2e9db78ca16c17eeb8c32c37f24aa8bb871fb5d;hpb=299c19378ff4a7e4baefa2e6649bcd946028cb67;p=dsa-puppet.git diff --git a/modules/stunnel4/manifests/init.pp b/modules/stunnel4/manifests/init.pp index c2e9db78..5aeb6487 100644 --- a/modules/stunnel4/manifests/init.pp +++ b/modules/stunnel4/manifests/init.pp @@ -16,6 +16,18 @@ class stunnel4 { 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}", @@ -25,6 +37,9 @@ class stunnel4 { Exec['kill_file_override'], Package['stunnel4'] ], + subscribe => [ File[$certfile], + File[$keyfile] + ], refreshonly => true, ; }