|
|
@ -9,17 +9,15 @@ user { 'sigi': |
|
|
|
require => Group['sigi'] |
|
|
|
} |
|
|
|
|
|
|
|
package { [ 'git', 'tree', |
|
|
|
'python-pip', 'python-dev', 'python-psycopg2', |
|
|
|
'supervisor', 'memcached', |
|
|
|
]: } |
|
|
|
package { [ 'git', 'tree', 'python-pip', 'python-dev', 'python-psycopg2', |
|
|
|
'supervisor', 'memcached', ]: } |
|
|
|
|
|
|
|
$sigi_dir = '/srv/sigi' |
|
|
|
|
|
|
|
file { [ |
|
|
|
'/var/log/sigi', |
|
|
|
'/var/run/sigi', |
|
|
|
"${sigi_dir}/media", # Se for fazer cluster, essa pasta deve ser a mesma entre as instâncias |
|
|
|
"${sigi_dir}/media", |
|
|
|
"${sigi_dir}/media/apps", |
|
|
|
"${sigi_dir}/media/apps/metas", |
|
|
|
]: |
|
|
@ -28,6 +26,8 @@ file { [ |
|
|
|
group => 'sigi', |
|
|
|
} |
|
|
|
|
|
|
|
# TODO A pasta "${sigi_dir}/media" deve ser compartilhada entre instancias de cluster |
|
|
|
|
|
|
|
file { '/var/log/sigi/sigi-supervisor.log': |
|
|
|
ensure => file, |
|
|
|
} |
|
|
|