mirror of https://github.com/interlegis/sigi.git
Marcio Mazza
10 years ago
3 changed files with 51 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||
#!/bin/bash |
|||
|
|||
puppet module list | grep puppetlabs-vcsrepo || puppet module install puppetlabs/vcsrepo |
@ -1,5 +1,51 @@ |
|||
group { 'sigi': |
|||
ensure => 'present', |
|||
} |
|||
|
|||
user { 'sigi': |
|||
ensure => 'present', |
|||
system => 'true', |
|||
gid => 'sigi', |
|||
require => Group['sigi'] |
|||
} |
|||
|
|||
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/apps", |
|||
"${sigi_dir}/media/apps/metas", |
|||
]: |
|||
ensure => 'directory', |
|||
owner => 'sigi', |
|||
group => 'sigi', |
|||
} |
|||
|
|||
file { '/var/log/sigi/sigi-supervisor.log': |
|||
ensure => file, |
|||
} |
|||
|
|||
vcsrepo { $sigi_dir: |
|||
ensure => latest, |
|||
provider => git, |
|||
source => 'https://github.com/interlegis/sigi.git', |
|||
revision => 'producao', |
|||
require => Package['git'], |
|||
} |
|||
|
|||
########################################################################### |
|||
# NGINX |
|||
|
|||
class { 'nginx': } |
|||
|
|||
nginx::resource::vhost { 'localhost': |
|||
www_root => '/vagrant/www_temp', |
|||
} |
|||
|
|||
|
Loading…
Reference in new issue