34 lines
837 B
Plaintext
34 lines
837 B
Plaintext
{% set Champ = grains['host'] %}
|
|
|
|
{% if Champ.startswith('CT-deb-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 %} |