diff options
-rw-r--r-- | manifests/init.pp | 2 | ||||
-rw-r--r-- | manifests/service.pp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 89788ed..c5ad70b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -59,7 +59,7 @@ class stunnel ( exec { 'refresh_stunnel': refreshonly => true, - require => File[$stunnel_compdir], + require => [ Service['stunnel'], Package['stunnel'], File[$stunnel_compdir] ], subscribe => File[$stunnel_compdir], command => "${stunnel_staging}/bin/refresh_stunnel.sh" } diff --git a/manifests/service.pp b/manifests/service.pp index 421f496..8a98d8f 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -55,6 +55,8 @@ define stunnel::service ( $verify = false ) { + include stunnel + $real_client = $client ? { default => 'yes' } $real_pid = $pid ? { false => "/${name}.pid", default => $pid } |