Skip to content

Commit

Permalink
use mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
h-haaks committed Feb 12, 2024
1 parent 1b218a9 commit abd12cb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/acceptance/mysql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,27 @@
describe 'jira mysql' do
it 'installs with defaults' do
pp = <<-EOS
# On ubuntu 20.04 and 22.04 the default is to install mariadb
# As the ubuntu 20.04 runner we use in github actions allready has mysql installed
# a apparmor error is triggerd when using mariadb in this test..
# Forcing the use of mysql
if $facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '20.04') >= 0 {
$mysql_service_name = 'mysql'
$mysql_server_package = 'mysql-server'
$mysql_client_package = 'mysql-client'
} else {
$mysql_service_name = undef
$mysql_server_package = undef
$mysql_client_package = undef
}

Check failure on line 21 in spec/acceptance/mysql_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
class { 'mysql::server':
root_password => 'strongpassword',
package_name => $mysql_server_package,
service_name => $mysql_service_name,
}
class { 'mysql::client':
package_name => $mysql_client_package,
}
# Default MySQL is too old for utf8mb4 on CentOS 7, or something. Also Ubuntu 20.04
Expand Down

0 comments on commit abd12cb

Please sign in to comment.