diff --git a/custom/manifests/init.pp b/custom/manifests/init.pp index b380073..23f28d3 100644 --- a/custom/manifests/init.pp +++ b/custom/manifests/init.pp @@ -68,6 +68,7 @@ define custom::file($ensure, $group="NONE", $mode="NONE", $owner="NONE", $seltyp default: { exec { "fetch-file-${source}": path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin", + cwd => regsubst($name, '(.*)/[^/]+$', '\1'), command => $fetch_cmd, unless => $diff_cmd, before => File["${name}"],