exec { "mv OracleDomainScript-${version}": command => "mv OracleDomainScript-${version}/* .", cwd => "$destination_folder", }
and I got a weird error message:
'mv OracleDomainScript-2.5/* .' is not qualified and no path was specified. Please qualify the command or specify a path
The workaround is to specify explicitly a path:
exec { "mv OracleDomainScript-${version}": command => "mv OracleDomainScript-${version}/* .", path => "/bin", cwd => "$destination_folder", }the "default" path of the current user is not used by Puppet:
echo $PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binand the "mv" command is in /bin
I bet EVERY Puppet beginner has made this mistake.
No comments:
Post a Comment