1
0
Fork 0
mirror of synced 2024-06-01 14:51:09 -04:00
formula-logrotate/logrotate/map.jinja

43 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-01-01 13:52:08 -05:00
{% set logrotate = salt['grains.filter_by']({
'RedHat': {
'pkg' : 'logrotate',
'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',
'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',
},
2016-02-04 04:45:23 -05:00
'FreeBSD': {
'pkg' : 'logrotate',
'service' : 'cron',
'conf_file' : '/usr/local/etc/logrotate.conf',
'include_dir' : '/usr/local/etc/logrotate.d',
'user' : 'root',
'group' : 'wheel',
},
}, merge=salt['pillar.get']('logrotate:lookup')) %}