2015-01-01 13:52:08 -05:00
|
|
|
{% set logrotate = salt['grains.filter_by']({
|
|
|
|
'RedHat': {
|
|
|
|
'pkg' : 'logrotate',
|
2015-01-06 14:06:50 -05:00
|
|
|
'service' : 'cron',
|
2015-01-01 13:52:08 -05:00
|
|
|
'conf_file' : '/etc/logrotate.conf',
|
|
|
|
'include_dir' : '/etc/logrotate.d',
|
|
|
|
'user' : 'root',
|
|
|
|
'group' : 'root',
|
|
|
|
},
|
|
|
|
'Arch': {
|
|
|
|
'pkg' : 'logrotate',
|
|
|
|
'service' : 'logrotate.timer',
|
|
|
|
'conf_file' : '/etc/logrotate.conf',
|
|
|
|
'include_dir' : '/etc/logrotate.d',
|
|
|
|
'user' : 'root',
|
|
|
|
'group' : 'root',
|
|
|
|
},
|
|
|
|
'Debian': {
|
|
|
|
'pkg' : 'logrotate',
|
2015-01-06 14:06:50 -05:00
|
|
|
'service' : 'cron',
|
2015-01-01 13:52:08 -05:00
|
|
|
'conf_file' : '/etc/logrotate.conf',
|
|
|
|
'include_dir' : '/etc/logrotate.d',
|
|
|
|
'user' : 'root',
|
|
|
|
'group' : 'root',
|
|
|
|
},
|
2015-03-07 05:27:15 -05:00
|
|
|
'Suse': {
|
|
|
|
'pkg' : 'logrotate',
|
|
|
|
'service' : 'cron',
|
|
|
|
'conf_file' : '/etc/logrotate.conf',
|
|
|
|
'include_dir' : '/etc/logrotate.d',
|
|
|
|
'user' : 'root',
|
|
|
|
'group' : 'root',
|
|
|
|
},
|
2015-02-07 04:08:08 -05:00
|
|
|
}, merge=salt['grains.filter_by']({
|
|
|
|
'Fedora': {
|
|
|
|
'service' : 'crond',
|
|
|
|
},
|
|
|
|
}, grain='os', merge=salt['pillar.get']('logrotate:lookup'))) %}
|