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',
|
|
|
|
},
|
2014-01-05 00:47:26 -05:00
|
|
|
}, merge=salt['pillar.get']('munin_master:lookup')) %}
|
|
|
|
|
|
|
|
{% 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
|
|
|
},
|
2014-01-05 00:47:26 -05:00
|
|
|
}, merge=salt['pillar.get']('munin_node:lookup')) %}
|
2014-01-06 01:34:51 -05:00
|
|
|
|
|
|
|
{% set net_ssleay = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
|
|
|
'package': 'libnet-ssleay-perl',
|
|
|
|
},
|
|
|
|
'RedHat': {
|
|
|
|
'package': 'perl-Net-SSLeay',
|
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('net_ssleay:lookup')) %}
|
2014-01-06 20:38:14 -05:00
|
|
|
|
|
|
|
{% 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',
|
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('munin_tls:lookup')) %}
|