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 47
47
mysql_config 'replication-slave-1' do
48
48
instance 'slave-1'
49
49
source 'replication-slave.erb'
50
- variables ( server_id : '2' , mysql_instance : 'slave-1' )
50
+ variables ( server_id : '2' , mysql_instance : 'slave-1' , port : '3307' )
51
51
notifies :restart , 'mysql_service[slave-1]' , :immediately
52
52
action :create
53
53
end
63
63
mysql_config 'replication-slave-2' do
64
64
instance 'slave-2'
65
65
source 'replication-slave.erb'
66
- variables ( server_id : '3' , mysql_instance : 'slave-2' )
66
+ variables ( server_id : '3' , mysql_instance : 'slave-2' , port : '3308' )
67
67
notifies :restart , 'mysql_service[slave-2]' , :immediately
68
68
action :create
69
69
end
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ log_error = /var/log/mysql-<%= @mysql_instance %>/error.log
3
3
relay-log = /var/log/mysql-<%= @mysql_instance %> /mysql-relay-bin.log
4
4
server-id = <%= @server_id %>
5
5
replicate-ignore-db = mysql
6
+ port = <%= @port || '3306' %>
You can’t perform that action at this time.
0 commit comments