Browse Source

Adicionado psycopg2 as dependencias

producao
Marcio Mazza 10 years ago
parent
commit
1848e98cb9
  1. 23
      puppet/manifests/site.pp
  2. 1
      requirements/producao.txt

23
puppet/manifests/site.pp

@ -13,8 +13,17 @@ user { 'sigi':
require => Group['sigi'] require => Group['sigi']
} }
package { [ 'git', 'python-psycopg2', 'supervisor', 'memcached', $package_deps = [
]: } # gerais
'git', 'supervisor', 'memcached',
# para psycopg ('python-dev' ja eh instalado pelo modulo python)
'libpq-dev',
# para ldap
'libldap2-dev', 'libsasl2-dev', 'libssl-dev']
package { $package_deps: }
$sigi_dir = '/srv/sigi' $sigi_dir = '/srv/sigi'
@ -57,10 +66,6 @@ if !defined(Class['python']) {
} }
} }
$python_ldap_deps = ['libldap2-dev', 'libsasl2-dev', 'libssl-dev']
package { $python_ldap_deps: }
$sigi_venv_dir = '/srv/.virtualenvs/sigi' $sigi_venv_dir = '/srv/.virtualenvs/sigi'
file { ['/srv/.virtualenvs',]: file { ['/srv/.virtualenvs',]:
@ -77,7 +82,7 @@ python::requirements { "${sigi_dir}/requirements/producao.txt":
require => [ require => [
Python::Virtualenv[$sigi_venv_dir], Python::Virtualenv[$sigi_venv_dir],
Vcsrepo[$sigi_dir], Vcsrepo[$sigi_dir],
Package[$python_ldap_deps] ] Package[$package_deps] ]
} }
########################################################################### ###########################################################################
@ -95,7 +100,9 @@ exec { 'collectstatic':
cwd => $sigi_dir, cwd => $sigi_dir,
require => [ require => [
Python::Virtualenv[$sigi_venv_dir], Python::Virtualenv[$sigi_venv_dir],
Vcsrepo[$sigi_dir], ] Vcsrepo[$sigi_dir],
Python::Requirements["${sigi_dir}/requirements/producao.txt"],
]
} }
# TODO local_settings.py ... # TODO local_settings.py ...

1
requirements/producao.txt

@ -9,6 +9,7 @@ django-treemenus==0.9.1
eav-django==1.4.6 eav-django==1.4.6
html5lib==0.999 html5lib==0.999
pisa==3.0.33 pisa==3.0.33
psycopg2==2.5.4
reportlab==2.7 reportlab==2.7
six==1.7.3 six==1.7.3

Loading…
Cancel
Save