puppet-homebrew
puppet-homebrew copied to clipboard
privileged installers
For some brew casks things fail due to:
==> Running installer for adguard; your password may be necessary.
Ultimately I am running puppet as root here, and the puppet module is running the brew commands as a user. Considering that is there any way to install casks that require elevated privileges to install.
@AdamJacobMuller i think it's outside of the scope of this project, but in order to facilitate this we add our user to /etc/sudoers.d/
team@macvm101:~$ sudo cat /etc/sudoers.d/user_brew
#NB managed by puppet
user ALL = (root) NOPASSWD:SETENV: /usr/bin/env
this specific example could be revised to be more focused on the exact commands required