|
@ -26,6 +26,7 @@ $package_deps = [ |
|
|
package { $package_deps: } |
|
|
package { $package_deps: } |
|
|
|
|
|
|
|
|
$sigi_dir = '/srv/sigi' |
|
|
$sigi_dir = '/srv/sigi' |
|
|
|
|
|
$sigidata_dir = '/srv/sigidata' |
|
|
|
|
|
|
|
|
vcsrepo { $sigi_dir: |
|
|
vcsrepo { $sigi_dir: |
|
|
ensure => latest, |
|
|
ensure => latest, |
|
@ -38,9 +39,6 @@ vcsrepo { $sigi_dir: |
|
|
file { [ |
|
|
file { [ |
|
|
'/var/log/sigi', |
|
|
'/var/log/sigi', |
|
|
'/var/run/sigi', |
|
|
'/var/run/sigi', |
|
|
"${sigi_dir}/media", |
|
|
|
|
|
"${sigi_dir}/media/apps", |
|
|
|
|
|
"${sigi_dir}/media/apps/metas", |
|
|
|
|
|
]: |
|
|
]: |
|
|
ensure => 'directory', |
|
|
ensure => 'directory', |
|
|
owner => 'sigi', |
|
|
owner => 'sigi', |
|
@ -48,6 +46,11 @@ file { [ |
|
|
require => Vcsrepo[$sigi_dir], |
|
|
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 |
|
|
# TODO A pasta "${sigi_dir}/media" deve ser compartilhada entre instancias de cluster |
|
|
|
|
|
|
|
|
file { '/var/log/sigi/sigi-supervisor.log': |
|
|
file { '/var/log/sigi/sigi-supervisor.log': |
|
|