Merge "Added Cron and Token Cleanup to configuration."

This commit is contained in:
Jenkins 2015-01-19 21:40:21 +00:00 committed by Gerrit Code Review
commit 8a7d4342d1
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 %>