summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-07-20 11:01:37 -0400
committerJason DeTiberus <jdetiber@redhat.com>2015-07-20 11:01:37 -0400
commite60a11b97c83c29b8333d70cf4dcc86518cd150b (patch)
tree35fcd1039c6a77168be2c531c2e81bec427b2a42 /roles
parent638eeaff58fd871d145ca2037f5493dfbbd38ce0 (diff)
downloadopenshift-e60a11b97c83c29b8333d70cf4dcc86518cd150b.tar.gz
openshift-e60a11b97c83c29b8333d70cf4dcc86518cd150b.tar.bz2
openshift-e60a11b97c83c29b8333d70cf4dcc86518cd150b.tar.xz
openshift-e60a11b97c83c29b8333d70cf4dcc86518cd150b.zip
properly test openshift_master_ha var
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_master/handlers/main.yml2
-rw-r--r--roles/openshift_master/tasks/main.yml8
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/openshift_master/handlers/main.yml b/roles/openshift_master/handlers/main.yml
index d57f9a4ea..f1e7e1ab3 100644
--- a/roles/openshift_master/handlers/main.yml
+++ b/roles/openshift_master/handlers/main.yml
@@ -1,4 +1,4 @@
---
- name: restart openshift-master
service: name=openshift-master state=restarted
- when: not openshift_master_ha
+ when: not openshift_master_ha | bool
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index bb1689e5f..057daabf9 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -10,7 +10,7 @@
- fail:
msg: "openshift_master_cluster_password must be set for multi-master installations"
- when: openshift_master_ha and not openshift.master.cluster_defer_ha | bool and openshift_master_cluster_password is not defined
+ when: openshift_master_ha | bool and not openshift.master.cluster_defer_ha | bool and openshift_master_cluster_password is not defined
- name: Install OpenShift Master package
yum: pkg=openshift-master state=present
@@ -121,7 +121,7 @@
- name: Start and enable openshift-master
service: name=openshift-master enabled=yes state=started
- when: not openshift_master_ha
+ when: not openshift_master_ha | bool
register: start_result
- name: pause to prevent service restart from interfering with bootstrapping
@@ -130,12 +130,12 @@
- name: Install cluster packages
yum: pkg=pcs state=present
- when: openshift_master_ha and not openshift.master.cluster_defer_ha | bool
+ when: openshift_master_ha | bool and not openshift.master.cluster_defer_ha | bool
register: install_result
- name: Start and enable cluster service
service: name=pcsd enabled=yes state=started
- when: openshift_master_ha and not openshift.master.cluster_defer_ha | bool
+ when: openshift_master_ha | bool and not openshift.master.cluster_defer_ha | bool
- name: Set the cluster user password
shell: echo {{ openshift_master_cluster_password | quote }} | passwd --stdin hacluster