[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 [%(zope_id)s] 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 port = %(zope_port)s ip = $${slap-network-information:local-ipv4} thread-amount = %(zope_thread_amount)s deadlock-path = /manage_debug_threads # Paths wrapper = $${basedirectory:services}/%(zope_id)s 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 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 inituser = $${:instance-path}/inituser # Binary information runzope-binary = ${buildout:bin-directory}/runzope [logrotate-entry-%(zope_id)s] <= logrotate recipe = slapos.cookbook:logrotate.d name = zope log = $${%(zope_id)s:event-log} $${%(zope_id)ss:z2-log} frequency = daily rotate-num = 30 post = ${buildout:bin-directory}/killpidfromfile $${%(zope_id)s:pid-file} SIGUSR2 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