File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
playbooks/common/openshift-cluster Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ openshift_release=v3.6
56
56
#openshift_use_node_system_container=False
57
57
#openshift_use_master_system_container=False
58
58
#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"
59
62
60
63
# Install the openshift examples
61
64
#openshift_install_examples=true
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ openshift_release=v3.6
56
56
#openshift_use_node_system_container=False
57
57
#openshift_use_master_system_container=False
58
58
#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"
59
62
60
63
# Install the openshift examples
61
64
#openshift_install_examples=true
Original file line number Diff line number Diff line change 108
108
when :
109
109
- l_any_system_container | bool
110
110
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
+
111
125
- name : Gather Cluster facts and set is_containerized if needed
112
126
openshift_facts :
113
127
role : common
125
139
is_master_system_container : " {{ l_is_master_system_container | default(false) }}"
126
140
is_etcd_system_container : " {{ l_is_etcd_system_container | default(false) }}"
127
141
etcd_runtime : " {{ l_etcd_runtime }}"
128
- system_images_registry : " {{ system_images_registry | default('') }}"
142
+ system_images_registry : " {{ system_images_registry }}"
129
143
public_hostname : " {{ openshift_public_hostname | default(None) }}"
130
144
public_ip : " {{ openshift_public_ip | default(None) }}"
131
145
portal_net : " {{ openshift_portal_net | default(openshift_master_portal_net) | default(None) }}"
You can’t perform that action at this time.
0 commit comments