Install pkg, dmg and .app applications on macOS minions.
Attempt to get the package IDs from a mounted .mpkg file
mpkg (str) -- The location of the mounted mpkg file
List of package IDs
CLI Example:
salt '*' macpackage.get_mpkg_ids /dev/disk2
Attempt to get the package ID from a .pkg file
pkg (str) -- The location of the pkg file
List of all of the package IDs
CLI Example:
salt '*' macpackage.get_pkg_id /tmp/test.pkg
Install a pkg file
A dictionary containing the results of the installation
CLI Example:
salt '*' macpackage.install test.pkg
Install an app file by moving it into the specified Applications directory
The results of the rsync command
CLI Example:
salt '*' macpackage.install_app /tmp/tmp.app /Applications/
Return the list of installed packages on the machine
List of installed packages
CLI Example:
salt '*' macpackage.installed_pkgs
Attempt to mount a dmg file to a temporary location and return the location of the pkg file inside
dmg (str) -- The location of the dmg file to mount
point
CLI Example:
salt '*' macpackage.mount /tmp/software.dmg
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 3004