48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
pkg.upgrade:
|
|
module.run:
|
|
- refresh: True
|
|
|
|
Installation de sudo:
|
|
pkg.installed:
|
|
- name: sudo
|
|
|
|
iwanadm:
|
|
user.present:
|
|
- fullname: Iwan l'administrateur
|
|
- shell: /bin/bash
|
|
- home: /home/iwanadm
|
|
- createhome: True
|
|
- password: Gwladys+Ophelie+Aristide_
|
|
- 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
|
|
|
|
{% 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'] }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|