Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add server-id in mysql::server configuration #164

Closed
wants to merge 2 commits into from

3 participants

@bourvill

Used in replication config

templates/my.cnf.erb
@@ -21,6 +21,10 @@ skip-external-locking
bind-address = <%= bind_address %>
<% end %>
+<% if server_id %>
@hunner Owner
hunner added a note

Could you please add -%> closing tags here and below to avoid extra linebreaks in the resulting config? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
templates/my.cnf.erb
@@ -21,6 +21,10 @@ skip-external-locking
bind-address = <%= bind_address %>
<% end %>
+<% if server_id %>
+server-id = <%= server_id %>
+<% end %>
@hunner Owner
hunner added a note

-%>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@apenney

Hi,

I'm going to close this in favor of #194 so that we have a single PR dealing with replication. I appreciate you taking the time to submit this and apologize for taking so long to get around to dealing with this. If you want to check out #194 and comment on anything it's missing there I'd appreciate it.

@apenney apenney closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 27, 2013
  1. Add server-id in mysql::server configuration

    Maxime authored
Commits on Apr 26, 2013
  1. Fix closing tags

    Maxime authored
This page is out of date. Refresh to see the latest.
View
4 manifests/config.pp
@@ -52,7 +52,9 @@
$default_engine = 'UNSET',
$root_group = $mysql::params::root_group,
$restart = $mysql::params::restart,
- $purge_conf_dir = false
+ $purge_conf_dir = false,
+ $server_id = $mysql::params::server_id
+
) inherits mysql::params {
File {
View
1  manifests/params.pp
@@ -17,6 +17,7 @@
$etc_root_password = false
$ssl = false
$restart = true
+ $server_id = false
case $::operatingsystem {
'Ubuntu': {
View
4 templates/my.cnf.erb
@@ -21,6 +21,10 @@ skip-external-locking
bind-address = <%= bind_address %>
<% end %>
+<% if server_id -%>
+server-id = <%= server_id %>
+<% end -%>
+
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
Something went wrong with that request. Please try again.