]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: move logrotate config to jinja2 template 54378/head
authorAdam King <adking@redhat.com>
Mon, 6 Nov 2023 18:34:14 +0000 (13:34 -0500)
committerAdam King <adking@redhat.com>
Tue, 14 Nov 2023 20:23:18 +0000 (15:23 -0500)
commit3797fb51add7dcfe3ff4cfca1b7af5e3d2952eea
tree9eb2860cba807a7b5dfa6a9feb536b52a659393a
parent473eadaa90a0b6022a53f496f5ee7c509d00f98a
cephadm: move logrotate config to jinja2 template

This moves both the cluster and cephadm logrotate
configs into jinja2 templates. It looks a bit silly
right now to have the cephadm one in a template given
it has no variables, but it may allow us to implement
custom cephadm log logrotate configs later down
the line

Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm.py
src/cephadm/cephadmlib/logging.py
src/cephadm/cephadmlib/templates/cephadm.logrotate.config.j2 [new file with mode: 0644]
src/cephadm/cephadmlib/templates/cluster.logrotate.config.j2 [new file with mode: 0644]
src/cephadm/cephadmlib/templating.py
src/cephadm/tests/test_logrotate_config.py [new file with mode: 0644]