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
This commit is contained in:
Monty Taylor 2014-03-05 06:52:56 -08:00
parent fa3b8f4869
commit 992ad71bf8

View File

@ -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',