From 992ad71bf8cfc31a7a3af6dad504ab72e70e059b Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 5 Mar 2014 06:52:56 -0800 Subject: [PATCH] Load storyboard projects from projects.yaml Openstack manages it's projects in projects.yaml file. As we want all of the projects to have a corresponding entry in storyboard, run the storyboard projects.yaml loader if projects.yaml changes. Change-Id: I86367b9980b100bf45f2dd881ca626a16f31cca1 --- modules/storyboard/manifests/init.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/storyboard/manifests/init.pp b/modules/storyboard/manifests/init.pp index d697047eb7..97f71f0b6d 100644 --- a/modules/storyboard/manifests/init.pp +++ b/modules/storyboard/manifests/init.pp @@ -110,6 +110,17 @@ class storyboard ( ], } + exec { 'load-projects-yaml': + command => 'storyboard-db-manage --config-file /etc/storyboard/storyboard.conf load_projects /etc/storyboard/projects.yaml', + path => '/usr/local/bin:/usr/bin:/bin/', + refreshonly => true, + subscribe => File['/etc/storyboard/projects.yaml'], + require => [ + File['/etc/storyboard/projects.yaml'], + Exec['migrate-storyboard-db'], + ], + } + file { '/var/log/storyboard': ensure => directory, owner => 'storyboard',