diff options
Diffstat (limited to 'puppet/modules')
-rw-r--r-- | puppet/modules/site_ca_daemon/manifests/init.pp | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/puppet/modules/site_ca_daemon/manifests/init.pp b/puppet/modules/site_ca_daemon/manifests/init.pp index aa9219c1..db76e0fb 100644 --- a/puppet/modules/site_ca_daemon/manifests/init.pp +++ b/puppet/modules/site_ca_daemon/manifests/init.pp @@ -3,7 +3,7 @@ class site_ca_daemon { #$definition_files = hiera('definition_files') #$provider = $definition_files['provider'] #$eip_service = $definition_files['eip_service'] - $x509 = hiera('x509') + $x509 = hiera('x509') Class[Ruby] -> Class[rubygems] -> Class[bundler::install] @@ -29,17 +29,24 @@ class site_ca_daemon { } - x509::key { - 'leap_ca_daemon': - content => $x509['cert'], - #notify => Service[apache]; - } - - x509::cert { - 'leap_ca_daemon': - content => $x509['key'], - #notify => Service[apache]; - } + x509::key { + 'leap_ca_daemon': + content => $x509['key'], + #notify => Service[apache]; + } + + x509::cert { + 'leap_ca_daemon': + content => $x509['cert'], + #notify => Service[apache]; + } + + x509::ca { + 'leap_ca_daemon': + content => $x509['ca_cert'], + #notify => Service[apache]; + } + file { '/srv/leap_ca_daemon': ensure => directory, @@ -66,6 +73,4 @@ class site_ca_daemon { require => [ Class['bundler::install'], Vcsrepo['/srv/leap_ca_daemon'] ]; } - - } |