cask "salt" do arch arm: "arm64", intel: "x86_64" version "3007.1" sha256 arm: "968b7701a470f5786474dea4489f96b546e7b6340ba734695b7899aa6edf14a2", intel: "865d2d3792659ddbd48940b0e031a3e9652a85977cf0a2ef3a5ec00e34eb66cb" url "https://packages.broadcom.com/artifactory/saltproject-generic/macos/#{version}/salt-#{version}-py3-#{arch}.pkg", verified: "packages.broadcom.com/artifactory/saltproject-generic/" name "Salt" desc "Automation and infrastructure management engine" homepage "https://saltproject.io/" livecheck do url "https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/macos.html" regex(/salt[._-]v?(\d+(?:\.\d+)+)-py3-#{arch}\.pkg/i) end pkg "salt-#{version}-py3-#{arch}.pkg" uninstall launchctl: [ "com.saltstack.salt.api", "com.saltstack.salt.master", "com.saltstack.salt.minion", "com.saltstack.salt.syndic", ], pkgutil: "com.saltstack.salt" zap trash: "/etc/salt" def caveats <<~CAVEATS Included services: sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.api.plist sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.master.plist sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.minion.plist sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist CAVEATS end end