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 }}
prometheus_bin_link:
alternatives.install:
- name: prometheus
- link: /usr/bin/prometheus
- path: {{ version_path }}/prometheus
- priority: 10
file.symlink:
- name: /usr/bin/prometheus
- target: {{ version_path }}/prometheus
- require:
- archive: prometheus_server_tarball