support SUSE-based OSes

such as openSUSE and SLES
This commit is contained in:
Bernhard M. Wiedemann 2017-03-09 10:30:32 +01:00
parent caf6a26307
commit 416272fb1c
2 changed files with 18 additions and 0 deletions

View File

@ -9,6 +9,11 @@
'config': '/etc/munin/munin.conf', 'config': '/etc/munin/munin.conf',
'config_src': 'salt://munin/files/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': { 'Arch': {
'package': 'munin', 'package': 'munin',
'config': '/etc/munin/munin.conf', 'config': '/etc/munin/munin.conf',
@ -38,6 +43,13 @@
'config_src': 'salt://munin/files/munin-node.conf', 'config_src': 'salt://munin/files/munin-node.conf',
'plugin_dir': '/usr/share/munin/plugins', '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': { 'Arch': {
'package': 'munin-node', 'package': 'munin-node',
'service': 'munin-node', 'service': 'munin-node',

View File

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