File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 4747mysql_config 'replication-slave-1' do
4848 instance 'slave-1'
4949 source 'replication-slave.erb'
50- variables ( server_id : '2' , mysql_instance : 'slave-1' )
50+ variables ( server_id : '2' , mysql_instance : 'slave-1' , port : '3307' )
5151 notifies :restart , 'mysql_service[slave-1]' , :immediately
5252 action :create
5353end
6363mysql_config 'replication-slave-2' do
6464 instance 'slave-2'
6565 source 'replication-slave.erb'
66- variables ( server_id : '3' , mysql_instance : 'slave-2' )
66+ variables ( server_id : '3' , mysql_instance : 'slave-2' , port : '3308' )
6767 notifies :restart , 'mysql_service[slave-2]' , :immediately
6868 action :create
6969end
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ log_error = /var/log/mysql-<%= @mysql_instance %>/error.log
33relay-log = /var/log/mysql-<%= @mysql_instance %> /mysql-relay-bin.log
44server-id = <%= @server_id %>
55replicate-ignore-db = mysql
6+ port = <%= @port || '3306' %>
You can’t perform that action at this time.
0 commit comments