any hints on installing a package through the 'brew' provider on macosx?
code:
exec { "brew_install_nginx":
command => "/usr/local/bin/brew install nginx",
creates => "/usr/local/sbin/nginx",
path=> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin",
user => "push",
}
"brew install nginx" works from the command line, outside of puppet
output:
$ ls /usr/local/sbin/nginx
ls: /usr/local/sbin/nginx: No such file or directory
$ /opt/bin/contact_puppet_server.sh
info: Retrieving plugin
info: Caching catalog for
dev.push.am
info: Applying configuration version '1345186944'
err: /Stage[main]/Nginx::Install/Exec[brew_install_nginx]/returns: change from notrun to 0 failed: /usr/local/bin/brew install nginx returned 1 instead of one of [0] at /etc/puppet/modules/nginx/manifests/install.pp:23