|
|
|
|
|
|
|
|
{% set logrotate = salt['grains.filter_by']({ |
|
|
{% set logrotate = salt['grains.filter_by']({ |
|
|
'RedHat': { |
|
|
'RedHat': { |
|
|
'pkg' : 'logrotate', |
|
|
'pkg' : 'logrotate', |
|
|
'service' : 'crond', |
|
|
|
|
|
|
|
|
'service' : 'cron', |
|
|
'conf_file' : '/etc/logrotate.conf', |
|
|
'conf_file' : '/etc/logrotate.conf', |
|
|
'include_dir' : '/etc/logrotate.d', |
|
|
'include_dir' : '/etc/logrotate.d', |
|
|
'user' : 'root', |
|
|
'user' : 'root', |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
'Debian': { |
|
|
'Debian': { |
|
|
'pkg' : 'logrotate', |
|
|
'pkg' : 'logrotate', |
|
|
'service' : 'crond', |
|
|
|
|
|
|
|
|
'service' : 'cron', |
|
|
'conf_file' : '/etc/logrotate.conf', |
|
|
'conf_file' : '/etc/logrotate.conf', |
|
|
'include_dir' : '/etc/logrotate.d', |
|
|
'include_dir' : '/etc/logrotate.d', |
|
|
'user' : 'root', |
|
|
'user' : 'root', |