-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.cfg
192 lines (159 loc) · 4.64 KB
/
production.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
[buildout]
extends =
cfgs/base.cfg
prod-parts =
env
grp
instance1
instance2
atct_conf
${buildout:memcached-parts}
instance-debug
logrotate
cron-parts =
logrotate-crontab
supervisor-crontab
parts =
${buildout:base-parts}
${buildout:prod-parts}
${buildout:cron-parts}
${buildout:supervisor-parts}
develop =
src/intranett.policy
src/intranett.theme
[supervisor-crontab]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/supervisord -c ${buildout:directory}/etc/supervisord.conf
[credentials]
ejabberd-password = ${env:INTRANETT_DB_PASSWORD}
ejabberd-domain = ${env:INTRANETT_DB_ID}.intranett.no
[instance-base]
user = ${credentials:zope-user}
eggs +=
psycopg2
pylibmc
zeo-client = False
zeo-address =
blob-storage =
shared-blob = off
environment-vars +=
LD_LIBRARY_PATH ${libjhed:location}/lib
environment-vars +=
INTRANETT_PLONE_ID ${env:INTRANETT_PLONE_ID}
mailinglogger =
<mailing-logger>
level error
flood-level 10
smtp-server mail10.copyleft.no
from [email protected]
subject [intranett.no error] [%(hostname)s] %(line)s
</mailing-logger>
[instance1]
<= instance-base
http-port = ${ports:instance1-http-port}
http-address = ${ports:instance1-http-port}
rel-storage =
type postgresql
dsn dbname='${env:INTRANETT_DB_ID}' user='${env:INTRANETT_DB_ID}' host='pgsql01.intranettlan' password='${env:INTRANETT_DB_PASSWORD}'
shared-blob-dir false
blob-cache-size 512mb
poll-interval 60
cache-local-mb 0
cache-prefix ${env:INTRANETT_DB_ID}
cache-servers 127.0.0.1:11211
blob-dir ${buildout:directory}/var/blobcache-instance1
[instance2]
<= instance-base
http-port = ${ports:instance2-http-port}
http-address = ${ports:instance2-http-port}
rel-storage =
type postgresql
dsn dbname='${env:INTRANETT_DB_ID}' user='${env:INTRANETT_DB_ID}' host='pgsql01.intranettlan' password='${env:INTRANETT_DB_PASSWORD}'
shared-blob-dir false
blob-cache-size 512mb
poll-interval 60
cache-local-mb 0
cache-prefix ${env:INTRANETT_DB_ID}
cache-servers 127.0.0.1:11211
blob-dir ${buildout:directory}/var/blobcache-instance2
[instance1-supervisor]
autostart = true
name = instance1
program =
[program:${:name}]
command = ${buildout:bin-directory}/instance1 console
startretries = 5
redirect_stderr = true
autostart = ${:autostart}
autorestart = true
priority = 300
[instance2-supervisor]
autostart = true
name = instance2
program =
[program:${:name}]
command = ${buildout:bin-directory}/instance2 console
startretries = 5
redirect_stderr = true
autostart = ${:autostart}
autorestart = true
priority = 300
[memcached-supervisor]
autostart = true
name = memcached
program =
[program:${:name}]
command = %(here)s/../bin/memcached -m 64 -p 11211 -l 127.0.0.1
environment = LD_LIBRARY_PATH=%(here)s/../parts/libevent/lib/
autostart = ${:autostart}
autorestart = true
priority = 100
[instance-debug]
<= instance-base
http-port = 8090
http-address = 8090
verbose-security = on
rel-storage =
type postgresql
dsn dbname='${env:INTRANETT_DB_ID}' user='${env:INTRANETT_DB_ID}' host='pgsql01.intranettlan' password='${env:INTRANETT_DB_PASSWORD}'
shared-blob-dir false
blob-cache-size 512mb
poll-interval 60
cache-local-mb 0
cache-prefix ${env:INTRANETT_DB_ID}
cache-servers 127.0.0.1:11211
blob-dir ${buildout:directory}/var/blobcache-instance-debug
[atct_conf]
recipe = plone.recipe.command
target1 = ${instance1:location}/etc/atcontenttypes.conf
target2 = ${instance2:location}/etc/atcontenttypes.conf
command = ln -s ${buildout:directory}/etc/atcontenttypes.conf ${:target1} ; ln -s ${buildout:directory}/etc/atcontenttypes.conf ${:target2}
[zopepy]
eggs = ${instance1:eggs}
[zope-supervisor]
autostart = true
name = zope
program =
[group:${:name}]
programs = instance1,instance2
priority = 210
[supervisor-conf]
programs =
${memcached-supervisor:program}
${instance1-supervisor:program}
${instance2-supervisor:program}
${zope-supervisor:program}
[test-supervisor-conf]
<= supervisor-conf
input = ${buildout:directory}/templates/supervisord-test.conf
output = ${buildout:directory}/etc/supervisord-test.conf
[logrotate]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/logrotate.conf
output = ${buildout:directory}/etc/logrotate.conf
[logrotate-crontab]
recipe = z3c.recipe.usercrontab
times = 57 23 * * *
command = /usr/sbin/logrotate -s ${buildout:directory}/var/logrotate.status ${buildout:directory}/etc/logrotate.conf