munin: Add TLS support

Closes #1.
This commit is contained in:
Ossi Salmi 2013-06-13 15:18:26 +03:00
parent 28055dcea7
commit 6efac4de21
3 changed files with 74 additions and 1 deletions

View file

@ -45,3 +45,13 @@ host <%= @ipaddress %>
# And which port
port 4949
<% if @munin_tls == "true" -%>
# Require TLS
tls paranoid
tls_verify_certificate yes
tls_ca_certificate <%= @puppet_ssldir %>/certs/ca.pem
tls_certificate <%= @puppet_ssldir %>/certs/<%= @homename %>.pem
tls_private_key <%= @puppet_ssldir %>/private_keys/<%= @homename %>.pem
tls_verify_depth 5
<% end -%>

View file

@ -0,0 +1,29 @@
# The next three variables specifies where the location of the RRD
# databases, the HTML output, and the logs, severally. They all
# must be writable by the user running munin-cron.
dbdir /var/lib/munin
htmldir /var/www/html/munin
logdir /var/log/munin
rundir /var/run/munin
cgitmpdir /var/cache/munin
# Where to look for the HTML templates
tmpldir /etc/munin/templates
# Create html and graphs on-demand
html_strategy cgi
graph_strategy cgi
cgiurl_graph /munin/cgi/munin-cgi-graph
<% if @munin_tls == "true" -%>
# Require TLS
tls paranoid
tls_verify_certificate yes
tls_ca_certificate <%= @puppet_ssldir %>/certs/ca.pem
tls_certificate <%= scope.lookupvar('ssl::certs') %>/munin.crt
tls_private_key <%= scope.lookupvar('ssl::private') %>/munin.key
tls_verify_depth 5
<% end -%>
# Include nodes
includedir /etc/munin/conf.d