
Due to bug: https://storyboard.openstack.org/#!/story/202 Change-Id: I6d7c3d7e7578ba10fad6770c8999762db5903d98 Depends-On: I04d20b491cfa0c897160d9fc78c37a164cd09122
58 lines
1.8 KiB
Puppet
58 lines
1.8 KiB
Puppet
# == Class: openstack_project::storyboard
|
|
#
|
|
class openstack_project::storyboard(
|
|
$mysql_host = '',
|
|
$mysql_password = '',
|
|
$mysql_user = '',
|
|
$rabbitmq_user = 'storyboard',
|
|
$rabbitmq_password,
|
|
$sysadmins = [],
|
|
$ssl_cert_file_contents = undef,
|
|
$ssl_key_file_contents = undef,
|
|
$ssl_chain_file_contents = undef,
|
|
$openid_url = 'https://login.launchpad.net/+openid'
|
|
) {
|
|
class { 'openstack_project::server':
|
|
sysadmins => $sysadmins,
|
|
iptables_public_tcp_ports => [80, 443],
|
|
}
|
|
|
|
class { '::storyboard::cert':
|
|
ssl_cert_content => $ssl_cert_file_contents,
|
|
ssl_cert => '/etc/ssl/certs/storyboard.openstack.org.pem',
|
|
ssl_key_content => $ssl_key_file_contents,
|
|
ssl_key => '/etc/ssl/private/storyboard.openstack.org.key',
|
|
ssl_ca_content => $ssl_chain_file_contents
|
|
}
|
|
|
|
class { '::storyboard::application':
|
|
hostname => $::fqdn,
|
|
openid_url => $openid_url,
|
|
mysql_host => $mysql_host,
|
|
mysql_database => 'storyboard',
|
|
mysql_user => $mysql_user,
|
|
mysql_user_password => $mysql_password,
|
|
rabbitmq_host => 'localhost',
|
|
rabbitmq_port => 5672,
|
|
rabbitmq_vhost => '/',
|
|
rabbitmq_user => $rabbitmq_user,
|
|
rabbitmq_user_password => $rabbitmq_password,
|
|
enable_notifications => 'False'
|
|
}
|
|
|
|
class { '::storyboard::rabbit':
|
|
rabbitmq_user => $rabbitmq_user,
|
|
rabbitmq_user_password => $rabbitmq_password
|
|
}
|
|
|
|
# Load the projects into the database.
|
|
class { '::storyboard::load_projects':
|
|
source => 'puppet:///modules/openstack_project/review.projects.yaml',
|
|
}
|
|
|
|
# Load the superusers into the database
|
|
class { '::storyboard::load_superusers':
|
|
source => 'puppet:///modules/openstack_project/storyboard/superusers.yaml',
|
|
}
|
|
}
|