Override the default_url for StoryBoard servers

In order to provide useful URLs in E-mail notifications, set the
default_url for the openstack_project::storyboard class.

Change-Id: I70cc33e73b3cff6855270d46e1dd40940221b0d1
Depends-On: https://review.openstack.org/555237
This commit is contained in:
Jeremy Stanley 2018-04-18 20:44:04 +00:00
parent 0ac0d4d3a4
commit a9b131346b
3 changed files with 6 additions and 0 deletions

View File

@ -792,6 +792,7 @@ node /^storyboard\d*\.openstack\.org$/ {
'http://logs.openstack.org',
],
sender_email_address => 'storyboard@storyboard.openstack.org',
default_url => 'https://storyboard.openstack.org',
}
}
@ -817,6 +818,7 @@ node /^storyboard-dev\d*\.openstack\.org$/ {
'http://logs.openstack.org',
],
sender_email_address => 'storyboard-dev@storyboard-dev.openstack.org',
default_url => 'https://storyboard-dev.openstack.org',
}
}

View File

@ -20,6 +20,7 @@ class openstack_project::storyboard(
$valid_oauth_clients = [$::fqdn],
$cors_allowed_origins = ["https://${::fqdn}"],
$sender_email_address = undef,
$default_url = undef,
) {
class { 'project_config':
@ -100,6 +101,7 @@ class openstack_project::storyboard(
rabbitmq_user => $rabbitmq_user,
rabbitmq_user_password => $rabbitmq_password,
sender_email_address => $sender_email_address,
default_url => $default_url,
}
class { '::storyboard::rabbit':

View File

@ -16,6 +16,7 @@ class openstack_project::storyboard::dev(
$valid_oauth_clients = [$::fqdn],
$cors_allowed_origins = ["https://${::fqdn}"],
$sender_email_address = undef,
$default_url = undef,
) {
class { 'openstack_project::storyboard':
@ -35,6 +36,7 @@ class openstack_project::storyboard::dev(
valid_oauth_clients => $valid_oauth_clients,
cors_allowed_origins => $cors_allowed_origins,
sender_email_address => $sender_email_address,
default_url => $default_url,
}
realize (