summaryrefslogtreecommitdiff
path: root/puppet/modules/site_openvpn
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-10-11 19:49:48 +0200
committervarac <varacanero@zeromail.org>2012-10-11 19:49:48 +0200
commit9fc9b19057fcf322e8d3fcaead0032859f873f53 (patch)
tree2feb6ba5c2137412cba7e54420c0bb962c565482 /puppet/modules/site_openvpn
parenta3cd8ac7a637111281f32d6ed5c8e856fe5be973 (diff)
renamed hiera keys to work with leap_cli
Diffstat (limited to 'puppet/modules/site_openvpn')
-rw-r--r--puppet/modules/site_openvpn/manifests/keys.pp13
1 files changed, 9 insertions, 4 deletions
diff --git a/puppet/modules/site_openvpn/manifests/keys.pp b/puppet/modules/site_openvpn/manifests/keys.pp
index b31369c9..d029fbac 100644
--- a/puppet/modules/site_openvpn/manifests/keys.pp
+++ b/puppet/modules/site_openvpn/manifests/keys.pp
@@ -1,13 +1,18 @@
class site_openvpn::keys {
- $openvpn_keys = hiera_hash('openvpn_keys')
+ $openvpn_keys = hiera_hash('openvpn')
+
+ file { '/etc/openvpn/keys/ca.key':
+ content => $openvpn_keys['ca_key'],
+ mode => '0600',
+ }
file { '/etc/openvpn/keys/ca.crt':
- content => $openvpn_keys['ca'],
+ content => $openvpn_keys['ca_crt'],
mode => '0644',
}
file { '/etc/openvpn/keys/dh.pem':
- content => $openvpn_keys['dh'],
+ content => $openvpn_keys['dh_key'],
mode => '0644',
}
@@ -17,7 +22,7 @@ class site_openvpn::keys {
}
file { '/etc/openvpn/keys/server.crt':
- content => $openvpn_keys['server_cert'],
+ content => $openvpn_keys['server_crt'],
mode => '0644',
}
}