munin-formula/munin/map.jinja

86 lines
2.8 KiB
Plaintext
Raw Normal View History

2014-01-05 00:47:26 -05:00
{% 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',
},
2015-09-10 15:29:46 -04:00
'Arch': {
'package': 'munin',
'config': '/etc/munin/munin.conf',
'config_src': 'salt://munin/files/munin.conf',
2015-11-28 23:50:33 -05:00
'cron_service': '/etc/systemd/system/munin-cron.service',
'cron_timer': '/etc/systemd/system/munin-cron.timer',
2015-09-10 15:29:46 -04:00
},
2015-12-02 17:31:37 -05:00
'Gentoo': {
'package': 'net-analyzer/munin',
'config': '/etc/munin/munin.conf',
'config_src': 'salt://munin/files/munin.conf',
},
}, merge=salt['pillar.get']('munin:lookup:master')) %}
2014-01-05 00:47:26 -05:00
{% 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',
2015-10-02 00:38:55 -04:00
'plugin_dir': '/usr/share/munin/plugins',
2014-01-05 00:47:26 -05:00
},
'RedHat': {
'package': 'munin-node',
'service': 'munin-node',
'config': '/etc/munin/munin-node.conf',
'config_src': 'salt://munin/files/munin-node.conf',
2015-10-02 00:38:55 -04:00
'plugin_dir': '/usr/share/munin/plugins',
2014-01-05 00:47:26 -05:00
},
2015-09-10 15:29:46 -04:00
'Arch': {
'package': 'munin-node',
'service': 'munin-node',
'config': '/etc/munin/munin-node.conf',
'config_src': 'salt://munin/files/munin-node.conf',
2015-10-02 00:38:55 -04:00
'plugin_dir': '/usr/lib/munin/plugins',
2015-09-10 15:29:46 -04:00
},
2015-12-02 17:31:37 -05:00
'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',
},
2015-12-02 17:37:05 -05:00
'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',
},
2015-12-02 17:37:05 -05:00
'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')) %}