Comments (4)
brew cask install puppet
source
from puppet-homebrew.
If I run puppet with sudo
, everything works
$ sudo puppet apply --modulepath ./lib/modules setup.pp
Notice: Compiled catalog for nexussafe-macbook-pro.local in environment production in 0.52 seconds
Notice: /Stage[main]/Main/Package[thunderbird]/ensure: created
Notice: Finished catalog run in 31.40 seconds
$ puppet apply --modulepath ./lib/modules setup.pp
Notice: Compiled catalog for nexussafe-macbook-pro.local in environment production in 0.52 seconds
Error: Could not update: Could not find package thunderbird
Error: /Stage[main]/Main/Package[thunderbird]/ensure: change from absent to latest failed: Could not update: Could not find package thunderbird
Notice: Finished catalog run in 0.11 seconds
setup.pp looks as follows:
if $::kernel == darwin {
package {
'thunderbird':
ensure => latest,
provider => brewcask,
}
}
lib/modules/
has homebrew
folder that is dowloaded from puppetforge
from puppet-homebrew.
Interesting. AFAIK many puppet modules are written assuming they are being run by the root user, so you may want to make that your standard workflow.
That said, this module should be easy enough to modify to run as non-root; I see two potential problem areas: the su
@nexussafe brought up and most of homebrew::install
, since puppet throws
Warning: Cannot manage ownership unless running as root
This is probably fixable.
Current guesses:
su
: check current user and onlysu
if they are not the correct user (facter {,g}id
is string). Group may be more iffy, but can probably be ignored?homebrew::install
: might be dealt with by refactor to new standards? Check current puppet version compat to ensure nothing is lost there. If not, ownership could probably be managed iff user is privileged (how check?).
from puppet-homebrew.
I can no longer replicate this bug as of release 1.4.2. Closing this issue. If you continue to have problems, please let me know.
from puppet-homebrew.
Related Issues (20)
- executing brew info from within puppet fails, but doing it manually in the shell works HOT 2
- Run brew commands from `/tmp` or similar public folder
- Unable to install from URL with mixed-case HOT 2
- Unable to install java8 due to sudo asking for password HOT 1
- Notify error when brew user has no privileges on cwd HOT 1
- fix puppet6 dependencies HOT 1
- fix PDK build in CI HOT 2
- privileged installers HOT 1
- Brewcask provider no longer works
- Dependency and Compatibility Versions HOT 1
- module doesn't support M1 installations HOT 6
- Unclear docs/recommendations for running as root (or not)
- Apple M1 Chip is installing Brew to usr/local/bin instead of /opt/homebrew
- Use proper homebrew installation script
- Update functionality does not work as expected HOT 3
- Fix bug for incomplete brew installations
- Handle better brew outputs
- /usr/local immutable on High Sierra
- Silently fails to install a package on first run of Puppet HOT 1
- /usr/local under High Sierra HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-homebrew.