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 %}