fix(install.sls): fix salt-lint
errors
```bash Examining prometheus/archive/alternatives/install.sls of type state [206] Jinja variables should have spaces before and after: {{ var_name }} prometheus/archive/alternatives/install.sls:21 - name: update-alternatives --install {{ p.dir.basedir }}/{{ name }} prometheus-{{ name }}-home {{ p.dir.basedir }}/{{ bundle }} {{p.linux.altpriority}} [204] Lines should be no longer that 160 chars prometheus/archive/alternatives/install.sls:50 - name: update-alternatives --install /usr/local/bin/{{ b }} prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} {{ p.linux.altpriority }} ```
This commit is contained in:
parent
ff96b7dba2
commit
85c7fceb0d
@ -18,7 +18,10 @@ include:
|
|||||||
|
|
||||||
prometheus-archive-alternatives-install-{{ name }}-home-cmd-run:
|
prometheus-archive-alternatives-install-{{ name }}-home-cmd-run:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: update-alternatives --install {{ p.dir.basedir }}/{{ name }} prometheus-{{ name }}-home {{ p.dir.basedir }}/{{ bundle }} {{p.linux.altpriority}}
|
- name: |
|
||||||
|
update-alternatives --install {{ p.dir.basedir }}/{{ name }} \
|
||||||
|
prometheus-{{ name }}-home {{ p.dir.basedir }}/{{ bundle }} \
|
||||||
|
{{ p.linux.altpriority }}
|
||||||
- watch:
|
- watch:
|
||||||
- archive: prometheus-archive-install-{{ name }}-archive-extracted
|
- archive: prometheus-archive-install-{{ name }}-archive-extracted
|
||||||
|
|
||||||
@ -47,7 +50,10 @@ prometheus-archive-alternatives-install-{{ name }}-home-alternatives-set:
|
|||||||
|
|
||||||
prometheus-archive-alternatives-install-{{ name }}-cmd-run-{{ b }}-alternative:
|
prometheus-archive-alternatives-install-{{ name }}-cmd-run-{{ b }}-alternative:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: update-alternatives --install /usr/local/bin/{{ b }} prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} {{ p.linux.altpriority }}
|
- name: |
|
||||||
|
update-alternatives --install /usr/local/bin/{{ b }} \
|
||||||
|
prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} \
|
||||||
|
{{ p.linux.altpriority }}
|
||||||
- require:
|
- require:
|
||||||
- cmd: prometheus-archive-alternatives-install-{{ name }}-home-cmd-run
|
- cmd: prometheus-archive-alternatives-install-{{ name }}-home-cmd-run
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user