Skip to content

Commit

Permalink
Add port to smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkrouper committed Dec 9, 2024
1 parent 6d00724 commit 10aacb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cookbooks/test/recipes/smoke.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>

0 comments on commit 10aacb8

Please sign in to comment.