-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildout.cfg
85 lines (73 loc) · 2.68 KB
/
buildout.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
[buildout]
parts =
twisted
dispatcher
dispatcher-supervisor
update-script
unzip = true
versions = versions
# Using our server instead of Pypi for indexing when Pypi goes wrong
# index = http://ooici.net/releases
# When set to false, buildout and its recipe versions must be
# explicitly pinned down and defined.
allow-picked-versions = true
# Useful line to print out the buildout versions you are using
extensions = buildout-versions
# Tells buildout where to download packages in addition to Pypi.
find-links =
http://ooici.net/releases
[versions]
setuptools=0.6c11
ioncore=1.0.7
[twisted]
recipe = zc.recipe.egg:scripts
scripts =
twistd
entry-points =
twistd=twisted.scripts.twistd:run
eggs =
ioncore
[dispatcher]
recipe = zc.recipe.egg:scripts
scripts =
dispatcher
entry-points =
dispatcher=twisted.scripts.twistd:run
eggs =
ioncore
initialization =
sys.argv[1:1] = (
'${dispatcher-config:twistd-params} ${dispatcher-config:twistd-logpid} cc -n -h ${dispatcher-config:host} -a sysname=${dispatcher-config:sysname} --broker_username=${dispatcher-config:username} --broker_password=${dispatcher-config:password} ${dispatcher-config:dispatcher-app}'
).split()
[dispatcher-supervisor]
recipe = collective.recipe.supervisor
port = 9001
user = ooici
password = sekrit
programs =
10 dispatcher (autorestart=true) ${buildout:bin-directory}/dispatcher ${buildout:directory} true
# default dispatcher configuration: passed in via initialization to the file generated in bin/dispatcher.
# you may override these on the buildout command line like so:
#
# ./bin/buildout dispatcher-config:host=rabbitmq.oceanobservatories.org dispatcher-config:sysname=production1
#
[dispatcher-config]
host=localhost
sysname=eoitest
twistd-params=-n
twistd-logpid=--pidfile twistd-dispatcher.pid --logfile twistd-dispatcher.log
dispatcher-app=res/apps/dispatcher.app
username=guest
password=guest
# This is an optional part to install. To enable it, add it to the parts on the command line:
#
# ./bin/buildout <your overrides> buildout:parts+=dispatcher-supervisor-cron
#
[dispatcher-supervisor-cron]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/dispatcher-supervisord
[update-script]
recipe = buildout_script
template = update.sh.in
buildoutparams = dispatcher-config:host=${dispatcher-config:host} dispatcher-config:sysname=${dispatcher-config:sysname} dispatcher-config:twistd-params=${dispatcher-config:twistd-params} dispatcher-config:dispatcher-app=${dispatcher-config:dispatcher-app} dispatcher-config:username=${dispatcher-config:username} dispatcher-config:password=${dispatcher-config:password} buildout:parts="${buildout:parts}"