diff --git a/manifests/application.pp b/manifests/application.pp index 5e7fd8d..01ebfcb 100644 --- a/manifests/application.pp +++ b/manifests/application.pp @@ -23,6 +23,7 @@ class storyboard::application ( # Installation parameters $install_root = '/var/lib/storyboard', $www_root = '/var/lib/storyboard/www', + $working_root = '/var/lib/storyboard/spool', $server_admin = undef, $hostname = $::fqdn, $cors_allowed_origins = undef, @@ -136,6 +137,13 @@ class storyboard::application ( group => $storyboard::params::group, } + # Create the working dir + file { $working_root: + ensure => directory, + owner => $storyboard::params::user, + group => $storyboard::params::group, + } + # Create the log dir file { '/var/log/storyboard': ensure => directory, @@ -150,6 +158,7 @@ class storyboard::application ( group => $storyboard::params::group, require => [ File[$install_root], + File[$working_root], Exec['install-storyboard'], ], notify => Service['httpd'], diff --git a/templates/storyboard.conf.erb b/templates/storyboard.conf.erb index 2a68659..de3cc02 100644 --- a/templates/storyboard.conf.erb +++ b/templates/storyboard.conf.erb @@ -53,6 +53,9 @@ access_token_ttl = <%= @access_token_ttl %> # Time in seconds before an refresh_token expires refresh_token_ttl = <%= @refresh_token_ttl %> +# The root path to storyboard's working directory +working_directory = <%= @working_root %> + [cron] # Storyboard's cron management configuration