buildout.cfg 910 Bytes
Newer Older
1 2
[buildout]
extends =
3
  buildout.hash.cfg
4
  ../../component/dcron/buildout.cfg
5
  ../../component/xz-utils/buildout.cfg
6 7 8 9
  ../../component/logrotate/buildout.cfg
parts =
  template-logrotate-base

10
[logrotate-download-base]
11
recipe = slapos.recipe.build:download
12
url = ${:_profile_base_location_}/${:filename}
13 14 15
# XXX: following mode should be the default
mode = 644

16 17 18
[logrotate-conf-template]
< = logrotate-download-base

19
[logrotate-entry-template]
20
< = logrotate-download-base
21

22 23
[template-logrotate-base]
recipe = slapos.recipe.template:jinja2
24 25
template = ${:_profile_base_location_}/${:filename}
rendered = ${buildout:directory}/instance-logrotate-base.cfg
26 27
context =
    key dcron_location dcron:location
28
    key xz_location xz-utils:location
29
    key logrotate_location logrotate:location
30 31
    key logrotate_conf_template logrotate-conf-template:target
    key logrotate_entry_template logrotate-entry-template:target