Merge "Hostname and CORS domains are now configurable."

This commit is contained in:
Jenkins 2015-03-16 16:09:52 +00:00 committed by Gerrit Code Review
commit b3ba5531f1
2 changed files with 10 additions and 6 deletions

View File

@ -425,10 +425,15 @@ node 'storyboard.openstack.org' {
ssl_cert_file_contents => hiera('storyboard_ssl_cert_file_contents', 'XXX'),
ssl_key_file_contents => hiera('storyboard_ssl_key_file_contents', 'XXX'),
ssl_chain_file_contents => hiera('storyboard_ssl_chain_file_contents', 'XXX'),
hostname => $::fqdn,
valid_oauth_clients => [
$::fqdn,
'docs-draft.openstack.org',
],
cors_allowed_origins => [
"https://${::fqdn}",
'http://docs-draft.openstack.org',
],
}
}

View File

@ -12,7 +12,9 @@ class openstack_project::storyboard(
$ssl_chain_file_contents = undef,
$openid_url = 'https://login.launchpad.net/+openid',
$project_config_repo = '',
$valid_oauth_clients = [],
$hostname = $::fqdn,
$valid_oauth_clients = [$::fqdn],
$cors_allowed_origins = ["https://${::fqdn}"],
) {
class { 'project_config':
@ -40,11 +42,8 @@ class openstack_project::storyboard(
}
class { '::storyboard::application':
hostname => $::fqdn,
cors_allowed_origins => [
'https://storyboard.openstack.org',
'http://docs-draft.openstack.org',
],
hostname => $hostname,
cors_allowed_origins => $cors_allowed_origins,
valid_oauth_clients => $valid_oauth_clients,
cors_max_age => 3600,
openid_url => $openid_url,