Prepended cp and rm commands with /bin. This stops errors like "is not qualified...
authorJohn Kinsella <jlkinsel@gmail.com>
Wed, 22 Feb 2012 18:41:04 +0000 (10:41 -0800)
committerJohn Kinsella <jlkinsel@gmail.com>
Wed, 22 Feb 2012 18:41:04 +0000 (10:41 -0800)
manifests/client.pp
manifests/server.pp

index 82e498a..fd94796 100644 (file)
@@ -119,7 +119,7 @@ define openvpn::client($server, $remote_host = $fqdn) {
     exec {
         "tar the thing ${server} with ${name}":
             cwd         => "/etc/openvpn/${server}/download-configs/",
-            command     => "rm ${name}.tar.gz; tar --exclude=\\*.conf.d -chzvf ${name}.tar.gz ${name}",
+            command     => "/bin/rm ${name}.tar.gz; tar --exclude=\\*.conf.d -chzvf ${name}.tar.gz ${name}",
             refreshonly => true,
             require     => [ File["/etc/openvpn/${server}/download-configs/${name}/${name}.conf"],
                             File["/etc/openvpn/${server}/download-configs/${name}/keys/ca.crt"],
index b279b02..aa0c32d 100644 (file)
@@ -19,7 +19,7 @@ define openvpn::server($country, $province, $city, $organization, $email) {
 
     exec {
         "copy easy-rsa to openvpn config folder ${name}":
-            command => "cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/${name}/easy-rsa",
+            command => "/bin/cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/${name}/easy-rsa",
             creates => "/etc/openvpn/${name}/easy-rsa",
             require => File["/etc/openvpn/${name}"];
     }