From abd3a1ee852c547992755407de5845520c11473d Mon Sep 17 00:00:00 2001
From: Michael Krotscheck <krotscheck@gmail.com>
Date: Tue, 12 Aug 2014 11:46:21 -0700
Subject: [PATCH] Create storyboard configuration directory

Storyboard's configuration directory was not being created,
which causes an error on clean systems.

Change-Id: I506bebee77cbc6e60d05598cd4c13d65fb287e11
---
 modules/storyboard/manifests/application.pp | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/modules/storyboard/manifests/application.pp b/modules/storyboard/manifests/application.pp
index 1e80147067..6b211708d2 100644
--- a/modules/storyboard/manifests/application.pp
+++ b/modules/storyboard/manifests/application.pp
@@ -54,6 +54,14 @@ class storyboard::application (
     }
   }
 
+  # Create the storyboard configuration directory.
+  file { '/etc/storyboard':
+    ensure  => directory,
+    owner   => $storyboard::params::user,
+    group   => $storyboard::params::group,
+    mode    => '0700',
+  }
+
   # Configure the StoryBoard API
   file { '/etc/storyboard/storyboard.conf':
     ensure  => present,
@@ -62,7 +70,10 @@ class storyboard::application (
     mode    => '0400',
     content => template('storyboard/storyboard.conf.erb'),
     notify  => Service['httpd'],
-    require => Class['apache::params'],
+    require => [
+      Class['apache::params'],
+      File['/etc/storyboard']
+    ]
   }
 
   # Download the latest StoryBoard Source