Files
states/linux/MesInstalls.sls
2018-05-21 13:03:35 +02:00

35 lines
872 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 %}