1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00
formula-logrotate/logrotate/map.jinja
2015-03-07 11:27:15 +01:00

38 lines
1.2 KiB
Django/Jinja

{% set logrotate = salt['grains.filter_by']({
'RedHat': {
'pkg' : 'logrotate',
'service' : 'cron',
'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',
'conf_file' : '/etc/logrotate.conf',
'include_dir' : '/etc/logrotate.d',
'user' : 'root',
'group' : 'root',
},
'Suse': {
'pkg' : 'logrotate',
'service' : 'cron',
'conf_file' : '/etc/logrotate.conf',
'include_dir' : '/etc/logrotate.d',
'user' : 'root',
'group' : 'root',
},
}, merge=salt['grains.filter_by']({
'Fedora': {
'service' : 'crond',
},
}, grain='os', merge=salt['pillar.get']('logrotate:lookup'))) %}