Skip to content

Commit

Permalink
Merge pull request #4 from cbaesema/wsrep_address
Browse files Browse the repository at this point in the history
Adds ability to override wsrep_sst_receive_address
  • Loading branch information
Mark T. Voelker committed Jan 25, 2014
2 parents 562eb9c + fc628a9 commit 6d7e64e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
27 changes: 14 additions & 13 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,20 @@
# }
#
class galera::server (
$config_hash = {},
$enabled = true,
$manage_service = true,
$root_group = $mysql::root_group,
$package_ensure = $mysql::package_ensure,
$galera_package_name = 'galera',
$wsrep_package_name = 'mysql-server-wsrep',
$wsrep_bind_address = '0.0.0.0',
$cluster_name = 'wsrep',
$master_ip = false,
$wsrep_sst_username = 'wsrep_user',
$wsrep_sst_password = 'wsrep_pass',
$wsrep_sst_method = 'mysql_dump'
$config_hash = {},
$enabled = true,
$manage_service = true,
$root_group = $mysql::root_group,
$package_ensure = $mysql::package_ensure,
$galera_package_name = 'galera',
$wsrep_package_name = 'mysql-server-wsrep',
$wsrep_bind_address = '0.0.0.0',
$cluster_name = 'wsrep',
$master_ip = false,
$wsrep_sst_receive_address = false,
$wsrep_sst_username = 'wsrep_user',
$wsrep_sst_password = 'wsrep_pass',
$wsrep_sst_method = 'mysql_dump'
) inherits mysql {

$config_class = { 'mysql::config' => $config_hash }
Expand Down
4 changes: 4 additions & 0 deletions templates/wsrep.cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ wsrep_sst_method=<%= @wsrep_sst_method %>

# Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!!
# (SST method dependent. Defaults to the first IP of the first interface)
<% if @wsrep_sst_receive_address -%>
wsrep_sst_receive_address="<%= @wsrep_sst_receive_address %>"
<% else -%>
#wsrep_sst_receive_address=
<% end -%>

# SST authentication string. This will be used to send SST to joining nodes.
# Depends on SST method. For mysqldump method it is root:<root password>
Expand Down

0 comments on commit 6d7e64e

Please sign in to comment.