{% 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 %}