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

Unclear docs/recommendations for running as root (or not) #159

Open
zbentley opened this issue Aug 2, 2022 · 0 comments
Open

Unclear docs/recommendations for running as root (or not) #159

zbentley opened this issue Aug 2, 2022 · 0 comments

Comments

@zbentley
Copy link

zbentley commented Aug 2, 2022

If my Puppet code has

class {"homebrew":
     user => "myuser",
     github_token => "whatnot"
}
package { "ack": provider => brew }

And I run that code as myuser, via sudo bolt apply, the package install fails with:

Package[ack]: change from 'absent' to 'present' failed: Could not install package: Execution of '/opt/homebrew/bin/brew install ack' returned 1:

However, if I drop the sudo, the install proceeds appropriately.

README indicates that running puppet as root and brew as a user is good/desirable/common, but it seems like it's unsupported.

I'm using master (53a5631) since other code does not look for/use Homebrew binaries from the right place.

I'm on MacOS12.5 on an ARM/M1 mac, with a fresh install of Macos (no upgrade in place), and Homebrew installed via their site's curl oneliner, not installed via Puppet/this module.

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

1 participant