Merge "Change mysql package for Fedora >= 19 for bare-precise"
This commit is contained in:
commit
bf96db40f3
@ -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'],
|
||||||
|
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user