Files
states/linux/init.sls
2018-02-19 19:12:02 +00:00

46 lines
1.1 KiB
Plaintext

pkg.upgrade:
module.run:
- refresh: True
include:
- linux.MesPaquets
Mise en place d'un administrateur universel:
user.present:
- name: {{ pillar['superadmusr'] }}
- fullname: {{ pillar['superadmfn'] }}
- shell: /bin/bash
- home: /home/{{ pillar['superadmusr'] }}
- createhome: True
- password: {{ pillar['superadmpwd'] }}
- hash_password: True
- uid: 9876
- gid_from_name: True
- optional_groups:
- wheel
- sudo
{% if grains['oscodename'] == 'stretch' %}
{% if grains['virtual'] == 'LXC' %}
{% if grains['id'] == 'CT-deb-elastic*' %}
Installation du packages ElasticSearch OpenJDK:
pkg.installed:
- name: {{ pillar['installjdk'] }}
Installation du packages ElasticSearch https-transport:
pkg.installed:
- name: {{ pillar['installtransport'] }}
Installation du package CURL:
pkg.installed:
- name: curl
Test de copie de fichier:
file.managed:
- name: /tmp/elastic-install.sh
- source: salt://elastic/elastic_install.sh
{% endif %}
{% endif %}
{% endif %}