mkrakowitzer / puppet-deploy

Puppet module to deploy compressed files
11 stars 23 forks source link

Fixed not qualified and no path was specified exceptions. #1

Closed actionjack closed 10 years ago

actionjack commented 10 years ago

Current version of puppet 2.7 and up throw Wrapped exception errors for test and rm because they are given absolute paths e.g.:

Error: Validation of Exec[cleanup_atlassian-jira-6.1.tar.gz] failed: 'rm -f /var/tmp/deploy/atlassian-jira-6.1.tar.gz' is not qualified and no path was specified. Please qualify the command or specify a path. at /vagrant/modules/deploy/manifests/file.pp:154 Wrapped exception: 'rm -f /var/tmp/deploy/atlassian-jira-6.1.tar.gz' is not qualified and no path was specified. Please qualify the command or specify a path.

Error: Parameter unless failed on Exec[download_atlassian-jira-6.1.tar.gz]: 'test -d /opt/jira/atlassian-jira-6.1-standalone' is not qualified and no path was specified. Please qualify the command or specify a path. at /vagrant/modules/deploy/manifests/file.pp:133 Wrapped exception: 'test -d /opt/jira/atlassian-jira-6.1-standalone' is not qualified and no path was specified. Please qualify the command or specify a path.

actionjack commented 10 years ago

Ignore this it's actually better to use the followjng in site.pp: Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }

mkrakowitzer commented 10 years ago

Thanks, ill add that to the README.