Browse Source

Puppet: python requirements separado para forçar update

producao
Marcio Mazza 10 years ago
parent
commit
4e68f3ebe2
  1. 24
      puppet/manifests/site.pp
  2. 6
      requirements/producao.txt

24
puppet/manifests/site.pp

@ -9,7 +9,8 @@ user { 'sigi':
require => Group['sigi'] require => Group['sigi']
} }
package { [ 'git', 'tree', 'python-psycopg2', 'supervisor', 'memcached', ]: } package { [ 'git', 'python-psycopg2', 'supervisor', 'memcached',
]: }
$sigi_dir = '/srv/sigi' $sigi_dir = '/srv/sigi'
@ -63,10 +64,23 @@ file { ['/srv/.virtualenvs',]:
} }
python::virtualenv { $sigi_venv_dir : python::virtualenv { $sigi_venv_dir :
requirements => "${sigi_dir}/requirements/producao.txt", require => File['/srv/.virtualenvs'],
require => [ File['/srv/.virtualenvs'], }
Vcsrepo[$sigi_dir],
Package[$python_ldap_deps] ] python::requirements { "${sigi_dir}/requirements/producao.txt":
virtualenv => $sigi_venv_dir,
forceupdate => true,
require => [
Python::Virtualenv[$sigi_venv_dir],
Vcsrepo[$sigi_dir],
Package[$python_ldap_deps] ]
}
###########################################################################
# GERALDO (reporting)
file { "${sigi_venv_dir}/lib/python2.7/site-packages/reporting":
ensure => link,
target => "${sigi_venv_dir}/src/geraldo/reporting",
} }
########################################################################### ###########################################################################

6
requirements/producao.txt

@ -3,16 +3,18 @@ Pillow==2.5.3
django-auth-ldap==1.2.1 django-auth-ldap==1.2.1
django-autoslug==1.7.2 django-autoslug==1.7.2
django-extensions==1.3.11 django-extensions==1.3.11
git+git://github.com/jacobian/django-googlecharts.git@c542996cf9a7a097b447e1ce5a1a6b66bdad254f#egg=django_googlecharts-master git+git://github.com/jacobian/django-googlecharts.git@c542996cf9a7a097b447e1ce5a1a6b66bdad254f#egg=django_googlecharts
django-localflavor==1.0 django-localflavor==1.0
django-treemenus==0.9.1 django-treemenus==0.9.1
eav-django==1.4.6 eav-django==1.4.6
git+git://github.com/marinho/geraldo.git@868ebdce67176d9b6205cddc92476f642c783fff#egg=Geraldo
html5lib==0.999 html5lib==0.999
pisa==3.0.33 pisa==3.0.33
reportlab==2.7 reportlab==2.7
six==1.7.3 six==1.7.3
# eh importante usar -e pois precisamos do modulo reporting do fonte que nao eh instalado
-e git://github.com/marinho/geraldo.git@868ebdce67176d9b6205cddc92476f642c783fff#egg=geraldo
# Dependencias de producao # Dependencias de producao
gunicorn==18.0 gunicorn==18.0
python-memcached==1.53 python-memcached==1.53

Loading…
Cancel
Save