59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
pkg.upgrade:
|
|
module.run:
|
|
- refresh: True
|
|
|
|
Installation de sudo:
|
|
pkg.installed:
|
|
- name: sudo
|
|
|
|
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
|
|
|
|
Installation des outils Net-tools:
|
|
pkg.installed:
|
|
- name: net-tools
|
|
|
|
Installation de less:
|
|
pkg.installed:
|
|
- name: less
|
|
|
|
Installation du serveur SSH:
|
|
pkg.installed:
|
|
- name: openssh-server
|
|
|
|
Installation de wget:
|
|
pkg.installed:
|
|
- name: wget
|
|
|
|
{% if grains['oscodename'] == 'stretch' %}
|
|
{% if grains['virtual'] == 'LXC' %}
|
|
{% if grains['host'] == 'CT-deb-elastic*' %}
|
|
Installation des packages ElasticSearch OpenJDK:
|
|
pkg.installed:
|
|
- name: {{ pillar['installjdk'] }}
|
|
|
|
Installation des packages ElasticSearch https-transport:
|
|
pkg.installed:
|
|
- name: {{ pillar['installtransport'] }}
|
|
|
|
Test de copie de fichier:
|
|
file:
|
|
- name: /tmp/elastic-install.sh
|
|
- source: salt://elastic/elastic-install.sh
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|