diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2016-04-22 15:01:39 -0400 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2016-04-25 15:31:45 -0400 |
commit | e3e6c094ad492bfe834ab736ab8c92f106ec1938 (patch) | |
tree | 1db4fc324f6c69bdb8a072eca3615d6d98fc3bf3 | |
parent | 3262718f8fc4658a3b223823244f1f78cb0eb6c8 (diff) | |
download | openshift-e3e6c094ad492bfe834ab736ab8c92f106ec1938.tar.gz openshift-e3e6c094ad492bfe834ab736ab8c92f106ec1938.tar.bz2 openshift-e3e6c094ad492bfe834ab736ab8c92f106ec1938.tar.xz openshift-e3e6c094ad492bfe834ab736ab8c92f106ec1938.zip |
Fix backward compat for osm_default_subdomain
-rw-r--r-- | playbooks/common/openshift-master/config.yml | 5 | ||||
-rw-r--r-- | roles/openshift_master_facts/tasks/main.yml | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/playbooks/common/openshift-master/config.yml b/playbooks/common/openshift-master/config.yml index 0b0faaa22..060b5aa0d 100644 --- a/playbooks/common/openshift-master/config.yml +++ b/playbooks/common/openshift-master/config.yml @@ -35,9 +35,9 @@ - set_fact: openshift_master_debug_level: "{{ t_oo_option_master_debug_level }}" when: openshift_master_debug_level is not defined and t_oo_option_master_debug_level != "" - + - set_fact: - openshift_master_default_subdomain: "{{ lookup('oo_option', 'openshift_master_default_subdomain') | default(None) }}" + openshift_master_default_subdomain: "{{ lookup('oo_option', 'openshift_master_default_subdomain') | default(None, true) }}" when: openshift_master_default_subdomain is not defined - set_fact: openshift_hosted_metrics_deploy: "{{ lookup('oo_option', 'openshift_hosted_metrics_deploy') | default(false, true) }}" @@ -48,7 +48,6 @@ - set_fact: openshift_hosted_metrics_resolution: "{{ lookup('oo_option', 'openshift_hosted_metrics_resolution') | default(10) }}" when: openshift_hosted_metrics_resolution is not defined - roles: - openshift_facts post_tasks: diff --git a/roles/openshift_master_facts/tasks/main.yml b/roles/openshift_master_facts/tasks/main.yml index a020fdb41..d39c89516 100644 --- a/roles/openshift_master_facts/tasks/main.yml +++ b/roles/openshift_master_facts/tasks/main.yml @@ -46,7 +46,7 @@ oauth_grant_method: "{{ openshift_master_oauth_grant_method | default(None) }}" sdn_cluster_network_cidr: "{{ osm_cluster_network_cidr | default(None) }}" sdn_host_subnet_length: "{{ osm_host_subnet_length | default(None) }}" - default_subdomain: "{{ openshift_master_default_subdomain | default(osm_default_subdomain) | default(None) }}" + default_subdomain: "{{ openshift_master_default_subdomain | default(osm_default_subdomain | default(None), true) }}" custom_cors_origins: "{{ osm_custom_cors_origins | default(None) }}" default_node_selector: "{{ osm_default_node_selector | default(None) }}" project_request_message: "{{ osm_project_request_message | default(None) }}" |