Configuration of the alternatives system
Control the alternatives system
{% set my_hadoop_conf = '/opt/hadoop/conf' %} {{ my_hadoop_conf }}: file.directory hadoop-0.20-conf: alternatives.install: - name: hadoop-0.20-conf - link: /etc/hadoop-0.20/conf - path: {{ my_hadoop_conf }} - priority: 30 - require: - file: {{ my_hadoop_conf }} hadoop-0.20-conf: alternatives.remove: - name: hadoop-0.20-conf - path: {{ my_hadoop_conf }}
New in version 0.17.0.
Instruct alternatives to use the highest priority path for <name>
Install new alternative for defined <name>
Removes installed alternative for defined <name> and <path> or fallback to default alternative, if some defined before.
New in version 0.17.0.
Sets alternative for <name> to <path>, if <path> is defined as an alternative for <name>.
foo: alternatives.set: - path: /usr/bin/foo-2.0
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.alternatives.html