summaryrefslogtreecommitdiffstats
path: root/roles/openshift_docker_facts
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-05-11 10:55:17 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-05-16 15:38:46 -0300
commit84fbacbb0554fcfe425dffd88c83fab96c8c9c2b (patch)
treece38c24a015e48a437262744fb9c553ed03a0b54 /roles/openshift_docker_facts
parent2356e549bae059a1d3e9336102115f13163ffd31 (diff)
downloadopenshift-84fbacbb0554fcfe425dffd88c83fab96c8c9c2b.tar.gz
openshift-84fbacbb0554fcfe425dffd88c83fab96c8c9c2b.tar.bz2
openshift-84fbacbb0554fcfe425dffd88c83fab96c8c9c2b.tar.xz
openshift-84fbacbb0554fcfe425dffd88c83fab96c8c9c2b.zip
Fixes for openshift_docker_hosted_registry_insecure var.
Fixes a failure on masters if you explicitly set openshift_docker_hosted_registry_insecure=true. This is the default but if you tried to set it an error would trigger as a relevant variable was not passed in the master playbooks. Fixes setting the variable to false being ignored. master/node playbooks were referencing the docker fact, which was not set at that point and thus we were always getting the default of true, regardless what was in your inventory. Stop passing registry insecure in via playbooks, we can access it when running openshift_facts itself. Add a new default in openshift facts.
Diffstat (limited to 'roles/openshift_docker_facts')
-rw-r--r--roles/openshift_docker_facts/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_docker_facts/tasks/main.yml b/roles/openshift_docker_facts/tasks/main.yml
index 3acd2bba8..0e51fd16f 100644
--- a/roles/openshift_docker_facts/tasks/main.yml
+++ b/roles/openshift_docker_facts/tasks/main.yml
@@ -35,7 +35,7 @@
docker_options: >
--insecure-registry={{ openshift.docker.hosted_registry_network }}
{{ openshift.docker.options | default ('') }}
- when: openshift.docker.hosted_registry_insecure | default(False) | bool
+ when: openshift.docker.hosted_registry_insecure | default(False) | bool and openshift.docker.hosted_registry_network is defined
- set_fact:
docker_options: "{{ openshift.docker.options | default(omit) }}"