Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

privileged installers #116

Open
AdamJacobMuller opened this issue Aug 20, 2019 · 1 comment
Open

privileged installers #116

AdamJacobMuller opened this issue Aug 20, 2019 · 1 comment

Comments

@AdamJacobMuller
Copy link

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.

@damonbreeden
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants