From ac275b30033dc2aa6a799609f4c1c59897655e97 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Tue, 20 Jan 2015 16:13:48 -0800 Subject: [PATCH] Added config.json to manifest This adds an empty, default config.json file to storyboard's webclient install. While functionally it impacts nothing, it will remove a multitude of 404 log errors caused by storyboard trying to load a secondary configuration. Change-Id: Ib31e4ad1c6f03b4dd43659bd8e931d965ce7686b --- manifests/application.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/application.pp b/manifests/application.pp index 01ebfcb..8af4331 100644 --- a/manifests/application.pp +++ b/manifests/application.pp @@ -205,12 +205,19 @@ class storyboard::application ( subscribe => Exec['get-webclient'], } + # Create config.json + file { '/opt/storyboard-webclient/dist/config.json': + ensure => file, + content => '{}', + require => Exec['unpack-webclient'], + } + # Copy the downloaded source into the configured www_root file { $www_root: ensure => directory, owner => $storyboard::params::user, group => $storyboard::params::group, - require => Exec['unpack-webclient'], + require => File['/opt/storyboard-webclient/dist/config.json'], source => '/opt/storyboard-webclient/dist', recurse => true, purge => true,