mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-10 14:51:46 +00:00
test(packages): update for ubuntu-22.04
[skip ci]
This commit is contained in:
parent
2d81240cb0
commit
6e2433e29d
1 changed files with 10 additions and 7 deletions
|
@ -1,12 +1,15 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Override by OS.
|
# Override by platform.
|
||||||
package_name = 'mariadb-server'
|
package_name =
|
||||||
if (os[:name] == 'suse') || (os[:name] == 'opensuse')
|
case system.platform[:finger]
|
||||||
package_name = 'mariadb'
|
when 'opensuse-tumbleweed', 'opensuse-15'
|
||||||
elsif os[:release].start_with?('8') && %w[debian centos].include?(os[:name])
|
'mariadb'
|
||||||
package_name = 'mysql-server'
|
when 'debian-8', 'centos-8', 'ubuntu-22.04'
|
||||||
end
|
'mysql-server'
|
||||||
|
else
|
||||||
|
'mariadb-server'
|
||||||
|
end
|
||||||
|
|
||||||
control 'mysql package' do
|
control 'mysql package' do
|
||||||
title 'should be installed'
|
title 'should be installed'
|
||||||
|
|
Loading…
Add table
Reference in a new issue