2015-01-01 13:52:08 -05:00
|
|
|
{% set logrotate = salt['grains.filter_by']({
|
|
|
|
'RedHat': {
|
|
|
|
'pkg' : 'logrotate',
|
2015-04-02 09:28:51 -04:00
|
|
|
'service' : 'crond',
|
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-04-02 09:28:51 -04:00
|
|
|
}, merge=salt['pillar.get']('logrotate:lookup')) %}
|