From fe9933a44a8ee1304e8052f866e635b90e9d95cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Tue, 13 Feb 2018 19:41:11 +0000 Subject: [PATCH] Update 'linux/init.sls' --- linux/init.sls | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/linux/init.sls b/linux/init.sls index 956fbbd..c652c5d 100644 --- a/linux/init.sls +++ b/linux/init.sls @@ -32,10 +32,16 @@ Installation du serveur SSH: pkg.installed: - name: openssh-server -Installation des packages ElasticSearch OpenJDK: - pkg.installed: - - name: {{ pillar['installjdk'] }} +{% 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'] }} \ No newline at end of file + Installation des packages ElasticSearch https-transport: + pkg.installed: + - name: {{ pillar['installtransport'] }} + {% endif %} + {% endif %} +{% endif %}