snippet-zope.cfg 2.87 KB
Newer Older
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
[apache-zope-backend-instance]
recipe = slapos.cookbook:apache.zope.backend
backend = http://$${zope-instance:ip}:$${zope-instance:port}/
ip = $${slap-network-information:global-ipv6}
port = 16001
wrapper = $${rootdirectory:bin}/apache
key-file = $${directory:apache-conf}/apache.key
cert-file = $${directory:apache-conf}/apache.crt
configuration-file = $${directory:apache-conf}/apache.conf
access-control-string = $${slap-parameter:access-control-string}
pid-file = $${basedirectory:run}/apache.pid
lock-file = $${basedirectory:run}/apache.lock
error-log = $${basedirectory:log}/apache-error.log
access-log = $${basedirectory:log}/apache-access.log
apache-binary = ${apache:location}/bin/httpd

[ca-apache-zope-backend]
<= certificate-authority
recipe = slapos.cookbook:certificate_authority.request
key-file = $${apache-zope-backend-instance:key-file}
cert-file = $${apache-zope-backend-instance:cert-file}
executable = $${apache-zope-backend-instance:wrapper}
wrapper = $${basedirectory:services}/apache

Łukasz Nowak's avatar
Łukasz Nowak committed
25
[%(zope_id)s]
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
26 27 28 29 30 31 32 33 34
recipe = slapos.cookbook:generic.zope

# XXX: products won't be needed as soon as all ERP5 (and products-deps)
# products will be eggified so then it will be possible to use them thanks to
# availability in software's eggs
products = ${products:list}

# Options
user = zope
35
port = %(zope_port)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
36
ip = $${slap-network-information:local-ipv4}
37
thread-amount = %(zope_thread_amount)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
38
deadlock-path = /manage_debug_threads
39 40 41
timezone = %(timezone)s
zeo_connection_string =
  %(zeo_connection_string)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
42 43

# Paths
44
wrapper = $${basedirectory:services}/%(zope_id)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
45 46 47 48 49 50 51
instance-path = $${directory:instance}
instance-etc = $${directory:instance-etc}
instance-products = $${directory:instance-products}
bt5-repository = $${rootdirectory:var}/bt5_repository
tmp-path = $${rootdirectory:tmp}
bin-path = $${rootdirectory:bin}
site-zcml = $${:instance-etc}/site.zcml
52 53 54 55 56
pid-file = $${basedirectory:run}/%(zope_id)s.pid
lock-file = $${basedirectory:run}/%(zope_id)s.lock
event-log = $${basedirectory:log}/%(zope_id)s-event.log
z2-log = $${basedirectory:log}/%(zope_id)s-Z2.log
configuration-file = $${rootdirectory:etc}/%(zope_id)s.conf
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
57 58 59 60
inituser = $${:instance-path}/inituser
# Binary information
runzope-binary = ${buildout:bin-directory}/runzope

61
[logrotate-entry-%(zope_id)s]
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
62 63 64
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = zope
Łukasz Nowak's avatar
Łukasz Nowak committed
65
log = $${%(zope_id)s:event-log} $${%(zope_id)ss:z2-log}
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
66 67
frequency = daily
rotate-num = 30
Łukasz Nowak's avatar
Łukasz Nowak committed
68
post = ${buildout:bin-directory}/killpidfromfile $${%(zope_id)s:pid-file} SIGUSR2
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
sharedscripts = true
notifempty = true
create = true

[logrotate-entry-apache-zope-backend]
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = zope
log = $${apache-zope-backend-instance:error-log} $${apache-zope-backend-instance:access-log}
frequency = daily
rotate-num = 30
post = ${buildout:bin-directory}/killpidfromfile $${apache-zope-backend-instance:pid-file} SIGUSR1
sharedscripts = true
notifempty = true
create = true