forked from kybi/buildout-odoo-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.cfg
136 lines (119 loc) · 4.96 KB
/
base.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}
[scripts]
recipe = zc.recipe.egg:scripts
eggs = ${buildout:eggs}
dependent-scripts = true
[postgres]
recipe = hexagonit.recipe.cmmi
url = http://ftp.postgresql.org/pub/source/v${settings:postgres_version}/postgresql-${settings:postgres_version}.tar.bz2
keep-compile-dir = true
configure-options = --with-pgport=${openerp:options.db_port}
[postgres-conf]
recipe = collective.recipe.template
input = ${buildout:templates-directory}/postgresql.conf.in
output = ${buildout:config-directory}/postgresql.conf
[pg-hba-conf]
recipe = collective.recipe.template
input = ${buildout:templates-directory}/pg_hba.conf.in
output = ${buildout:config-directory}/pg_hba.conf
[pg-ident-conf]
recipe = collective.recipe.template
input = ${buildout:templates-directory}/pg_ident.conf.in
output = ${buildout:config-directory}/pg_ident.conf
[psycopg2]
recipe = zc.recipe.egg:custom
egg = psycopg2
include-dirs = ${postgres:location}/include
library-dirs = ${postgres:location}/lib
rpath = ${postgres:location}/lib
[initdb]
recipe = iw.recipe.cmd
on_install = true
on_update = true
cmds =
test -e ${buildout:directory}/data ||
${postgres:location}/bin/initdb ${buildout:directory}/data
test -e ${buildout:bin-directory}/psql ||
ln -s ${postgres:location}/bin/psql ${buildout:bin-directory}
echo ""
echo "To start PosrgreSQL and Supervisord run:"
echo "$ supervisord"
echo ""
echo "To create the database run:"
echo "$ psql -d postgres -c 'CREATE DATABASE ${openerp:options.db_name}'"
echo ""
echo "To shutdown Supervisord with all deamons:"
echo "$ supervisorctl shutdown run:"
echo ""
echo "To Restart Postgres run:"
echo "$ supervisorctl restart postgres"
echo ""
echo "To start OpenERP run:"
echo "$ start_openerp"
echo ""
${postgres:location}/bin/psql -d postgres -c 'CREATE DATABASE ${openerp:options.db_name}'
test -e ${buildout:directory}/dump.sql || ${postgres:location}/bin/psql -d ${openerp:options.db_name} < ${buildout:directory}/dump.sql
${buildout:bin-directory}/upgrade_openerp
[supervisor-cron]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/supervisord -c ${buildout:config-directory}/parts/supervisord/supervisord.conf
[openerp]
recipe = anybox.recipe.openerp[bzr]:server
version = ${settings:openerp_version}
addons = bzr lp:openobject-jasper-reports/7.0 jasper last:1
bzr lp:sepa-tools sepa-tools last:1
bzr lp:openerp-spain openerp-spain last:1
bzr lp:project-service project-service last:1
bzr lp:project-reporting project-reporting last:1
bzr lp:account-payment/7.0 account-payment last:1
bzr lp:stock-logistic-barcode stock-logistic-barcode last:1
bzr lp:stock-logistic-warehouse stock-logistic-warehouse last:1
bzr lp:stock-logistic-flows stock-logistic-flows last:1
bzr lp:stock-logistic-tracking stock-logistic-tracking last:1
bzr lp:openeam/7.0 mantenimiento last:1
bzr lp:openerp-product-attributes product-attributes last:1
bzr lp:openerp-mgmtsystem mgmtsystem last:1
bzr lp:knowledge-addons/7.0 knowledge last:1
bzr lp:addons-vauxoo/7.0 vauxoo last:1
bzr lp:openerp-rma rma last:1
bzr lp:openerp-product-variant product-variant last:1
bzr lp:ocb-addons ocb-addons last:1
bzr lp:ocb-web ocb-web last:1 subdir=addons
bzr lp:openerpsl/7.0 mentis last:1
bzr lp:sale-wkfl sale-wkfl last:1
bzr lp:carriers-deliveries carriers-deliveries last:1
bzr lp:purchase-wkfl purchase-wkfl last:1
bzr lp:partner-contact-management partner-contact-management last:1
bzr lp:account-financial-tools account-financial-tools last:1
bzr lp:~noviat/openobject-addons/extra-7.0 noviat last:1
bzr lp:account-financial-report account-financial-report last:1
git https://github.com/Pexego/alimentacion-70.git alimentacion master
git https://github.com/Pexego/quality-control.git quality-control master
bzr lp:webkit-utils/7.0 webkit-utils last:1
options.db_host = ${settings:postgres_host}
options.db_name = ${settings:postgres_db_name}
options.db_user = ${settings:postgres_user}
options.db_password = ${settings:postgres_password}
options.db_maxconn = ${settings:postgres_maxconn}
options.db_port = ${settings:postgres_port}
options.xmlrpc_port = ${settings:openerp_xmlrpc_port}
options.xmlrpcs_port = ${settings:openerp_xmlrpcs_port}
openerp_scripts = update=custom_update arguments=session
[env]
recipe = gocept.recipe.env
[supervisor]
recipe = collective.recipe.supervisor
port = ${settings:supervisor_port}
serverurl = ${settings:supervisor_url}:${supervisor:port}
programs =
10 postgres ${postgres:location}/bin/postmaster [ --config-file=${buildout:config-directory}/postgresql.conf ]
10 openerp ${buildout:directory}/bin/start_openerp
[py]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = py
scripts = py