b7e352cc86
Due to performance problems with the current Trove backend, add a MySQL database locally on paste.openstack.org for later use. Change-Id: Idc04a95ba157e4d3722c3ea8a703e52c5793976c
43 lines
993 B
Puppet
43 lines
993 B
Puppet
# == Class: openstack_project::paste
|
|
#
|
|
class openstack_project::paste (
|
|
$db_host,
|
|
$db_password,
|
|
$mysql_root_password,
|
|
$sysadmins = []
|
|
) {
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [80],
|
|
sysadmins => $sysadmins,
|
|
}
|
|
include lodgeit
|
|
lodgeit::site { 'openstack':
|
|
db_host => $db_host,
|
|
db_password => $db_password,
|
|
port => '5000',
|
|
image => 'header-bg2.png',
|
|
require => mysql::db['openstack'],
|
|
}
|
|
|
|
class { 'mysql::server':
|
|
config_hash => {
|
|
'root_password' => $mysql_root_password,
|
|
'default_engine' => 'InnoDB',
|
|
'bind_address' => '127.0.0.1',
|
|
}
|
|
}
|
|
|
|
include mysql::server::account_security
|
|
mysql::db { 'openstack':
|
|
user => 'openstack',
|
|
password => $db_password,
|
|
host => 'localhost',
|
|
grant => ['all'],
|
|
charset => 'utf8',
|
|
require => [
|
|
Class['mysql::server'],
|
|
Class['mysql::server::account_security'],
|
|
],
|
|
}
|
|
}
|