summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-05-19 11:17:32 -0400
committerScott Dodson <sdodson@redhat.com>2016-06-17 13:25:19 -0400
commited28e9a5929aaa305d5d9db38da96887184b3338 (patch)
tree8e424b41781f1bd041e0816c05b78c55abadfb24 /roles/openshift_examples/tasks
parent5c095116ff23ee1ccbe6ba0407cff0fb05d9980d (diff)
downloadopenshift-ed28e9a5929aaa305d5d9db38da96887184b3338.tar.gz
openshift-ed28e9a5929aaa305d5d9db38da96887184b3338.tar.bz2
openshift-ed28e9a5929aaa305d5d9db38da96887184b3338.tar.xz
openshift-ed28e9a5929aaa305d5d9db38da96887184b3338.zip
If registry_url != registry.access.redhat.com then modify image streams
Diffstat (limited to 'roles/openshift_examples/tasks')
-rw-r--r--roles/openshift_examples/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/openshift_examples/tasks/main.yml b/roles/openshift_examples/tasks/main.yml
index a5731be09..fb10188f2 100644
--- a/roles/openshift_examples/tasks/main.yml
+++ b/roles/openshift_examples/tasks/main.yml
@@ -4,6 +4,11 @@
src: "examples/{{ content_version }}/"
dest: "{{ examples_base }}/"
+- name: Modify registry paths if registry_url is not registry.access.redhat.com
+ shell: >
+ find {{ examples_base }} -type f | xargs -n 1 sed -i 's|registry.access.redhat.com|{{ registry_host | quote }}|g'
+ when: registry_host != ''
+
# RHEL and Centos image streams are mutually exclusive
- name: Import RHEL streams
command: >