Commit 9c676e45 authored by Romain Courteaud's avatar Romain Courteaud

Logrotate squid logs

parent 33a46262
......@@ -417,6 +417,13 @@ backend-port = ${haproxy-{{ backend_name }}:port}
access-log-path = ${directory:log}/squid-{{ backend_name }}-access.log
cache-log-path = ${directory:log}/squid-{{ backend_name }}-cache.log
pid-filename-path = ${directory:run}/squid-{{ backend_name }}.pid
[{{ section('logrotate-entry-squid-' ~ backend_name) }}]
< = logrotate-base
recipe = slapos.cookbook:logrotate.d
name = squid-{{ backend_name }}
log = ${squid-{{ backend_name }}:access-log-path} ${squid-{{ backend_name}}:cache-log-path}
post = {{ parameter_dict['squid'] }}/sbin/squid -k rotate
{% endif -%}
{% if 'http' in scheme -%}
......
......@@ -120,7 +120,7 @@ extra-context =
[template-tidstorage]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
md5sum = 9134807929807c715aabf6f90024bc83
md5sum = 4fde27d975ecb148a5dca6ab881ed026
mode = 640
[template-cloudooo]
......
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