luxflux/puppet-openvpn — Issue #1: Issue with copying easy-rsa files
Author: jlk
Created: 2012-02-17 01:57:27+00:00
State: open

Hey there - I'm trying to get the openvpn module working on CentOS 5.7 with Puppet 2.7.9. I've run into 2 issues so far:

The module tries to copy files form /usr/share/doc/openvpn/examples/easy-rsa/2.0, when on CentOS the directory is /usr/share/doc/openvpn-2.2.0/easy-rsa/2.0. I can push a patch for this one, if ya want...I can test it across a few different linux distros.

After tweaking that in server.pp, I'm still getting an error where the require for /etc/openvpn/${name} doesn't seem to be creating the directory. Basically, it looks like puppet isn't running the required mkdir before attempting to copy files:

[root@vpn1 ~]# puppet agent --test --server=puppetserver
info: Retrieving plugin
info: Loading facts in concat_basedir
info: Loading facts in concat_basedir
info: Caching catalog for vpn1
err: Failed to apply catalog: 'cp -r /usr/share/doc/openvpn/easy-rsa/2.0 /etc/openvpn/vpn1/easy-rsa' is not qualified and no path was specified. Please qualify the command or specify a path.

Any thoughts?

John