Files
states/linux/MesInstalls.sls
2018-02-21 12:11:09 +00:00

48 lines
1.2 KiB
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'] }}
# Test de copie de fichier:
# file.managed:
# - name: /tmp/elastic-install.sh
# - source: salt://elastic/elastic_install.sh
Installons:
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
# Installation de NodeJS:
# pkgrepo.managed:
# - humanname: Logstash PPA
# - name: deb http://ppa.launchpad.net/wolfnet/logstash/ubuntu precise main
# - dist: precise
# - file: /etc/apt/sources.list.d/logstash.list
# - keyid: 28B04E4A
# - keyserver: keyserver.ubuntu.com
{% endif %}