-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildout.cfg
87 lines (75 loc) · 2.34 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
85
86
87
[buildout]
parts =
twisted
provide-script
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
[provider]
recipe = zc.recipe.egg:scripts
scripts =
provider
entry-points =
provider=twisted.scripts.twistd:run
eggs =
ioncore
initialization =
sys.argv[1:1] = (
'${provider-config:twistd-params} ${provider-config:twistd-logpid} cc -n -h ${provider-config:host} -a sysname=${provider-config:sysname} ${provider-config:provider-app}'
).split()
[provider-supervisor]
recipe = collective.recipe.supervisor
port = 9001
user = ooici
password = sekrit
programs =
10 provider (autorestart=true) ${buildout:bin-directory}/provider ${buildout:directory} true
# default provider configuration: passed in via initialization to the file generated in bin/provider.
# you may override these on the buildout command line like so:
#
# ./bin/buildout provider-config:host=rabbitmq.oceanobservatories.org provider-config:sysname=production1
#
[provider-config]
host=localhost
sysname=eoitest
twistd-params=-n
twistd-logpid=--pidfile twistd-provider.pid --logfile twistd-provider.log
provider-app=res/apps/eoiagents.app
# 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+=provider-supervisor-cron
#
[provider-supervisor-cron]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/provider-supervisord
[update-script]
recipe = buildout_script
template = update.sh.in
buildoutparams = provider-config:host=${provider-config:host} provider-config:sysname=${provider-config:sysname}
[provide-script]
recipe = buildout_script
template = provide.sh.in
hostname = ${provider-config:host}
sysname = ${provider-config:sysname}