Merge pull request #20 from bmwiedemann/master

support SUSE-based OSes
This commit is contained in:
Niels Abspoel 2017-03-14 13:32:17 +01:00 committed by GitHub
commit 4c7d1d4f4e
2 changed files with 18 additions and 0 deletions

View File

@ -9,6 +9,11 @@
'config': '/etc/munin/munin.conf',
'config_src': 'salt://munin/files/munin.conf',
},
'Suse': {
'package': 'munin',
'config': '/etc/munin/munin.conf',
'config_src': 'salt://munin/files/munin.conf',
},
'Arch': {
'package': 'munin',
'config': '/etc/munin/munin.conf',
@ -38,6 +43,13 @@
'config_src': 'salt://munin/files/munin-node.conf',
'plugin_dir': '/usr/share/munin/plugins',
},
'Suse': {
'package': 'munin-node',
'service': 'munin-node',
'config': '/etc/munin/munin-node.conf',
'config_src': 'salt://munin/files/munin-node.conf',
'plugin_dir': '/usr/share/munin/plugins',
},
'Arch': {
'package': 'munin-node',
'service': 'munin-node',

View File

@ -28,3 +28,9 @@ munin-cron.timer:
- file: cron_timer
{% endif %}
{% if salt['grains.get']('os_family') == 'Suse' %}
munin-cron:
service.running:
- name: cron
- enable: True
{% endif %}