Use symlink to bin in node-exporter and alertmanager

This commit is contained in:
Ricardo Hernandez 2016-10-11 17:18:58 +01:00
parent db6d81c314
commit 087c107b50
2 changed files with 6 additions and 10 deletions

View file

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

View file

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