From f4eeba56fe587585f9a8d01db9f48c347c9eb32d Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 13 Jan 2015 13:55:28 -0200 Subject: [PATCH] Change puppet configuration of media directory to link --- puppet/manifests/site.pp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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':