{% from 'states/logrotate/map.jinja' import logrotate as logrotate_map with context %}
daily
rotate 30

create

dateext
dateformat -%Y%m%d

compress

missingok

include {{ logrotate_map.conf_dir }}

{% from 'states/logrotate/map.jinja' import logrotate as logrotate_map with context %}
{% from 'states/defaults.map.jinja' import defaults with context %}
su {{ logrotate_map.user|default('root') }} {{ logrotate_map.group|default(defaults.rootgroup) }}

daily
rotate 30

create

dateext
dateformat -%Y%m%d

compress

missingok

include {{ logrotate_map.conf_dir }}

Use root and root group for all files if not overridden.
logrotate: Use root and root group for all files if not overridden.
