puppet-homebrew icon indicating copy to clipboard operation
puppet-homebrew copied to clipboard

privileged installers

Open adamjacobmuller opened this issue 5 years ago • 1 comments

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 avatar Aug 20 '19 17:08 adamjacobmuller

@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

damonbreeden avatar Oct 07 '22 16:10 damonbreeden