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-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to