attempt to enable mysql for jenkins unit testing

Change-Id: I0195b09936200d7c631565d416dff57ee7e966fc
This commit is contained in:
Sean Dague 2012-05-08 14:55:05 -04:00
parent 153e536114
commit dc2188ee60

View File

@ -49,6 +49,7 @@ class jenkins_slave($ssh_key) {
"lxc",
"maven2",
"mercurial", # needed by pip bundle
"mysql-server",
"default-jdk", # jdk for building java jobs
"pandoc", #for docs, markdown->docbook, bug 924507
"parted",
@ -111,7 +112,17 @@ class jenkins_slave($ssh_key) {
ensure => 'absent',
}
file { 'jenkinslogs':
exec { "jenins-slave-mysql":
creates => "/var/lib/mysql/openstack_citest/",
command => "/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf -e \"\
CREATE USER 'openstack_citest'@'localhost' IDENTIFIED BY 'openstack_citest';\
CREATE DATABASE openstack_citest;\
GRANT ALL ON openstack_citest.* TO 'openstack_citest'@'localhost';\
FLUSH PRIVILEGES;\"",
require => Package["mysql-server"]
}
file { 'jenkinslogs':
name => '/var/log/jenkins/tmpreaper.log*',
ensure => 'absent',
}