Commit 9c1384dc authored by Tristan Cavelier's avatar Tristan Cavelier

cloudooo: add logrotate for apache logs

parent fc6c01a9
......@@ -66,11 +66,14 @@ mode = {{ mode }}
[buildout]
extends =
{{ parameter_dict['template-logrotate-base'] }}
parts =
publish
apache
apache-conf
apache-promise
apache-logrotate
cloudooo-test-runner
haproxy
xvfb-instance
......@@ -146,6 +149,14 @@ cert =
crl =
{%- endif %}
[apache-logrotate]
recipe = slapos.cookbook:logrotate.d
logrotate-entries = ${logrotate:logrotate-entries}
backup = ${logrotate:backup}
name = apache
log = ${apache-conf-parameter-dict:error-log} ${apache-conf-parameter-dict:access-log}
post = {{ bin_directory }}/slapos-kill --pidfile ${apache-conf-parameter-dict:pid-file} -s USR1
[publish]
recipe = slapos.cookbook:publish.serialised
{% for family_name, (apache_port, scheme, _) in apache_dict.items() -%}
......
[buildout]
extends =
../../stack/cloudooo.cfg
../../stack/logrotate/buildout.cfg
[cloudooo-buildout]
parts =
......@@ -73,9 +74,10 @@ xfixes = ${xfixes:location}
xserver = ${xserver:location}
zlib = ${zlib:location}
template-apache-conf = ${template-apache-backend-conf:target}
template-logrotate-base = ${template-logrotate-base:rendered}
[template-cloudooo-instance]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-cloudooo.cfg.in
md5sum = 7134b253ab5dfba520a31739fa611de6
md5sum = 84b9da151545039f6755c969b1532ec2
mode = 640
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment