28 lines
1.0 KiB
Ruby
28 lines
1.0 KiB
Ruby
cask 'puppet-agent' do
|
|
version '1.10.4-1'
|
|
|
|
if MacOS.version == :yosemite
|
|
sha256 'e9c2dd30c2a81cf004f168782e2cc49161e2bd4ea041e43116a7d0be5b854dfb'
|
|
elsif MacOS.version == :el_capitan
|
|
sha256 'e37067d3a337492021895ca14a60e50be4eea82e0b9c431b63ecc95b63bf4876'
|
|
else
|
|
sha256 '32ff2b3dafbc9e98df979d4a3bb0ebc42963277430a5f5be7ae07e5123bbd143'
|
|
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: '349c8d077a54dc2d481626a58512f3be63d0287799928ce0fc6feaff5edf5baf'
|
|
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: ['puppet', 'pxp-agent', 'mcollective'],
|
|
pkgutil: 'com.puppetlabs.puppet-agent'
|
|
|
|
zap trash: '~/.puppetlabs'
|
|
end
|