Skip to content

Commit

Permalink
templates/packer: don't subscribe executor
Browse files Browse the repository at this point in the history
All the required sources will be proxied.
  • Loading branch information
croissanne committed Mar 19, 2024
1 parent 4e2d990 commit cda94f4
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cda94f4

Please sign in to comment.