From cda94f4f62fc4d85e32fe023ecece9d7f7201ae1 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Tue, 5 Mar 2024 14:19:15 +0100 Subject: [PATCH] templates/packer: don't subscribe executor All the required sources will be proxied. --- .../worker-initialization-scripts/worker_executor.sh | 8 -------- 1 file changed, 8 deletions(-) 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 c31e9b18c..2d1caaf5d 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 @@ -5,14 +5,6 @@ source /etc/os-release # /tmp/cloud_init_vars may not exist on the osbuild-executor source /tmp/cloud_init_vars || true -# Don't subscribe on fedora -if [ "$ID" != fedora ]; then - /usr/local/bin/aws secretsmanager get-secret-value \ - --secret-id executor-subscription-manager-command | jq -r ".SecretString" > /tmp/subscription_manager_command.json - jq -r ".subscription_manager_command" /tmp/subscription_manager_command.json | bash - rm -f /tmp/subscription_manager_command.json -fi - echo "Writing vector config." REGION=$(curl -Ls http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) HOSTNAME=$(hostname)