added munin.tls state to install Perl Net::SSLEay package
This commit is contained in:
parent
5dd42510c0
commit
38d4b9e069
@ -12,6 +12,8 @@ States
|
|||||||
Installs the munin node package and enables the node service.
|
Installs the munin node package and enables the node service.
|
||||||
``munin.node.config`` (includes ``munin.node``)
|
``munin.node.config`` (includes ``munin.node``)
|
||||||
Generates a config file for the munin node based on pillar data.
|
Generates a config file for the munin node based on pillar data.
|
||||||
|
``munin.tls``
|
||||||
|
Installs the Perl package Net::SSLEay so munin can use TLS.
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
@ -25,3 +25,12 @@
|
|||||||
'config_src': 'salt://munin/files/munin-node.conf',
|
'config_src': 'salt://munin/files/munin-node.conf',
|
||||||
},
|
},
|
||||||
}, merge=salt['pillar.get']('munin_node:lookup')) %}
|
}, merge=salt['pillar.get']('munin_node:lookup')) %}
|
||||||
|
|
||||||
|
{% set net_ssleay = salt['grains.filter_by']({
|
||||||
|
'Debian': {
|
||||||
|
'package': 'libnet-ssleay-perl',
|
||||||
|
},
|
||||||
|
'RedHat': {
|
||||||
|
'package': 'perl-Net-SSLeay',
|
||||||
|
},
|
||||||
|
}, merge=salt['pillar.get']('net_ssleay:lookup')) %}
|
||||||
|
5
munin/tls.sls
Normal file
5
munin/tls.sls
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{% from "munin/map.jinja" import net_ssleay with context %}
|
||||||
|
|
||||||
|
net_ssleay:
|
||||||
|
pkg.installed:
|
||||||
|
- name: {{ net_ssleay.package }}
|
Loading…
Reference in New Issue
Block a user