added munin.tls state to install Perl Net::SSLEay package

This commit is contained in:
Kenny Do 2014-01-05 22:34:51 -08:00
parent 5dd42510c0
commit 38d4b9e069
3 changed files with 16 additions and 0 deletions

View File

@ -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
============= =============

View File

@ -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
View File

@ -0,0 +1,5 @@
{% from "munin/map.jinja" import net_ssleay with context %}
net_ssleay:
pkg.installed:
- name: {{ net_ssleay.package }}