xoxys.logrotate/index.md
Robert Kaussow f8a9805342 commit 597679b649
Author: Robert Kaussow <mail@thegeeklab.de>
Date:   Tue May 25 23:28:54 2021 +0200

    chore: add options logrotate_app_config and logrotate_app_config_extra
2021-05-25 21:35:38 +00:00

2.4 KiB

title type
logrotate docs

Source Code Build Status License: MIT

Setup logrotate.


Default Variables

logrotate_app_config

Default value

logrotate_app_config: []

logrotate_app_config_extra

Default value

logrotate_app_config_extra: []

logrotate_config

Default value

logrotate_config:
  - name: syslog
    definitions:
      - logs:
          - /var/log/cron
          - /var/log/maillog
          - /var/log/messages
          - /var/log/secure
          - /var/log/spooler
        options:
          - missingok
          - sharedscripts
        postrotate:
          - /usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true
  - name: chrony
    definitions:
      - logs:
          - /var/log/chrony/*.log
        options:
          - missingok
          - nocreate
          - sharedscripts
        postrotate:
          - /usr/bin/chronyc cyclelogs > /dev/null 2>&1 || true
  - name: wtmp
    definitions:
      - logs:
          - /var/log/wtmp
        options:
          - missingok
          - monthly
          - create 0664 root utmp
          - minsize 1M
          - rotate 1
  - name: btmp
    definitions:
      - logs:
          - /var/log/btmp
        options:
          - missingok
          - monthly
          - create 0600 root utmp
          - rotate 1

logrotate_include_dir

Default value

logrotate_include_dir: /etc/logrotate.d

logrotate_options

Default value

logrotate_options:
  - weekly
  - rotate 4
  - create
  - dateext

logrotate_package

Default value

logrotate_package: logrotate

Dependencies

None.