Skip to content
Closed
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: 3 additions & 1 deletion tests/roles/development_environment/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ enable_federation: false
get_oidc_token_command: >-
ssh -i {{ edpm_privatekey_path }} -o StrictHostKeyChecking=no {{ source_osp_ssh_user }}@{{ standalone_ip | default(edpm_node_ip) }} "source {{ federation_oidc_cloudrc_remote_path }} && openstack token issue -f value -c id"
# Path on the source node where the rendered cloudrc file should be stored.
federation_oidc_cloudrc_remote_path: /home/{{ source_osp_ssh_user }}/ci-framework-data/tmp/{{ federation_oidc_cloudrc_filename }}
federation_oidc_cloudrc_remote_path: /root/{{ federation_oidc_cloudrc_filename }}
# Name of the cloudrc file rendered for OIDC authentication.
federation_oidc_cloudrc_filename: kctestuser1
federation_oidc_cloudrc_template: kctestuser1.j2
# Location of the ingress operator CA used to seed the Keycloak trust bundle.
federation_ingress_ca_path: ~/ci-framework-data/tmp/ingress-operator-ca.crt
# Location on the standalone node where the ingress operator CA is copied to.
federation_oidc_ca_remote_path: /root/ingress-operator-ca.crt

# Federation defaults aligned with ci-framework
cifmw_federation_keycloak_url: https://keycloak-openstack.apps-crc.testing
Expand Down
7 changes: 7 additions & 0 deletions tests/roles/development_environment/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@
{{ openstack_command }} token issue -f value -c id
register: before_adoption_token

- name: Upload TLS CA certificate bundle to standalone
when: enable_federation | default(false) | bool
ansible.builtin.shell:
cmd: |
{{ shell_header }}
scp -o StrictHostKeyChecking=no -i {{ edpm_privatekey_path }} {{ federation_ingress_ca_path }} {{ source_osp_ssh_user }}@{{ standalone_ip | default(edpm_node_ip) }}:{{ federation_oidc_ca_remote_path }}

- name: Render OIDC cloudrc
when: enable_federation | default(false) | bool
ansible.builtin.template:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
unset OS_CLOUD
export OS_CACERT=/home/cloud-admin/full-ca-list.crt
export OS_CACERT={{ federation_oidc_ca_remote_path }}
export OS_PROJECT_NAME="{{ cifmw_federation_project_name }}"
export OS_PROJECT_DOMAIN_NAME="{{ cifmw_federation_domain }}"
export OS_AUTH_URL="{{ cifmw_federation_keystone_url }}/v3"
Expand Down