From 7fe4951d7d6d9a9ecd415f9de9fe1a12fb782ce9 Mon Sep 17 00:00:00 2001 From: Marton Kiss Date: Tue, 20 Jan 2015 16:46:50 +0100 Subject: [PATCH] Add missing working directory to filesystem and storyboard config Solves the directory creation issue mentioned in that patch: https://review.openstack.org/#/c/148592/ Change-Id: I9bef14d695c9bb1bb29790132566d4ed04bec544 --- manifests/application.pp | 9 +++++++++ templates/storyboard.conf.erb | 3 +++ 2 files changed, 12 insertions(+) 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