diff --git a/manifests/application.pp b/manifests/application.pp index 90ac905..5e7fd8d 100644 --- a/manifests/application.pp +++ b/manifests/application.pp @@ -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 diff --git a/templates/storyboard.conf.erb b/templates/storyboard.conf.erb index 7797404..2a68659 100644 --- a/templates/storyboard.conf.erb +++ b/templates/storyboard.conf.erb @@ -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 %>