summaryrefslogtreecommitdiff
path: root/puppet/modules/site_openvpn/manifests/keys.pp
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-01-31 04:31:54 -0800
committerelijah <elijah@riseup.net>2013-01-31 04:31:54 -0800
commit3c3ed940466eabf9cb56a47614133b5bc90d4ad7 (patch)
tree0541b1fe1caee02533de024de99562ba322ccddf /puppet/modules/site_openvpn/manifests/keys.pp
parent09649211f3c4b9ffd08af15deabe5916cf78df72 (diff)
added /etc/openvpn/ca_bundle.pem in order to allow multiple CA certs to be used.
Diffstat (limited to 'puppet/modules/site_openvpn/manifests/keys.pp')
-rw-r--r--puppet/modules/site_openvpn/manifests/keys.pp33
1 files changed, 26 insertions, 7 deletions
diff --git a/puppet/modules/site_openvpn/manifests/keys.pp b/puppet/modules/site_openvpn/manifests/keys.pp
index 78902676..f3c5b423 100644
--- a/puppet/modules/site_openvpn/manifests/keys.pp
+++ b/puppet/modules/site_openvpn/manifests/keys.pp
@@ -13,13 +13,7 @@ class site_openvpn::keys {
}
x509::ca {
- 'leap_client_ca':
- content => $site_openvpn::x509_config['client_ca_cert'],
- notify => Service[openvpn];
- }
-
- x509::ca {
- 'leap_openvpn':
+ 'leap_ca':
content => $site_openvpn::x509_config['ca_cert'],
notify => Service[openvpn];
}
@@ -29,4 +23,29 @@ class site_openvpn::keys {
mode => '0644',
}
+ #
+ # CA bundle -- we want to have the possibility of allowing multiple CAs.
+ # For now, the reason is to transition to using client CA. In the future,
+ # we will want to be able to smoothly phase out one CA and phase in another.
+ # I tried "--capath" for this, but it did not work.
+ #
+
+ concat {
+ '/etc/openvpn/ca_bundle.pem':
+ owner => root,
+ group => root,
+ mode => 644,
+ warn => true,
+ notify => Service['openvpn'];
+ }
+
+ concat::fragment {
+ 'client_ca_cert':
+ content => $site_openvpn::x509_config['client_ca_cert'],
+ target => '/etc/openvpn/ca_bundle.pem';
+ 'ca_cert':
+ content => $site_openvpn::x509_config['ca_cert'],
+ target => '/etc/openvpn/ca_bundle.pem';
+ }
+
}