在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:gildas/puppet-homebrew开源软件地址:https://github.com/gildas/puppet-homebrew开源编程语言:Ruby 59.3%开源软件介绍:puppet-homebrewDescriptionHomebrew for Mac OS/X package installer and provider for PuppetLabs. ======= OverviewThe Homebrew module provides manifest classes to install Homebrew as well as a package provider to install brews from homebrew. SetupSimply load the module via Puppet Forge: puppet module install gildas-homebrew UsageInstalling HomebrewTo install Homebrew, include the main class in your node definition: Caveat: include homebrew Provided you already have a compiler installed! If you do not have a compiler installed or if the compiler is out-of-date, you will want to load one with the class: class {'homebrew':
xcode_cli_source => 'https://my_repo/commandline_tools_os_x_mavericks_for_xcode__march_2014.dmg',
xcode_cli_version => '5.1',
} Note: these 2 arguments are now optional. In that case, the installation will assume Xcode is installed properly.
By default, homebrew will be installed as root/wheel, which might not be the desired choice. To install on behalf of another user, use these parameters: class {'homebrew':
user => gildas,
group => brew,
} to test if Homebrew was installed, just check the Fact has_homebrew (or has_brew) Installing brewsTo install brews, use the package provider as follows: package {'macvim':
ensure => installed,
provider => brew,
linkapps => true,
} Setting linkapps to true will run "brew linkapps" once the package is installed. This is necessary if the installed application should be visible in Finder's Applications. brew will run under the user that was used to install it. Install-time options are given as follows: package {'macvim':
ensure => installed,
provider => brew,
linkapps => true,
install_options => [ '--override-system-vim' ],
} Tapping repositoriesTo tap into new Github repositories, simply use the tap provider: package {'homebrew/binaries':
ensure => present,
provider => tap,
} You can untap a repository by setting ensure to absent. Hiera configurationIf you use hiera, the puppet class homebrew will search for an entry called "packages". All packages inside that hash will get installed by the homebrew class. Note that packages are merged via the hash method in Hiera. This allows to install common packages on nodes of the same OS, then specific packages on some nodes. E.g: {
"packages": {
"homebrew/binaries": { "provider": "tap" },
"vim": {},
"macvim": {},
"tree": {},
"multitail": {}
}
} Authors/ContributorsLicenseCopyright (c) 2014 Gildas CHERRUEL (Apache License, Version 2.0) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论