Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

package install fails with /usr/local permissions error #9

Closed
nrser opened this issue Jun 10, 2014 · 1 comment
Closed

package install fails with /usr/local permissions error #9

nrser opened this issue Jun 10, 2014 · 1 comment

Comments

@nrser
Copy link

nrser commented Jun 10, 2014

using boxes to configure a brand-new mac mini on OX Mavericks 10.9. my manifests/site.pp is barely customized, and is invoking brewcask via

include brewcask

package { 'sublime-text':
  provider => 'brewcask'
}

Puppetfile is pointing to version 0.0.2 with

github "brewcask",  "0.0.2", :repo => "phinze/puppet-brewcask"

error output is as follows, the pertinent part by my guess being Error: Permission denied - /usr/local

$ ./script/boxen
Boxen has a dirty tree, won't auto-update!
Notice: Compiled catalog for beiareas-mac-mini.local in environment production in 3.43 seconds
Notice: /Stage[main]/Osx::Dock::Clear_dock/Boxen::Osx_defaults[Remove all the pinned icons]/Exec[osx_defaults write  com.apple.dock:persistent-apps=>()]/returns: executed successfully
Notice: /Stage[main]/Osx::Dock/Exec[killall Dock]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Gcc/Homebrew::Tap[homebrew/versions]/Homebrew_tap[homebrew/versions]/ensure: created
Notice: /Stage[main]/Brewcask/Homebrew::Tap[phinze/homebrew-cask]/Homebrew_tap[phinze/homebrew-cask]/ensure: created
Error: Permission denied - /usr/local
Error: Could not set 'present' on ensure: Failed running sudo -E -u nrser /opt/boxen/homebrew/bin/brew cask install sublime-text at 247:/opt/boxen/repo/manifests/site.pp
Error: Could not set 'present' on ensure: Failed running sudo -E -u nrser /opt/boxen/homebrew/bin/brew cask install sublime-text at 247:/opt/boxen/repo/manifests/site.pp
Wrapped exception:
Failed running sudo -E -u nrser /opt/boxen/homebrew/bin/brew cask install sublime-text
Error: /Stage[main]/Main/Node[default]/Package[sublime-text]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed running sudo -E -u nrser /opt/boxen/homebrew/bin/brew cask install sublime-text at 247:/opt/boxen/repo/manifests/site.pp

i'm guessing there just needs to be a sudo chown at some point, but it would seem puppet-brewcask should take care of that if it needs write to /usr/local?

@radeksimko
Copy link
Contributor

This belongs to the actual homebrew-cask project as this puppet module does not (and ideally should not) know about brewcask internals.

There's already an existing related issue and it may be solved within that one. If you have any ideas on how to address the issue, please carry on with the discussion there.

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

No branches or pull requests

2 participants