diff --git a/test/cookbooks/test/recipes/smoke.rb b/test/cookbooks/test/recipes/smoke.rb index 254c93368..e5d04857a 100644 --- a/test/cookbooks/test/recipes/smoke.rb +++ b/test/cookbooks/test/recipes/smoke.rb @@ -47,7 +47,7 @@ mysql_config 'replication-slave-1' do instance 'slave-1' source 'replication-slave.erb' - variables(server_id: '2', mysql_instance: 'slave-1') + variables(server_id: '2', mysql_instance: 'slave-1', port: '3307') notifies :restart, 'mysql_service[slave-1]', :immediately action :create end @@ -63,7 +63,7 @@ mysql_config 'replication-slave-2' do instance 'slave-2' source 'replication-slave.erb' - variables(server_id: '3', mysql_instance: 'slave-2') + variables(server_id: '3', mysql_instance: 'slave-2', port: '3308') notifies :restart, 'mysql_service[slave-2]', :immediately action :create end diff --git a/test/cookbooks/test/templates/default/replication-slave.erb b/test/cookbooks/test/templates/default/replication-slave.erb index 2b64f1c5f..01fe0ee0e 100644 --- a/test/cookbooks/test/templates/default/replication-slave.erb +++ b/test/cookbooks/test/templates/default/replication-slave.erb @@ -3,3 +3,4 @@ log_error = /var/log/mysql-<%= @mysql_instance %>/error.log relay-log = /var/log/mysql-<%= @mysql_instance %>/mysql-relay-bin.log server-id = <%= @server_id %> replicate-ignore-db = mysql +port = <%= @port || '3306' %>