salt.modules.alternatives

salt.modules.alternatives

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.
salt.modules.alternatives.check_installed(name, path)

Check if the alternatives link is set to desired path.

CLI Example:

salt '*' alternatives.check_installed name path
salt.modules.alternatives.display(name)

Display alternatives settings for defined command name.

CLI Example:

salt '*' alternatives.display <command name>
salt.modules.alternatives.install(name, link, path, priority)

Install symbolic links determining default commands.

CLI Example:

salt '*' alternatives.install name link path priority
salt.modules.alternatives.remove(name, path)

Remove symbolic links determining the default commands.

CLI Example:

salt '*' alternatives.remove name path
salt.modules.alternatives.show_current(name)

Display the current alternatives for the given name

CLI Example:

salt '*' alternatives.show_current emacs

Table Of Contents

Previous topic

salt.modules.aliases

Next topic

salt.modules.apache