fixes
diff --git a/metadata/galera/service/master/cluster.yml b/metadata/galera/service/master/cluster.yml
deleted file mode 100644
index 69fe5d1..0000000
--- a/metadata/galera/service/master/cluster.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-applications:
-- galera
-parameters:
- _param:
- galera_server_cluster_name: galeracluster
- galera_server_bind_address: 0.0.0.0
- galera_server_bind_port: 0.0.0.0
- galera_server_admin_user: root
- galera_server_admin_password: root
- galera:
- master:
- enabled: true
- name: ${_param:galera_server_cluster_name}
- bind:
- address: ${_param:galera_server_bind_address}
- port: ${_param:galera_server_bind_port}
- admin:
- user: ${_param:galera_server_admin_user}
- password: ${_param:galera_server_admin_password}
diff --git a/metadata/galera/service/slave/cluster.yml b/metadata/galera/service/slave/cluster.yml
deleted file mode 100644
index 6289325..0000000
--- a/metadata/galera/service/slave/cluster.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-applications:
-- galera
-parameters:
- _param:
- galera_server_cluster_name: galeracluster
- galera_server_bind_address: 0.0.0.0
- galera_server_bind_port: 0.0.0.0
- galera_server_admin_user: root
- galera_server_admin_password: root
- galera:
- slave:
- enabled: true
- name: ${_param:galera_server_cluster_name}
- bind:
- address: ${_param:galera_server_bind_address}
- port: ${_param:galera_server_bind_port}
- admin:
- user: ${_param:galera_server_admin_user}
- password: ${_param:galera_server_admin_password}
diff --git a/metadata/service/galera/master/cluster.yml b/metadata/service/galera/master/cluster.yml
new file mode 100644
index 0000000..e1022bc
--- /dev/null
+++ b/metadata/service/galera/master/cluster.yml
@@ -0,0 +1,25 @@
+applications:
+- galera
+parameters:
+ _param:
+ galera_server_cluster_name: galeracluster
+ galera_server_bind_address: ${_param:cluster_local_address}
+ galera_server_bind_port: 3306
+ galera_server_admin_user: root
+ galera:
+ master:
+ enabled: true
+ name: ${_param:galera_server_cluster_name}
+ bind:
+ address: ${_param:galera_server_bind_address}
+ port: ${_param:galera_server_bind_port}
+ admin:
+ user: ${_param:galera_server_admin_user}
+ password: ${_param:galera_server_admin_password}
+ members:
+ - host: ${_param:cluster_node01_address}
+ port: 4567
+ - host: ${_param:cluster_node02_address}
+ port: 4567
+ - host: ${_param:cluster_node03_address}
+ port: 4567
diff --git a/metadata/service/galera/slave/cluster.yml b/metadata/service/galera/slave/cluster.yml
new file mode 100644
index 0000000..8a85ecb
--- /dev/null
+++ b/metadata/service/galera/slave/cluster.yml
@@ -0,0 +1,25 @@
+applications:
+- galera
+parameters:
+ _param:
+ galera_server_cluster_name: galeracluster
+ galera_server_bind_address: ${_param:cluster_local_address}
+ galera_server_bind_port: 3306
+ galera_server_admin_user: root
+ galera:
+ slave:
+ enabled: true
+ name: ${_param:galera_server_cluster_name}
+ bind:
+ address: ${_param:galera_server_bind_address}
+ port: ${_param:galera_server_bind_port}
+ admin:
+ user: ${_param:galera_server_admin_user}
+ password: ${_param:galera_server_admin_password}
+ members:
+ - host: ${_param:cluster_node01_address}
+ port: 4567
+ - host: ${_param:cluster_node02_address}
+ port: 4567
+ - host: ${_param:cluster_node03_address}
+ port: 4567