Llama Charmers Next Logrotated

  • By Llama (LMA) Charmers - NEXT
Channel Version Revision Published Runs on
latest/stable 4 4 19 Mar 2021
Ubuntu 20.04 Ubuntu 18.04 Ubuntu 16.04
juju deploy llama-charmers-next-logrotated
Show information


20.04 18.04 16.04
  • logrotate-cronjob | boolean

    Default: True

    Enabled or disables the creation of a cronjob for the automatic updating of the logrotate files.

  • logrotate-cronjob-frequency | string

    Default: hourly

    If logrotate-cronjob is True, then this value is used to determine the location of the cronjob file. Valid options are 'hourly', 'daily', 'weekly', 'monthly'.

  • logrotate-retention | int

    Default: 30

    The logrotate retention period in days. The charm will go through `ALL` logrotate entries in /etc/logrotate.d/ and set the `rotate` config to the appropriate value, depending on the rotation interval used. For example if rotation is monthy and retention is 180 days -> `rotate 6` or rotation is daily and retention is 90 days -> `rotate 90` or rotation is weekly and retention is 21 days -> `rotate 3` Weekly will round up the week count, for example if retention is set to 180 days -> `rotate 26` (26 weeks x 7 days = 182 days) Yearly will put rotate to 1 and increase it with 1 for each 360 days.

  • override | string

    Default: []

    JSON-formatted string with override options for files in /etc/logrotate.d/ This override takes precendence over all other options. Format is: [ {"path": "/etc/logrotate.d/rotatefile", "rotate": 5, "interval": "weekly"}, {}, ... ] Mind the quotes for JSON properties/values! Valid options for rotate: any integer value Valid options for interval: 'daily', 'weekly', 'monthly', 'yearly'