diff options
author | Raffael Schmid <raffael@yux.ch> | 2012-02-10 17:49:28 +0100 |
---|---|---|
committer | Raffael Schmid <raffael@yux.ch> | 2012-02-10 17:49:28 +0100 |
commit | 923f9a5d8b0a16a9a849a34c2a3a0dbba6339257 (patch) | |
tree | b296f03b4444f10679d02fb492daef876e401c6e /manifests/client.pp | |
parent | c6f9e4ff4ac280e4be7ddfee1d037b4a29ae787c (diff) |
update module to use concat instead of concatfilepart
Diffstat (limited to 'manifests/client.pp')
-rw-r--r-- | manifests/client.pp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index 4e443e4..82e498a 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -121,10 +121,22 @@ define openvpn::client($server, $remote_host = $fqdn) { cwd => "/etc/openvpn/${server}/download-configs/", command => "rm ${name}.tar.gz; tar --exclude=\\*.conf.d -chzvf ${name}.tar.gz ${name}", refreshonly => true, - subscribe => Exec["/etc/openvpn/${server}/download-configs/${name}/${name}.conf concatenation"], require => [ File["/etc/openvpn/${server}/download-configs/${name}/${name}.conf"], File["/etc/openvpn/${server}/download-configs/${name}/keys/ca.crt"], File["/etc/openvpn/${server}/download-configs/${name}/keys/${name}.key"], File["/etc/openvpn/${server}/download-configs/${name}/keys/${name}.crt"] ]; } + + + concat { + [ "/etc/openvpn/${server}/client-configs/${name}", "/etc/openvpn/${server}/download-configs/${name}/${name}.conf" ]: + owner => root, + group => root, + mode => 644, + warn => true, + force => true, + notify => Exec["tar the thing ${server} with ${name}"], + require => [ File["/etc/openvpn"], File["/etc/openvpn/${server}/download-configs/${name}"] ]; + } + } |