Fixing galera cluster size = 1 restart issue.
Galera should start normaly after reboot
Change-Id: I4f1bfb0f0ba8ef4f18bc89e8cf2bc6870a2278a2
diff --git a/galera/files/my.cnf b/galera/files/my.cnf
index cb9687e..aeb0df6 100644
--- a/galera/files/my.cnf
+++ b/galera/files/my.cnf
@@ -61,7 +61,11 @@
innodb_doublewrite=0
innodb_autoinc_lock_mode=2
innodb_locks_unsafe_for_binlog=1
+{%- if service.members|length > 1 %}
wsrep_cluster_address="gcomm://{% for member in service.members %}{{ member.host}}:4567{% if not loop.last %},{% endif %}{% endfor %}/?pc.wait_prim=no"
+{%- else %}
+wsrep_cluster_address="gcomm://"
+{%- endif %}
wsrep_provider={{ service.wsrep_provider }}
wsrep_cluster_name="openstack"