Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions logrotate/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RedHat:
default_config:
dateext: true
Suse:
service: null
login_records_jobs: false
default_config:
dateext: true
Expand Down
4 changes: 4 additions & 0 deletions logrotate/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

{% from "logrotate/map.jinja" import logrotate with context %}

{%- if logrotate.service is not none %}

include:
- logrotate.config
- logrotate.install
Expand All @@ -15,3 +17,5 @@ logrotate:
- pkg: logrotate-pkg
- file: logrotate-config
- file: logrotate-directory

{%- endif %}
2 changes: 2 additions & 0 deletions test/integration/default/controls/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
'cronie'
when 'redhat', 'fedora'
'crond'
when 'suse'
'logrotate.timer'
else
'cron'
end
Expand Down