Skip to content

Commit

Permalink
Remedy warning in collections install (#447)
Browse files Browse the repository at this point in the history
Bug: T372883
  • Loading branch information
vivian-rook authored Aug 20, 2024
1 parent ca46309 commit 501b9d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ terraform.tfstate*
.terraform*
tofu/kube.config
.venv*
ansible/collections/*
3 changes: 2 additions & 1 deletion ansible/ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[defaults]

# Better error output
stdout_callback=debug
stderr_callback=debug

collections_path=./collections/ansible_collections

# we're only using localhost, no need for the warning.
localhost_warning=False

Expand Down
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ source .venv/deploy/bin/activate
pip install ansible==9.6.0 kubernetes==26.1.0
# install helm diff. Needed to keep helm module idempotent
helm plugin install https://github.com/databus23/helm-diff || true
# update kubernetes.core. This path will likely need updated with bastion os upgrades.
ansible-galaxy collection install -U kubernetes.core -p ./.venv/deploy/lib/python3.11/site-packages/ansible_collections


cd tofu
AWS_ACCESS_KEY_ID=${ACCESS_KEY} AWS_SECRET_ACCESS_KEY=${SECRET_KEY} tofu init -backend-config=${datacenter}-backend.conf
Expand All @@ -62,4 +59,7 @@ then
fi

cd ../ansible
# install collections here to take advantage of ansible.cfg configs
ansible-galaxy collection install -U kubernetes.core -p ./collections

ansible-playbook paws.yaml --extra-vars "datacenter=${datacenter}"

0 comments on commit 501b9d4

Please sign in to comment.