TheKevJames / puppet-homebrew

homebrew (+brewcask! +taps!) package installer and provider
https://forge.puppet.com/thekevjames/homebrew
Apache License 2.0
18 stars 44 forks source link

module doesn't support M1 installations #153

Open vchepkov opened 2 years ago

vchepkov commented 2 years ago

homebrew is installed under /opt/homebrew on M1 Macs https://github.com/Homebrew/install/blob/fdd70fc9706be79722c2fa5c579652003b010c01/install.sh#L117 module providers fail, since they expect brew in /usr/local I tried to add a link from /opt/homebrew to /usr/local, but brew throws warnings which mess up resource provider

vchepkov commented 2 years ago

On related note, in several places provider uses Puppet.Err in exception handling , which doesn't exist

andrew-wils commented 2 years ago

This fork has added support for it: https://github.com/datty/puppet-homebrew-1

vchepkov commented 2 years ago

It really isn't. all resource providers expect brew in /usr/local there as well

michaelw commented 2 years ago

Would you mind giving this a spin: https://github.com/TheKevJames/puppet-homebrew/pull/154

TheKevJames commented 2 years ago

Hey folks -- just merged #155 which goes a bit towards fixing this issue. I think there's still a bit more to be done in #154; once both get merged I'll toss up a release with all these fixes.

vchepkov commented 9 months ago

I switched to git: https://github.com/michaelw/puppet-homebrew.git ref: 7b4e80a71f84553f48ae965c311e4843837420ce

And it works for me. would be nice to have a fact homebrew_prefix and an actual forge release