summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-03-09 10:03:57 -0400
committerJason DeTiberus <jdetiber@redhat.com>2015-03-09 10:55:52 -0400
commitb32741c6480567f9118cbc14fe5a533b5f140e91 (patch)
tree3c57319acc1a9359d7cab2a40f930c6787ff24bc /roles/openshift_master
parentf8df2a785f791151e11f8274711c5d4405e550eb (diff)
downloadopenshift-b32741c6480567f9118cbc14fe5a533b5f140e91.tar.gz
openshift-b32741c6480567f9118cbc14fe5a533b5f140e91.tar.bz2
openshift-b32741c6480567f9118cbc14fe5a533b5f140e91.tar.xz
openshift-b32741c6480567f9118cbc14fe5a533b5f140e91.zip
Conditionally set --nodes on master
- only add --nodes option to /etc/sysconfig/openshift-master when openshift_node_ips is not an empty list.
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/tasks/main.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index a96184d70..15ba1e7e9 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -6,8 +6,9 @@
lineinfile:
dest: /etc/sysconfig/openshift-master
regexp: '^OPTIONS='
- line: "OPTIONS=\"--public-master={{ openshift_hostname }} --nodes={{ openshift_node_ips
- | join(',') }} --loglevel={{ openshift_master_debug_level }}\""
+ line: "OPTIONS=\"--public-master={{ openshift_hostname }} {% if
+ openshift_node_ips %} --nodes={{ openshift_node_ips
+ | join(',') }} {% endif %} --loglevel={{ openshift_master_debug_level }}\""
notify:
- restart openshift-master