blob: d029fbac74c3089700ad7927608510296dac516c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
class site_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_crt'],
mode => '0644',
}
file { '/etc/openvpn/keys/dh.pem':
content => $openvpn_keys['dh_key'],
mode => '0644',
}
file { '/etc/openvpn/keys/server.key':
content => $openvpn_keys['server_key'],
mode => '0600',
}
file { '/etc/openvpn/keys/server.crt':
content => $openvpn_keys['server_crt'],
mode => '0644',
}
}
|