Realize SotK and Zara on the storyboard-dev server

This patch realizes SotK's and Zara's accounts on the storyboard-dev
server. It accomplishes this by adding an
openstack_project::storyboard::dev subclass as a wrapper to
differentiate development server parameters where needed.

Co-Authored By: Spencer Krum <nibz@spencerkrum.com>

Change-Id: I477763846f03d807a9627cd3afe5caee09b1100b
This commit is contained in:
Anita Kuno 2016-05-12 14:09:49 -04:00 committed by Jeremy Stanley
parent c7043d4c96
commit f2c1fab40d
2 changed files with 46 additions and 1 deletions

View File

@ -649,7 +649,7 @@ node 'storyboard.openstack.org' {
# A machine to run Storyboard devel # A machine to run Storyboard devel
# Node-OS: trusty # Node-OS: trusty
node 'storyboard-dev.openstack.org' { node 'storyboard-dev.openstack.org' {
class { 'openstack_project::storyboard': class { 'openstack_project::storyboard::dev':
project_config_repo => 'https://git.openstack.org/openstack-infra/project-config', project_config_repo => 'https://git.openstack.org/openstack-infra/project-config',
sysadmins => hiera('sysadmins', []), sysadmins => hiera('sysadmins', []),
mysql_host => hiera('storyboard_db_host', 'localhost'), mysql_host => hiera('storyboard_db_host', 'localhost'),
@ -671,6 +671,7 @@ node 'storyboard-dev.openstack.org' {
], ],
sender_email_address => 'storyboard-dev@storyboard-dev.openstack.org', sender_email_address => 'storyboard-dev@storyboard-dev.openstack.org',
} }
} }
# A machine to serve static content. # A machine to serve static content.

View File

@ -0,0 +1,44 @@
# == Class: openstack_project::storyboard::dev
#
class openstack_project::storyboard::dev(
$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',
$project_config_repo = '',
$hostname = $::fqdn,
$valid_oauth_clients = [$::fqdn],
$cors_allowed_origins = ["https://${::fqdn}"],
$sender_email_address = undef,
) {
class { 'openstack_project::storyboard':
project_config_repo => $project_config_repo,
sysadmins => $sysadmins,
mysql_host => $mysql_host,
mysql_user => $mysql_user,
mysql_password => $mysql_password,
rabbitmq_user => $rabbitmq_user,
rabbitmq_password => $rabbitmq_password,
ssl_cert_file_contents => $ssl_cert_file_contents,
ssl_key_file_contents => $ssl_key_file_contents,
ssl_chain_file_contents => $ssl_chain_file_contents,
hostname => $hostname,
valid_oauth_clients => $valid_oauth_clients,
cors_allowed_origins => $cors_allowed_origins,
sender_email_address => $sender_email_address,
}
realize (
User::Virtual::Localuser['SotK'],
User::Virtual::Localuser['Zara'],
)
}