Updated map.jinja
This commit is contained in:
parent
153273cd56
commit
7049998115
@ -18,7 +18,7 @@
|
|||||||
'config': '/usr/local/etc/munin/munin.conf',
|
'config': '/usr/local/etc/munin/munin.conf',
|
||||||
'file_group': 'wheel',
|
'file_group': 'wheel',
|
||||||
},
|
},
|
||||||
}, grain='os_family') %}
|
}, grain='os_family', salt['pillar.get']('munin:lookup:munin_master')) %}
|
||||||
|
|
||||||
{% set munin_node_osmap = salt['grains.filter_by']({
|
{% set munin_node_osmap = salt['grains.filter_by']({
|
||||||
'Arch': {
|
'Arch': {
|
||||||
@ -34,7 +34,7 @@
|
|||||||
'plugin_target_dir': '/usr/local/share/munin/plugins',
|
'plugin_target_dir': '/usr/local/share/munin/plugins',
|
||||||
'file_group': 'wheel',
|
'file_group': 'wheel',
|
||||||
},
|
},
|
||||||
}, grain='os_family') %}
|
}, grain='os_family', salt['pillar.get']('munin:lookup:munin_node')) %}
|
||||||
|
|
||||||
{% set net_ssleay_osmap = salt['grains.filter_by']({
|
{% set net_ssleay_osmap = salt['grains.filter_by']({
|
||||||
'Debian': {
|
'Debian': {
|
||||||
@ -46,7 +46,7 @@
|
|||||||
'Gentoo': {
|
'Gentoo': {
|
||||||
'package': 'dev-perl/Net-SSLeay',
|
'package': 'dev-perl/Net-SSLeay',
|
||||||
},
|
},
|
||||||
}, grain='os_family') %}
|
}, grain='os_family', salt['pillar.get']('munin:lookup:net_ssleay')) %}
|
||||||
|
|
||||||
{% set munin_tls_osmap = salt['grains.filter_by']({
|
{% set munin_tls_osmap = salt['grains.filter_by']({
|
||||||
'FreeBSD': {
|
'FreeBSD': {
|
||||||
@ -54,15 +54,10 @@
|
|||||||
'certificate': '/usr/local/etc/munin/tls/crt.pem',
|
'certificate': '/usr/local/etc/munin/tls/crt.pem',
|
||||||
'ca_certificate': '/usr/local/etc/munin/tls/cacert.pem',
|
'ca_certificate': '/usr/local/etc/munin/tls/cacert.pem',
|
||||||
},
|
},
|
||||||
}, grain='os_family') %}
|
}, grain='os_family', salt['pillar.get']('munin:lookup:munin_tls')) %}
|
||||||
|
|
||||||
{## Merge osmaps into defaults, then marge in pillar ##}
|
{## Merge osmaps into defaults, then marge in pillar ##}
|
||||||
{% do default_settings.munin_master.update(munin_master_osmap) %}
|
{% set munin_master = default_settings.munin_master.update(munin_master_osmap) %}
|
||||||
{% set munin_master = salt['pillar.get']('munin:lookup:munin_master', default=default_settings.munin_master, merge=True) %}
|
{% set munin_node = default_settings.munin_node.update(munin_node_osmap) %}
|
||||||
{% do default_settings.munin_node.update(munin_node_osmap) %}
|
{% set net_ssleay = default_settings.net_ssleay.update(net_ssleay_osmap) %}
|
||||||
{% set munin_node = salt['pillar.get']('munin:lookup:munin_node', default=default_settings.munin_node, merge=True) %}
|
{% set munin_tls = default_settings.munin_tls.update(munin_tls_osmap) %}
|
||||||
{% do default_settings.net_ssleay.update(net_ssleay_osmap) %}
|
|
||||||
{% set net_ssleay = salt['pillar.get']('munin:lookup:munin_ssleay', default=default_settings.net_ssleay, merge=True) %}
|
|
||||||
{% do default_settings.munin_tls.update(munin_tls_osmap) %}
|
|
||||||
{% set munin_tls = salt['pillar.get']('munin:lookup:munin_tls', default=default_settings.munin_tls, merge=True) %}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user