From 7c42924ffaee2b0c5577bf3e8ee55ca11568b90a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Thu, 7 Mar 2024 13:27:11 +0100 Subject: [PATCH] Packer: don't source non-existing file in worker_executor.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /tmp/cloud_init_vars is not created on the worker executor, so sourcing it will make the script fail. Comment the line out, until we change the worker implementation to inject this file into the worker executor using cloud-init. Signed-off-by: Tomáš Hozza --- .../files/worker-initialization-scripts/worker_executor.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/packer/ansible/roles/common/files/worker-initialization-scripts/worker_executor.sh b/templates/packer/ansible/roles/common/files/worker-initialization-scripts/worker_executor.sh index a0b843aeb..c3ca61d92 100755 --- a/templates/packer/ansible/roles/common/files/worker-initialization-scripts/worker_executor.sh +++ b/templates/packer/ansible/roles/common/files/worker-initialization-scripts/worker_executor.sh @@ -2,7 +2,8 @@ set -euo pipefail source /etc/os-release -source /tmp/cloud_init_vars +# TODO: uncomment, when the cloud_init_vars file is created on the executor +#source /tmp/cloud_init_vars # Don't subscribe on fedora if [ "$ID" != fedora ]; then