system-config/modules/openstack_project/manifests/paste.pp
Spencer Krum 118b2762de Move openstack_project::server to node def
Partial implementation of:
http://specs.openstack.org/openstack-infra/infra-specs/specs/server_base_template_refactor.html

This pulls the openstack_project::server class out of the paste class
meaning only parameters actually needed by the paste class are passed
in to the paste class.

Change-Id: Iba93853c12f84271d4991679dfe80c2ca9e07d8f
Story: 2000172
2015-03-09 17:50:01 -07:00

37 lines
839 B
Puppet

# == Class: openstack_project::paste
#
class openstack_project::paste (
$db_password,
$mysql_root_password,
) {
include lodgeit
lodgeit::site { 'openstack':
db_host => 'localhost',
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'],
],
}
}