Files
states/linux/MesInstalls.sls
2018-03-13 10:50:35 +00:00

34 lines
837 B
Plaintext

{% set Champ = grains['host'] %}
{% if Champ.startswith('CT-cen-elastic') %}
Installation du packages ElasticSearch OpenJDK:
pkg.installed:
- name: {{ pillar['installjdk'] }}
Installation du packages ElasticSearch https-transport:
pkg.installed:
- name: {{ pillar['installtransport'] }}
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 %}