Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use zuul-scs-jobs role for access jobs #34

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions playbooks/openstack/pre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
vault_role_name: "{{ zuul_vault.vault_role_name }}"

roles:
# Create a new AppRole secret for the zuul-scs-jobs AppRole
- role: create-vault-approle-secret

# Unwrap secret and exchange it for the Vault access token
- role: create-vault-approle-token
vault_role_id: "{{ zuul_vault.vault_role_id }}"
vault_wrapping_token_id: "{{ lookup('file', vault_secret_dest) }}"
Expand Down
2 changes: 2 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
post-run: playbooks/openstack/post.yaml
semaphores:
- semaphore-openstack-access
allowed-projects:
- SovereignCloudStack/zuul-config
vars:
cloud: "gx-scs-zuul"
vault_cloud_secret_path: "clouds/gx_scs_k8s_e2e"
Expand Down