salt.modules.alternatives
Support for Alternatives system
- codeauthor
-
Radek Rada <radek.rada@gmail.com>
-
Trigger alternatives to set the path for <name> as specified by priority.
CLI Example:
salt '*' alternatives.auto name
salt.modules.alternatives.auto(name)
-
Check if the given path is an alternative for a name.
New in version 2015.8.4.
CLI Example:
salt '*' alternatives.check_exists name path
salt.modules.alternatives.check_exists(name, path)
-
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
salt.modules.alternatives.check_installed(name, path)
-
Display alternatives settings for defined command name
CLI Example:
salt '*' alternatives.display editor
salt.modules.alternatives.display(name)
-
Install symbolic links determining default commands
CLI Example:
salt '*' alternatives.install editor /usr/bin/editor /usr/bin/emacs23 50
salt.modules.alternatives.install(name, link, path, priority)
-
Remove symbolic links determining the default commands.
CLI Example:
salt '*' alternatives.remove name path
salt.modules.alternatives.remove(name, path)
-
Manually set the alternative <path> for <name>.
CLI Example:
salt '*' alternatives.set name path
salt.modules.alternatives.set_(name, path)
-
Display the current highest-priority alternative for a given alternatives link
CLI Example:
salt '*' alternatives.show_current editor
salt.modules.alternatives.show_current(name)
-
Display master link for the alternative
New in version 2015.8.13,2016.3.4,2016.11.0.
CLI Example:
salt '*' alternatives.show_link editor
salt.modules.alternatives.show_link(name)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.alternatives.html