Skip to content

Commit

Permalink
Merge pull request #977 from kysrpex/workaround_tpv_workflow
Browse files Browse the repository at this point in the history
Workaround Ansible vault password not being available to GitHub.
  • Loading branch information
bgruening authored Nov 4, 2023
2 parents 43039f3 + 6ada89c commit 9ecca23
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def make_playbook(
dummy_vars = {}
# - determinate what is already defined in group variables
group_vars = set()
for file_path in glob.glob(str(directory / "group_vars" / "*")):
for file_path in glob.glob(
str(directory / "group_vars" / "**" / "*.y*ml"), recursive=True
):
contents = yaml.safe_load(open(file_path))
group_vars |= set(contents)
# - for vars files
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/tpv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
with:
path: 'infrastructure-playbook'

- name: Workaround Ansible vault password not being available to GitHub.
working-directory: 'infrastructure-playbook'
run: |
rm -f group_vars/htcondor/vault.yml
rm -f group_vars/htcondor-secondary/vault.yml
- name: Update git submodules.
working-directory: 'infrastructure-playbook'
run: |
Expand Down Expand Up @@ -181,6 +187,12 @@ jobs:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
path: 'infrastructure-playbook'

- name: Workaround Ansible vault password not being available to GitHub.
working-directory: 'infrastructure-playbook'
run: |
rm -f group_vars/htcondor/vault.yml
rm -f group_vars/htcondor-secondary/vault.yml
- name: Update git submodules.
working-directory: 'infrastructure-playbook'
run: |
Expand Down

0 comments on commit 9ecca23

Please sign in to comment.