Browse Source

Merge pull request #10 from galet/master

Change the default service name to 'crond' for RHEL based systems.
master
Niels Abspoel 9 years ago
parent
commit
8f64b9ab03
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      logrotate/map.jinja

+ 2
- 6
logrotate/map.jinja View File

{% 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',
'user' : 'root', 'user' : 'root',
'group' : 'root', 'group' : 'root',
}, },
}, merge=salt['grains.filter_by']({
'Fedora': {
'service' : 'crond',
},
}, grain='os', merge=salt['pillar.get']('logrotate:lookup'))) %}
}, merge=salt['pillar.get']('logrotate:lookup')) %}

Loading…
Cancel
Save