deployment.cfg 1.6 KB
Newer Older
1 2 3 4
# This Configuration file is used to to define a standard deployment, without 
# any create instances. This should create the basic services required for run 
# one ERP5 instance, like MySQL server, Oood and so on. For use this configuration
# it is required build a software home previously.
5
[buildout]
6
extends =
7
  ../instance-profiles/apache.cfg
8
  ../instance-profiles/memcached.cfg
9
  ../instance-profiles/mysql-database.cfg
10
  ../instance-profiles/mysql.cfg
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
11
  ../instance-profiles/sphinx.cfg
12 13 14
  ../instance-profiles/oood.cfg
  ../instance-profiles/supervisor.cfg
  ../instance-profiles/zope.cfg
15
  ../instance-profiles/kvm.cfg
16
  ../instance-profiles/testrunner.cfg
17
  ../instance-profiles/testing.cfg
18 19
  ../profiles/software-definition.cfg
  ../profiles/versions.cfg
20
  ../profiles/common.cfg
21

22
parts =
23
  software-links
24 25
  mysql-instance
  oood-instance
26
  supervisor-instance
27
  memcached-instance
28

29 30 31
python = software_definition
versions = versions

32 33
[configuration]
supervisor_programs =
34
  10 mysql (autorestart=true) ${buildout:data-bin-directory}/pidproxy [ ${configuration:mysql_pid} ${buildout:data-bin-directory}/mysqld_safe ]
35
  20 oood (autorestart=true stopsignal=TERM stopwaitsecs=30) ${buildout:data-bin-directory}/oood-runserw ${buildout:etc-directory}
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
36
  30 sphinx (autorestart=true stopsignal=TERM) ${buildout:data-bin-directory}/searchd [ --nodetach ]
37

38 39 40 41 42 43
[software-links]
recipe = plone.recipe.command
command =
  ln -sf ${software_definition:software_home}/bin/python2.4 ${buildout:bin-directory}/python2.4
update-command = ${:command}

44
[software_definition]
45
software_home = /opt/erp5/trunk
46
executable = ${:software_home}/bin/python2.4