diff options
author | varac <varacanero@zeromail.org> | 2013-09-17 16:43:20 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-09-17 16:43:20 +0200 |
commit | 5f87fcd074480cdc448e23cb78386377cc19e90b (patch) | |
tree | 5dc28b574d01d5cb07f06640d142abf8da99dac0 /puppet/modules/site_config/manifests/x509.pp | |
parent | 70284fd0e786ad838fbbd40c816f6c0d01cc1629 (diff) | |
parent | 3e5e685200e9b5c3ac8567100e552929ea55d8e8 (diff) |
Merge branch 'feature/3817_3836_3837_Duplicate_declarations' into develop
Diffstat (limited to 'puppet/modules/site_config/manifests/x509.pp')
-rw-r--r-- | puppet/modules/site_config/manifests/x509.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/x509.pp b/puppet/modules/site_config/manifests/x509.pp new file mode 100644 index 00000000..879285dd --- /dev/null +++ b/puppet/modules/site_config/manifests/x509.pp @@ -0,0 +1,19 @@ +class site_config::x509 { + + $x509 = hiera('x509') + $key = $x509['key'] + $cert = $x509['cert'] + $ca = $x509['ca_cert'] + + x509::key { $site_config::params::cert_name: + content => $key + } + + x509::cert { $site_config::params::cert_name: + content => $cert + } + + x509::ca { $site_config::params::ca_name: + content => $ca + } +} |