1
0
Fork 0
mirror of synced 2024-12-21 21:51:09 -05:00

Change the default service name to 'crond' for RHEL based systems.

This commit is contained in:
Michal Galet 2015-04-02 15:28:51 +02:00
parent 6bf7ff92f4
commit 73c86743e2

View file

@ -1,7 +1,7 @@
{% set logrotate = salt['grains.filter_by']({ {% set logrotate = salt['grains.filter_by']({
'RedHat': { 'RedHat': {
'pkg' : 'logrotate', 'pkg' : 'logrotate',
'service' : 'cron', 'service' : 'crond',
'conf_file' : '/etc/logrotate.conf', 'conf_file' : '/etc/logrotate.conf',
'include_dir' : '/etc/logrotate.d', 'include_dir' : '/etc/logrotate.d',
'user' : 'root', 'user' : 'root',
@ -31,8 +31,4 @@
'user' : 'root', 'user' : 'root',
'group' : 'root', 'group' : 'root',
}, },
}, merge=salt['grains.filter_by']({ }, merge=salt['pillar.get']('logrotate:lookup')) %}
'Fedora': {
'service' : 'crond',
},
}, grain='os', merge=salt['pillar.get']('logrotate:lookup'))) %}