https://github.com/kelseyhightower/puppet-homebrew
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To post to this
Hello,
The problem is that you're running 'brew install nginx' as root, since
Puppet runs as root.
If you run that command as root on a console it will tell you:
9:35:11 r...@chell.portal.daenney.net ~ brew install nginx
Cowardly refusing to `sudo brew install'
And it exists with an exitcode
I figured out how to get puppet to install nginx through the puppet
provider without running it as root.
someone on IRC suggested I add logoutput = on_failure
exec { brew_install_nginx:
command = /usr/local/bin/brew install nginx,
creates = /usr/local/sbin/nginx,