Change alternatives system to symlink to avoid priority clash when upgrading

This commit is contained in:
Ricardo Hernandez 2016-10-11 17:14:24 +01:00
parent a2c9452382
commit db6d81c314

View file

@ -13,11 +13,9 @@ prometheus_server_tarball:
- if_missing: {{ version_path }} - if_missing: {{ version_path }}
prometheus_bin_link: prometheus_bin_link:
alternatives.install: file.symlink:
- name: prometheus - name: /usr/bin/prometheus
- link: /usr/bin/prometheus - target: {{ version_path }}/prometheus
- path: {{ version_path }}/prometheus
- priority: 10
- require: - require:
- archive: prometheus_server_tarball - archive: prometheus_server_tarball