Support for Alternatives system
codeauthor: | Radek Rada <radek.rada@gmail.com> |
---|---|
copyright: | © 2012 by the SaltStack Team, see AUTHORS for more details. |
license: | Apache 2.0, see LICENSE for more details. |
Check if the current highest-priority match for a given alternatives link is set to the desired path
CLI Example:
salt '*' alternatives.check_installed name path
Display alternatives settings for defined command name
CLI Example:
salt '*' alternatives.display editor
Install symbolic links determining default commands
CLI Example:
salt '*' alternatives.install editor /usr/bin/editor /usr/bin/emacs23 50
Remove symbolic links determining the default commands.
CLI Example:
salt '*' alternatives.remove name path
Display the current highest-priority alternative for a given alternatives link
CLI Example:
salt '*' alternatives.show_current editor