homebrew-cask/Casks/puppet-agent.rb

28 lines
1.0 KiB
Ruby

cask 'puppet-agent' do
version '1.9.0-1'
if MacOS.version == :yosemite
sha256 '18e6eb90656e90f98ee4197a442a0d40bfb2a2e72ea0582e514429322dd75eb0'
elsif MacOS.version == :el_capitan
sha256 '8bb89eaf4b4b36e8e2937bfe888a2464fbadd9797142c8c534d4c3a6152c1c53'
else
sha256 'ebc89b367ce9358df9cc729b3ec15c816079ba857c36844671f784f2aee9af74'
end
# downloads.puppetlabs.com was verified as official when first introduced to the cask
url "https://downloads.puppetlabs.com/mac/#{MacOS.version}/PC1/x86_64/puppet-agent-#{version}.osx#{MacOS.version}.dmg"
appcast 'https://downloads.puppetlabs.com/mac/10.12/PC1/x86_64/',
checkpoint: 'dbc2cf5aedba48d58d0e8f559297fb968789e92da59aba41e0ff1dea18818957'
name 'Puppet Agent'
homepage 'https://docs.puppet.com/puppet/4.5/about_agent.html'
depends_on macos: '>= :yosemite'
pkg "puppet-agent-#{version}-installer.pkg"
uninstall launchctl: %w[puppet pxp-agent mcollective],
pkgutil: 'com.puppetlabs.puppet-agent'
zap delete: '~/.puppetlabs'
end