Skip to content

Commit f51bcec

Browse files
authored
Merge pull request #5033 from ashcrow/system-images-registry-followup
System images registry followup
2 parents 89c4051 + c7cc31b commit f51bcec

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

inventory/byo/hosts.origin.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ openshift_release=v3.6
5656
#openshift_use_node_system_container=False
5757
#openshift_use_master_system_container=False
5858
#openshift_use_etcd_system_container=False
59+
#
60+
# In either case, system_images_registry must be specified to be able to find the system images
61+
#system_images_registry="docker.io"
5962

6063
# Install the openshift examples
6164
#openshift_install_examples=true

inventory/byo/hosts.ose.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ openshift_release=v3.6
5656
#openshift_use_node_system_container=False
5757
#openshift_use_master_system_container=False
5858
#openshift_use_etcd_system_container=False
59+
#
60+
# In either case, system_images_registry must be specified to be able to find the system images
61+
#system_images_registry="registry.access.redhat.com"
5962

6063
# Install the openshift examples
6164
#openshift_install_examples=true

playbooks/common/openshift-cluster/initialize_facts.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@
108108
when:
109109
- l_any_system_container | bool
110110

111+
- name: Default system_images_registry to a enterprise registry
112+
set_fact:
113+
system_images_registry: "registry.access.redhat.com"
114+
when:
115+
- system_images_registry is not defined
116+
- openshift_deployment_type == "openshift-enterprise"
117+
118+
- name: Default system_images_registry to community registry
119+
set_fact:
120+
system_images_registry: "docker.io"
121+
when:
122+
- system_images_registry is not defined
123+
- openshift_deployment_type == "origin"
124+
111125
- name: Gather Cluster facts and set is_containerized if needed
112126
openshift_facts:
113127
role: common
@@ -125,7 +139,7 @@
125139
is_master_system_container: "{{ l_is_master_system_container | default(false) }}"
126140
is_etcd_system_container: "{{ l_is_etcd_system_container | default(false) }}"
127141
etcd_runtime: "{{ l_etcd_runtime }}"
128-
system_images_registry: "{{ system_images_registry | default('') }}"
142+
system_images_registry: "{{ system_images_registry }}"
129143
public_hostname: "{{ openshift_public_hostname | default(None) }}"
130144
public_ip: "{{ openshift_public_ip | default(None) }}"
131145
portal_net: "{{ openshift_portal_net | default(openshift_master_portal_net) | default(None) }}"

0 commit comments

Comments
 (0)