Here's what I'm using:exec { "cert-fix":command => "curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt",onlyif => "test -e /etc/pki/tls/certs/ca-bundle.crt",}But it keeps on failing:--[default] Running Puppet with /tmp/vagrant-puppet/manifests/acid.pp...
Parameter onlyif failed: 'test -e /etc/pki/tls/certs/ca-bundle.crt' is both unqu
alifed and specified no search path at /tmp/vagrant-puppet/manifests/acid.pp:23
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!I am trying to make that exec run the command if the file for it does not exist yet.What am I doing wrong?
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/5XjljtHXxCAJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Binaries like curl and test must be fully qualified (ex. /bin/rm) or you must pass the path attribute to your exec resource with a search path like '/bin:/usr/bin' as the value.
HTH, --Ryan
On Monday, July 2, 2012, Benjamin Lei wrote:
Here's what I'm using:exec { "cert-fix":command => "curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt",onlyif => "test -e /etc/pki/tls/certs/ca-bundle.crt",}But it keeps on failing:--[default] Running Puppet with /tmp/vagrant-puppet/manifests/acid.pp...
Parameter onlyif failed: 'test -e /etc/pki/tls/certs/ca-bundle.crt' is both unqu
alifed and specified no search path at /tmp/vagrant-puppet/manifests/acid.pp:23
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!I am trying to make that exec run the command if the file for it does not exist yet.What am I doing wrong?
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/5XjljtHXxCAJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
So fully qualified means I need to add in a path to the command I'm trying to execute (i.e. test/grep)?
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ocGCHl0Q5VsJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Binaries like curl and test must be fully qualified (ex. /bin/rm) or you must pass the path attribute to your exec resource with a search path like '/bin:/usr/bin' as the value.