salt.states.alternatives

Configuration of the alternatives system

Control the alternatives system

hadoop-0.20-conf:
  alternatives.install:
    - name: hadoop-0.20-conf
    - link: /etc/hadoop-0.20/conf
    - path: /opt/hadoop/conf
    - priority: 30

hadoop-0.20-conf:
  alternatives:
      - remove
      - name: hadoop-0.20-conf
      - path: /opt/hadoop/conf
salt.states.alternatives.install(name, link, path, priority)

Install new alternative for defined <name>

name
is the master name for this link group (e.g. pager)
link
is the symlink pointing to /etc/alternatives/<name>. (e.g. /usr/bin/pager)
path
is the location of one of the alternative target files. (e.g. /usr/bin/less)
priority
is an integer; options with higher numbers have higher priority in automatic mode.
salt.states.alternatives.remove(name, path)

Removes installed alternative for defined <name> and <path> or fallback to default alternative, if some defined before.

name
is the master name for this link group (e.g. pager)
path
is the location of one of the alternative target files. (e.g. /usr/bin/less)

Parent topic

Table Of Contents

Previous topic

salt.states.alias

Next topic

salt.states.cmd