Merge "Change mysql package for Fedora >= 19 for bare-precise"

This commit is contained in:
Jenkins 2014-02-27 19:24:49 +00:00 committed by Gerrit Code Review
commit bf96db40f3
2 changed files with 24 additions and 5 deletions

View File

@ -69,6 +69,7 @@ class jenkins::params {
# mariadb packages. # mariadb packages.
$mysql_dev_package = 'community-mysql-devel' $mysql_dev_package = 'community-mysql-devel'
$zookeeper_package = 'zookeeper' $zookeeper_package = 'zookeeper'
$mysql_package = 'community-mysql'
$cgroups_tools_package = 'libcgroup-tools' $cgroups_tools_package = 'libcgroup-tools'
$cgconfig_require = [ $cgconfig_require = [
Package['cgroups'], Package['cgroups'],

View File

@ -96,6 +96,12 @@ class jenkins::slave(
package { $::jenkins::params::zookeeper_package: package { $::jenkins::params::zookeeper_package:
ensure => present, ensure => present,
} }
# Fedora needs community-mysql package for mysql_config
# command used in some gate-{project}-python27
# jobs in Jenkins
package { $::jenkins::params::mysql_package:
ensure => present,
}
} }
} }
'Debian': { 'Debian': {
@ -245,13 +251,25 @@ class jenkins::slave(
} }
if ($bare == false) { if ($bare == false) {
class {'mysql::server': if ($::operatingsystem == 'Fedora') and ($::operatingsystemrelease >= 19) {
config_hash => { class {'mysql::server':
'root_password' => 'insecure_slave', config_hash => {
'default_engine' => 'MyISAM', 'root_password' => 'insecure_slave',
'bind_address' => '127.0.0.1', 'default_engine' => 'MyISAM',
'bind_address' => '127.0.0.1',
},
package_name => 'community-mysql-server',
}
} else {
class {'mysql::server':
config_hash => {
'root_password' => 'insecure_slave',
'default_engine' => 'MyISAM',
'bind_address' => '127.0.0.1',
}
} }
} }
include mysql::server::account_security include mysql::server::account_security
mysql::db { 'openstack_citest': mysql::db { 'openstack_citest':