diff options
Diffstat (limited to 'puppet/modules')
| -rw-r--r-- | puppet/modules/site_couchdb/manifests/stunnel.pp | 15 | ||||
| -rw-r--r-- | puppet/modules/site_openvpn/manifests/init.pp | 6 | ||||
| -rw-r--r-- | puppet/modules/site_stunnel/manifests/clients.pp | 6 | 
3 files changed, 22 insertions, 5 deletions
| diff --git a/puppet/modules/site_couchdb/manifests/stunnel.pp b/puppet/modules/site_couchdb/manifests/stunnel.pp index fbb75000..7ba303fe 100644 --- a/puppet/modules/site_couchdb/manifests/stunnel.pp +++ b/puppet/modules/site_couchdb/manifests/stunnel.pp @@ -39,7 +39,10 @@ class site_couchdb::stunnel {      verify     => '2',      pid        => '/var/run/stunnel4/couchserver.pid',      rndfile    => '/var/lib/stunnel4/.rnd', -    debuglevel => '4' +    debuglevel => '4', +    require    => [ +      Class['Site_config::X509::Cert_key'], +      Class['Site_config::X509::Ca'] ];    } @@ -55,7 +58,10 @@ class site_couchdb::stunnel {      verify     => '2',      pid        => '/var/run/stunnel4/epmd_server.pid',      rndfile    => '/var/lib/stunnel4/.rnd', -    debuglevel => '4' +    debuglevel => '4', +    require    => [ +      Class['Site_config::X509::Cert_key'], +      Class['Site_config::X509::Ca'] ];    }    # setup stunnel clients for Erlang Port Mapper Daemon (epmd) to connect @@ -81,7 +87,10 @@ class site_couchdb::stunnel {      verify     => '2',      pid        => '/var/run/stunnel4/ednp_server.pid',      rndfile    => '/var/lib/stunnel4/.rnd', -    debuglevel => '4' +    debuglevel => '4', +    require    => [ +      Class['Site_config::X509::Cert_key'], +      Class['Site_config::X509::Ca'] ];    }    # setup stunnel clients for Erlang Distributed Node Protocol (ednp) to connect diff --git a/puppet/modules/site_openvpn/manifests/init.pp b/puppet/modules/site_openvpn/manifests/init.pp index 29b3f13f..6ab0d430 100644 --- a/puppet/modules/site_openvpn/manifests/init.pp +++ b/puppet/modules/site_openvpn/manifests/init.pp @@ -137,7 +137,11 @@ class site_openvpn {      command     => '/etc/init.d/openvpn restart',      refreshonly => true,      subscribe   => File['/etc/openvpn'], -    require     => [ Package['openvpn'], File['/etc/openvpn'] ]; +    require     => [ +      Package['openvpn'], +      File['/etc/openvpn'], +      Class['Site_config::X509::Cert_key'], +      Class['Site_config::X509::Ca_bundle'] ];    }    cron { 'add_gateway_ips.sh': diff --git a/puppet/modules/site_stunnel/manifests/clients.pp b/puppet/modules/site_stunnel/manifests/clients.pp index ed766e1a..b2c8db1f 100644 --- a/puppet/modules/site_stunnel/manifests/clients.pp +++ b/puppet/modules/site_stunnel/manifests/clients.pp @@ -21,6 +21,10 @@ define site_stunnel::clients (      verify     => $verify,      pid        => "/var/run/stunnel4/${pid}.pid",      rndfile    => $rndfile, -    debuglevel => $debuglevel +    debuglevel => $debuglevel, +    require    => [ +      Class['Site_config::X509::Cert_key'], +      Class['Site_config::X509::Ca'] ]; +    }  } | 
