Merge pull request 'fix: failed to test previously' (#88) from neoloc/mysql_wsrep_fact_invalid_next into develop

Reviewed-on: unkinben/puppet-prod#88
This commit is contained in:
Ben Vincent 2023-12-08 20:04:38 +09:30
commit bfedbaca5f

View File

@ -1,8 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
# skip if mysql isnt installed or active # skip if mysql isnt installed or active
next unless system('which mysql > /dev/null 2>&1') if system('which mysql > /dev/null 2>&1') && system('systemctl is-active --quiet mariadb')
next unless system('systemctl is-active --quiet mariadb')
# export mysql wsrep status # export mysql wsrep status
wsrep_status = `mysql -e "SHOW STATUS LIKE 'wsrep%';"` wsrep_status = `mysql -e "SHOW STATUS LIKE 'wsrep%';"`
@ -19,3 +18,4 @@ wsrep_status.each_line do |line|
end end
end end
end end
end