Skip to content

Commit

Permalink
Merge branch 'main' into T367415
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinus authored Aug 21, 2024
2 parents 0008b70 + 2d5368f commit dcd08e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ config.yaml
terraform.tfstate*
.terraform*
tofu/kube.config
ansible/collections/*
10 changes: 9 additions & 1 deletion ansible/ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
[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

[inventory]
# Only using localhost, so no inventory
inventory_unparsed_warning=False
5 changes: 3 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ source .venv/deploy/bin/activate
pip install ansible==8.1.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
AWS_ACCESS_KEY_ID=${ACCESS_KEY} AWS_SECRET_ACCESS_KEY=${SECRET_KEY} tofu apply # -auto-approve
export KUBECONFIG=$(pwd)/kube.config

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

ansible-playbook quarry.yaml
#kubectl create namespace quarry --dry-run=client -o yaml | kubectl apply -f -
#helm -n quarry upgrade --install quarry helm-quarry -f helm-quarry/prod-env.yaml
Expand Down

0 comments on commit dcd08e8

Please sign in to comment.