Skip to content

Commit

Permalink
fix(alternatives): fix requisite
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Jun 25, 2019
1 parent 58ed85a commit 8c410d7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions prometheus/archive/alternatives/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ prometheus-archive-alternatives-install-{{ name }}-home-alternatives-install:
- order: 10
- watch:
- archive: prometheus-archive-install-{{ name }}-archive-extracted
- onlyif: {{ grains.os_family not in ('Suse',) }}
prometheus-archive-alternatives-install-{{ name }}-home-alternatives-set:
alternatives.set:
- name: prometheus-{{ name }}-home
- path: {{ p.dir.basedir }}/{{ bundle }}
- require:
- cmd: prometheus-archive-alternatives-install-{{ name }}-home-cmd-run
- alternatives: prometheus-archive-alternatives-install-{{ name }}-home-alternatives-install
{%- endif %}
Expand All @@ -49,7 +47,6 @@ prometheus-archive-alternatives-install-{{ name }}-home-alternatives-set:
prometheus-archive-alternatives-install-{{ name }}-cmd-run-{{ b }}-alternative:
cmd.run:
- onlyif: {{ grains.os_family in ('Suse',) }}
- name: update-alternatives --install /usr/local/bin/{{ b }} prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} {{ p.linux.altpriority }}
- require:
- cmd: prometheus-archive-alternatives-install-{{ name }}-home-cmd-run
Expand Down

0 comments on commit 8c410d7

Please sign in to comment.