Skip to content

Commit 66ce614

Browse files
committed
Test with logging into staging registry
1 parent 975ab76 commit 66ce614

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roles/update/tasks/create_local_openstackclient.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
containers.podman.podman_login:
3131
username: "{{ cifmw_registry_token.credentials.username }}"
3232
password: "{{ cifmw_registry_token.credentials.password }}"
33-
registry: "registry.redhat.io"
33+
registry: "registry.stage.redhat.io"
3434
no_log: true
3535

3636
- name: Collect and save OpenStack config files
@@ -50,10 +50,14 @@
5050
set -euo pipefail
5151
OS_CLOUD=default /usr/bin/openstack --insecure "$@"
5252
53+
- name: Update image name to pull from stage
54+
ansible.builtin.set_fact:
55+
openstackclient_stage_image: "{{ openstackclient_image | regex_replace('^registry\\.redhat\\.io(?=/)', 'registry.stage.redhat.io') }}"
56+
5357
- name: Ensure lopenstackclient container is running
5458
containers.podman.podman_container:
5559
name: lopenstackclient
56-
image: "{{ openstackclient_image }}"
60+
image: "{{ openstackclient_stage_image }}"
5761
state: started
5862
net: host
5963
volumes:

0 commit comments

Comments
 (0)