Added Cron and Token Cleanup to configuration.

This patch adds the new oauth config section from
https://review.openstack.org/144355, as well as the cron enabling
flag from https://review.openstack.org/129609/. Both are defaulted
to false in storyboard, so until this patch lands the features
will not be enabled.

Change-Id: Iedd1d8fb9b734c4356a922b6781395249ae14ed4
This commit is contained in:
Michael Krotscheck 2014-12-29 12:08:06 -08:00
parent c82c659feb
commit aca28c6fa2
2 changed files with 26 additions and 7 deletions

View File

@ -32,6 +32,8 @@ class storyboard::application (
$access_token_ttl = 3600,
$refresh_token_ttl = 604800,
$openid_url,
$enable_token_cleanup = 'True',
$mysql_host = 'localhost',
$mysql_port = 3306,
$mysql_database = 'storyboard',
@ -43,7 +45,10 @@ class storyboard::application (
$rabbitmq_vhost = '/',
$rabbitmq_user = 'storyboard',
$rabbitmq_user_password,
$enable_notifications = 'True'
$enable_notifications = 'True',
$enable_cron = 'True',
) {
# Variables

View File

@ -33,6 +33,17 @@ lock_path = $state_path/lock
# Port the bind the API server to
# bind_port = 8080
# List paging configuration options.
# page_size_maximum = 500
# page_size_default = 20
# Enable notifications. This feature drives deferred processing, reporting,
# and subscriptions.
enable_notifications = <%= @enable_notifications %>
[oauth]
# StoryBoard's oauth configuration.
# OpenId Authentication endpoint
openid_url = <%= @openid_url %>
@ -42,13 +53,11 @@ access_token_ttl = <%= @access_token_ttl %>
# Time in seconds before an refresh_token expires
refresh_token_ttl = <%= @refresh_token_ttl %>
# List paging configuration options.
# page_size_maximum = 500
# page_size_default = 20
[cron]
# Storyboard's cron management configuration
# Enable notifications. This feature drives deferred processing, reporting,
# and subscriptions.
enable_notifications = <%= @enable_notifications %>
# Enable or disable cron (Default disabled)
enable = <%= @enable_cron %>
<% if scope.lookupvar("storyboard::application::cors_allowed_origins_string") != :undef %>
[cors]
@ -121,3 +130,8 @@ rabbit_port = <%= @rabbitmq_port %>
# The virtual host within which our queues and exchanges live.
rabbit_virtual_host = <%= @rabbitmq_vhost %>
[plugin_token_cleaner]
# Enable/Disable the token cleaning cron plugin. This requires cron
# management to be enabled.
enable = <%= @enable_token_cleanup %>