Files
states/linux/MesInstalls.sls

36 lines
900 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:
- java-1.8.0-openjdk
# A remettre avec le gitfs pillar
# - name: {{ pillar['installjdk'] }}
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 %}