homebrew-cask/Casks/puppet-agent.rb

30 lines
1.0 KiB
Ruby
Raw Normal View History

2016-05-18 00:38:49 +08:00
cask 'puppet-agent' do
version '1.5.2-1'
2016-05-18 00:38:49 +08:00
2016-08-08 03:12:48 +08:00
if MacOS.version == :mavericks
sha256 'bc75b261b2c1e5ed18599e63848e22fd4fca440242ba31391617a9a59806ef7a'
2016-08-08 03:12:48 +08:00
elsif MacOS.version == :yosemite
sha256 'ba9d22b4992f96f6e100e689f92f81e4cabb0459730459d9b53fe54c59b392a4'
2016-08-08 03:12:48 +08:00
else # MacOS.version == :el_capitan
sha256 '67613f23e6e7708fd1f8ddaa8528260cce176c4d46d7c3d666c236ea0edd1c8c'
2016-05-18 00:38:49 +08:00
end
2016-05-21 11:49:50 +08:00
# downloads.puppetlabs.com was verified as official when first introduced to the cask
2016-08-08 03:12:48 +08:00
url "https://downloads.puppetlabs.com/mac/#{MacOS.version}/PC1/x86_64/puppet-agent-#{version}.osx#{MacOS.version}.dmg"
2016-05-18 00:38:49 +08:00
name 'Puppet Agent'
2016-05-25 06:54:17 +08:00
homepage 'https://docs.puppet.com/puppet/4.5/reference/about_agent.html'
2016-05-18 00:38:49 +08:00
depends_on macos: [
:mavericks,
:yosemite,
:el_capitan,
]
2016-07-08 23:37:36 +08:00
pkg "puppet-agent-#{version}-installer.pkg"
2016-05-18 00:38:49 +08:00
uninstall launchctl: %w[puppet pxp-agent mcollective],
pkgutil: 'com.puppetlabs.puppet-agent'
zap delete: '~/.puppetlabs'
2016-05-18 00:38:49 +08:00
end