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