Browse Source

Change puppet configuration of media directory to link

producao
Marcio Mazza 10 years ago
parent
commit
f4eeba56fe
  1. 9
      puppet/manifests/site.pp

9
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':

Loading…
Cancel
Save