summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/x509/client_ca
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-04-14 15:26:54 +0200
committervarac <varacanero@zeromail.org>2016-01-22 09:50:38 +0100
commit8d8a64348df0dcca044316f85ee1757cfceb13b4 (patch)
tree5462dd7f9cc71b43a31b5cdb41d1d4d07bf06b9a /puppet/modules/site_config/manifests/x509/client_ca
parent150579fb14716892cc3e4d7d9c0f81b30d56f03a (diff)
Include site_config::params in all x509 subclasses (#6851)
After restructuring site.pp to only include site_config::default and the service-specific classes, we got this: Duplicate declaration: X509::Cert[undef] is already declared in file /srv/leap/puppet/modules/site_config/manifests/x509/commercial/cert.pp at line 8; cannot redeclare at /srv/leap/puppet/modules/site_config/manifests/x509/cert.pp:8 on node rewcitestweb1.rewire.org So i included site_config::params in all site_config::x509 clases. Change-Id: Ib8387abfdc68b36c73a45fd2dd1f3a159eaec4a5
Diffstat (limited to 'puppet/modules/site_config/manifests/x509/client_ca')
-rw-r--r--puppet/modules/site_config/manifests/x509/client_ca/ca.pp2
-rw-r--r--puppet/modules/site_config/manifests/x509/client_ca/key.pp2
2 files changed, 4 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/x509/client_ca/ca.pp b/puppet/modules/site_config/manifests/x509/client_ca/ca.pp
index 0f313898..3fbafa98 100644
--- a/puppet/modules/site_config/manifests/x509/client_ca/ca.pp
+++ b/puppet/modules/site_config/manifests/x509/client_ca/ca.pp
@@ -5,6 +5,8 @@ class site_config::x509::client_ca::ca {
## client certificates by the webapp.
##
+ include ::site_config::params
+
$x509 = hiera('x509')
$cert = $x509['client_ca_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
index f9ef3f52..0b537e76 100644
--- a/puppet/modules/site_config/manifests/x509/client_ca/key.pp
+++ b/puppet/modules/site_config/manifests/x509/client_ca/key.pp
@@ -5,6 +5,8 @@ class site_config::x509::client_ca::key {
## client certificates by the webapp.
##
+ include ::site_config::params
+
$x509 = hiera('x509')
$key = $x509['client_ca_key']