Skip to content

Commit

Permalink
Use Ansible Vault for storing users
Browse files Browse the repository at this point in the history
Closes #211.
  • Loading branch information
jchristgit committed Apr 15, 2024
1 parent 9f00fec commit 3516f01
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint-ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
run: |
cd ansible
echo "$VAULT_PASSWORD" > vault_passwords
grep -R GITCRYPT --files-with-matches . | xargs rm
ansible-lint --offline
env:
VAULT_PASSWORD: "${{ secrets.vault-password }}"
2 changes: 1 addition & 1 deletion ansible/.gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
roles/pydis-users/vars/main.yml filter=git-crypt diff=git-crypt
roles/pydis-users/vars/main.yml diff=ansible-vault merge=binary
2 changes: 2 additions & 0 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ To setup a local environment using VMs for testing, [Read here](./local_testing/
1. Install project dependencies: `python -m pip install -r requirements.txt`
1. Install the pre-commit hook: `pre-commit install`
1. Create a `vault_passwords` file and write the vault password to it
1. Configure the Ansible Vault git diff driver using `git config --global
diff.ansible-vault.textconv "ansible-vault view"` and `git config diff.ansible-vault.cachetextconv false`
Binary file modified ansible/roles/pydis-users/vars/main.yml
Binary file not shown.

0 comments on commit 3516f01

Please sign in to comment.