Files
states/linux/MesInstalls.sls
2018-03-13 11:05:00 +00:00

35 lines
869 B
Plaintext

{% set Champ = grains['host'] %}
{% if Champ.startswith('CT-cen-elastic') %}
Installation du package ElasticSearch https-transport:
pkg.installed:
- name: {{ pillar['installtransport'] }}
Installation du package ElasticSearch OpenJDK:
pkg.installed:
- name: {{ pillar['installjdk'] }}
# - name: salt['pillar.get']
Installons ElasticSearch:
cmd.script:
- source: salt://elastic/elastic_install.sh
- user: root
- group: root
- shell: /bin/bash
{% elif Champ.startswith('CT-deb-nodejs') %}
Installons Node-JS:
cmd.script:
- source: salt://files/debian_install_nodejs.sh
- user: root
- group: root
- shell: /bin/bash
Installons Nodered:
cmd.script:
- source: salt://files/install_nodered.sh
- user: root
- group: root
- shell: /bin/bash
{% endif %}