From 9b6fb3602f7b1e8e9a51554431aca7c45c8d4806 Mon Sep 17 00:00:00 2001 From: Michael Russell Date: Wed, 31 Jan 2018 14:29:49 +0100 Subject: [PATCH] Mount /etc/elasticsearch as a volume otherwise x-pack fails to make immutable changes to the static x-pack users file --- .kitchen.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.kitchen.yml b/.kitchen.yml index 0b66d23..7af7ab7 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -39,7 +39,9 @@ platforms: - pip install jmespath - pip uninstall -y ansible use_sudo: false - volume: <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + volume: + - <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + - /etc/elasticsearch - name: ubuntu-16.04 driver_config: image: dliappis/ubuntu-devopsci:16.04 @@ -51,7 +53,9 @@ platforms: - pip install jmespath - pip uninstall -y ansible use_sudo: false - volume: <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + volume: + - <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + - /etc/elasticsearch run_command: "/sbin/init" - name: debian-8 driver_config: @@ -65,7 +69,9 @@ platforms: - sed -ri 's/^#?UsePAM .*/UsePAM no/' /etc/ssh/sshd_config - pip install jmespath - pip uninstall -y ansible - volume: <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + volume: + - <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + - /etc/elasticsearch use_sudo: false run_command: "/sbin/init" - name: centos-7 @@ -80,7 +86,9 @@ platforms: - yum -y remove ansible - yum clean all - pip install jmespath - volume: <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + volume: + - <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json + - /etc/elasticsearch run_command: "/usr/sbin/init" privileged: true use_sudo: false