A cookbook, based on the pivotal_workstation, but without a lot of custom providers and a lot cleaner.
This cookbook provides a package provider called homebrew_package
which will install/remove packages using Homebrew. This becomes the
default provider for package
if your platform is Mac OS X.
As this extends the built-in package resource/provider in Chef, it has all the resource attributes and actions available to the package resource. However, a couple notes:
package "mysql" do
action :install
end
homebrew_package "mysql"
package "mysql" do
provider Chef::Provider::Package::Homebrew
end
LWRP for brew tap
, a Homebrew command used to add additional formula
repositories. From the brew
man page:
tap [tap]
Tap a new formula repository from GitHub, or list existing taps.
tap is of the form user/repo, e.g. brew tap homebrew/dupes.
Default action is :tap
which enables the repository. Use :untap
to
disable a tapped repository.
homebrew_tap "homebrew/dupes"
homebrew_tap "homebrew/dupes" do
action :untap
end
add_component_x
)