From 0447e92ab5dcc3d8a07613a765c60db23252f278 Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 24 Sep 2013 17:55:22 +0200 Subject: added site_config::x509::client_ca::cert and site_config::x509::client_ca::key for client_ca deployment (#3917) --- puppet/modules/site_config/manifests/x509/client_ca.pp | 14 -------------- puppet/modules/site_config/manifests/x509/client_ca/ca.pp | 14 ++++++++++++++ puppet/modules/site_config/manifests/x509/client_ca/key.pp | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 14 deletions(-) delete mode 100644 puppet/modules/site_config/manifests/x509/client_ca.pp create mode 100644 puppet/modules/site_config/manifests/x509/client_ca/ca.pp create mode 100644 puppet/modules/site_config/manifests/x509/client_ca/key.pp (limited to 'puppet/modules/site_config/manifests') diff --git a/puppet/modules/site_config/manifests/x509/client_ca.pp b/puppet/modules/site_config/manifests/x509/client_ca.pp deleted file mode 100644 index 3e914cf5..00000000 --- a/puppet/modules/site_config/manifests/x509/client_ca.pp +++ /dev/null @@ -1,14 +0,0 @@ -class site_config::x509::client_ca { - - ## - ## This is for the special CA that is used exclusively for generating - ## client certificates by the webapp. - ## - - $x509 = hiera('x509') - $client_ca = $x509['client_ca_cert'] - - x509::ca { $site_config::params::client_ca_name: - content => $client_ca - } -} diff --git a/puppet/modules/site_config/manifests/x509/client_ca/ca.pp b/puppet/modules/site_config/manifests/x509/client_ca/ca.pp new file mode 100644 index 00000000..0f313898 --- /dev/null +++ b/puppet/modules/site_config/manifests/x509/client_ca/ca.pp @@ -0,0 +1,14 @@ +class site_config::x509::client_ca::ca { + + ## + ## This is for the special CA that is used exclusively for generating + ## client certificates by the webapp. + ## + + $x509 = hiera('x509') + $cert = $x509['client_ca_cert'] + + x509::ca { $site_config::params::client_ca_name: + content => $cert + } +} diff --git a/puppet/modules/site_config/manifests/x509/client_ca/key.pp b/puppet/modules/site_config/manifests/x509/client_ca/key.pp new file mode 100644 index 00000000..f9ef3f52 --- /dev/null +++ b/puppet/modules/site_config/manifests/x509/client_ca/key.pp @@ -0,0 +1,14 @@ +class site_config::x509::client_ca::key { + + ## + ## This is for the special CA that is used exclusively for generating + ## client certificates by the webapp. + ## + + $x509 = hiera('x509') + $key = $x509['client_ca_key'] + + x509::key { $site_config::params::client_ca_name: + content => $key + } +} -- cgit v1.2.3