excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / salt.rb
blob83cc8e688b7a2bc3e127515ec335e6066371150a
1 cask "salt" do
2   arch arm: "arm64", intel: "x86_64"
4   version "3007.1"
5   sha256 arm:   "968b7701a470f5786474dea4489f96b546e7b6340ba734695b7899aa6edf14a2",
6          intel: "865d2d3792659ddbd48940b0e031a3e9652a85977cf0a2ef3a5ec00e34eb66cb"
8   url "https://packages.broadcom.com/artifactory/saltproject-generic/macos/#{version}/salt-#{version}-py3-#{arch}.pkg",
9       verified: "packages.broadcom.com/artifactory/saltproject-generic/"
10   name "Salt"
11   desc "Automation and infrastructure management engine"
12   homepage "https://saltproject.io/"
14   livecheck do
15     url "https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/macos.html"
16     regex(/salt[._-]v?(\d+(?:\.\d+)+)-py3-#{arch}\.pkg/i)
17   end
19   pkg "salt-#{version}-py3-#{arch}.pkg"
21   uninstall launchctl: [
22               "com.saltstack.salt.api",
23               "com.saltstack.salt.master",
24               "com.saltstack.salt.minion",
25               "com.saltstack.salt.syndic",
26             ],
27             pkgutil:   "com.saltstack.salt"
29   zap trash: "/etc/salt"
31   def caveats
32     <<~CAVEATS
33       Included services:
35       sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.api.plist
36       sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.master.plist
37       sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.minion.plist
38       sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist
39     CAVEATS
40   end
41 end