Merge "Change mysqlchk xinetd script port"

This commit is contained in:
Jenkins 2015-02-06 10:35:00 +00:00 committed by Gerrit Code Review
commit 37ea263506
3 changed files with 7 additions and 7 deletions

View File

@ -443,7 +443,7 @@ class cloud::database::sql::mysql (
changes => [
'ins service-name after service-name[last()]',
'set service-name[last()] "mysqlchk"',
'set service-name[. = "mysqlchk"]/port 9200',
'set service-name[. = "mysqlchk"]/port 8200',
'set service-name[. = "mysqlchk"]/protocol tcp',
],
onlyif => 'match service-name[. = "mysqlchk"] size == 0',
@ -491,7 +491,7 @@ class cloud::database::sql::mysql (
extras => $firewall_settings,
}
cloud::firewall::rule{ '100 allow mysqlchk access':
port => '9200',
port => '8200',
extras => $firewall_settings,
}
cloud::firewall::rule{ '100 allow mysql rsync access':
@ -506,7 +506,7 @@ class cloud::database::sql::mysql (
ipaddresses => $api_eth,
ports => '3306',
options =>
inline_template('check inter 2000 rise 2 fall 5 port 9200 <% if @hostname != @galera_master_name -%>backup<% end %>')
inline_template('check inter 2000 rise 2 fall 5 port 8200 <% if @hostname != @galera_master_name -%>backup<% end %>')
}
@@haproxy::balancermember{"${::fqdn}-readonly":
@ -515,6 +515,6 @@ class cloud::database::sql::mysql (
ipaddresses => $api_eth,
ports => '3306',
options =>
inline_template('check inter 2000 rise 2 fall 5 port 9200 <% if @hostname == @galera_master_name -%>backup<% end %>')
inline_template('check inter 2000 rise 2 fall 5 port 8200 <% if @hostname == @galera_master_name -%>backup<% end %>')
}
}

View File

@ -211,7 +211,7 @@ describe 'cloud::database::sql::mysql' do
:action => 'accept',
)
is_expected.to contain_firewall('100 allow mysqlchk access').with(
:port => '9200',
:port => '8200',
:proto => 'tcp',
:action => 'accept',
)
@ -238,7 +238,7 @@ describe 'cloud::database::sql::mysql' do
:limit => '50/sec',
)
is_expected.to contain_firewall('100 allow mysqlchk access').with(
:port => '9200',
:port => '8200',
:proto => 'tcp',
:action => 'accept',
:limit => '50/sec',

View File

@ -9,7 +9,7 @@ service mysqlchk
disable = no
flags = REUSE
socket_type = stream
port = 9200
port = 8200
wait = no
user = nobody
server = /usr/bin/clustercheck