416272fb1c
such as openSUSE and SLES
98 lines
3.2 KiB
Django/Jinja
98 lines
3.2 KiB
Django/Jinja
{% set munin_master = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'package': 'munin',
|
|
'config': '/etc/munin/munin.conf',
|
|
'config_src': 'salt://munin/files/munin.conf',
|
|
},
|
|
'RedHat': {
|
|
'package': 'munin',
|
|
'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',
|
|
'config_src': 'salt://munin/files/munin.conf',
|
|
'cron_service': '/etc/systemd/system/munin-cron.service',
|
|
'cron_timer': '/etc/systemd/system/munin-cron.timer',
|
|
},
|
|
'Gentoo': {
|
|
'package': 'net-analyzer/munin',
|
|
'config': '/etc/munin/munin.conf',
|
|
'config_src': 'salt://munin/files/munin.conf',
|
|
},
|
|
}, merge=salt['pillar.get']('munin:lookup:master')) %}
|
|
|
|
{% set munin_node = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'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',
|
|
},
|
|
'RedHat': {
|
|
'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',
|
|
},
|
|
'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',
|
|
'config': '/etc/munin/munin-node.conf',
|
|
'config_src': 'salt://munin/files/munin-node.conf',
|
|
'plugin_dir': '/usr/lib/munin/plugins',
|
|
},
|
|
'Gentoo': {
|
|
'package': 'net-analyzer/munin',
|
|
'service': 'munin-node',
|
|
'config': '/etc/munin/munin-node.conf',
|
|
'config_src': 'salt://munin/files/munin-node.conf',
|
|
'plugin_dir': '/usr/libexec/munin/plugins',
|
|
},
|
|
}, merge=salt['pillar.get']('munin:lookup:node')) %}
|
|
|
|
{% set net_ssleay = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'package': 'libnet-ssleay-perl',
|
|
},
|
|
'RedHat': {
|
|
'package': 'perl-Net-SSLeay',
|
|
},
|
|
'Gentoo': {
|
|
'package': 'dev-perl/Net-SSLeay',
|
|
},
|
|
}, merge=salt['pillar.get']('net_ssleay:lookup')) %}
|
|
|
|
{% set munin_tls = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'private_key': '/etc/munin/tls/key.pem',
|
|
'certificate': '/etc/munin/tls/crt.pem',
|
|
'ca_certificate': '/etc/munin/tls/cacert.pem',
|
|
},
|
|
'RedHat': {
|
|
'private_key': '/etc/munin/tls/key.pem',
|
|
'certificate': '/etc/munin/tls/crt.pem',
|
|
'ca_certificate': '/etc/munin/tls/cacert.pem',
|
|
},
|
|
'Gentoo': {
|
|
'private_key': '/etc/munin/tls/key.pem',
|
|
'certificate': '/etc/munin/tls/crt.pem',
|
|
'ca_certificate': '/etc/munin/tls/cacert.pem',
|
|
},
|
|
}, merge=salt['pillar.get']('munin:lookup:tls')) %}
|