diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp index d338e73..ebe7504 100644 --- a/puppet/manifests/site.pp +++ b/puppet/manifests/site.pp @@ -26,6 +26,7 @@ $package_deps = [ package { $package_deps: } $sigi_dir = '/srv/sigi' +$sigidata_dir = '/srv/sigidata' vcsrepo { $sigi_dir: ensure => latest, @@ -38,9 +39,6 @@ vcsrepo { $sigi_dir: file { [ '/var/log/sigi', '/var/run/sigi', - "${sigi_dir}/media", - "${sigi_dir}/media/apps", - "${sigi_dir}/media/apps/metas", ]: ensure => 'directory', owner => 'sigi', @@ -48,6 +46,11 @@ file { [ require => Vcsrepo[$sigi_dir], } +file { "${sigi_dir}/media": + ensure => link, + target => "${sigidata_dir}/media", +} + # TODO A pasta "${sigi_dir}/media" deve ser compartilhada entre instancias de cluster file { '/var/log/sigi/sigi-supervisor.log':