2014-01-06 20:38:14 -05:00
|
|
|
{% from "munin/map.jinja" import net_ssleay, munin_tls with context %}
|
2014-01-06 01:34:51 -05:00
|
|
|
|
|
|
|
net_ssleay:
|
|
|
|
pkg.installed:
|
|
|
|
- name: {{ net_ssleay.package }}
|
2014-01-06 20:38:14 -05:00
|
|
|
|
|
|
|
{%- if salt['pillar.get']('munin_tls:private_pem') %}
|
|
|
|
munin_tls_private_key:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ munin_tls.private_key }}
|
|
|
|
- user: munin
|
|
|
|
- group: munin
|
|
|
|
- mode: 600
|
|
|
|
- contents_pillar: munin_tls:private_pem
|
2015-10-08 03:29:10 -04:00
|
|
|
- makedirs: True
|
|
|
|
- dir_mode: 700
|
2014-01-06 20:38:14 -05:00
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
{%- if salt['pillar.get']('munin_tls:certificate_pem') %}
|
|
|
|
munin_tls_certificate:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ munin_tls.certificate }}
|
|
|
|
- user: munin
|
|
|
|
- group: munin
|
|
|
|
- mode: 600
|
|
|
|
- contents_pillar: munin_tls:certificate_pem
|
2015-10-08 03:29:10 -04:00
|
|
|
- makedirs: True
|
|
|
|
- dir_mode: 700
|
2014-01-06 20:38:14 -05:00
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
{%- if salt['pillar.get']('munin_tls:ca_certificate_pem') %}
|
|
|
|
munin_tls_ca_certificate:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ munin_tls.ca_certificate }}
|
|
|
|
- user: munin
|
|
|
|
- group: munin
|
|
|
|
- mode: 600
|
|
|
|
- contents_pillar: munin_tls:ca_certificate_pem
|
2015-10-08 03:29:10 -04:00
|
|
|
- makedirs: True
|
|
|
|
- dir_mode: 700
|
2014-01-06 20:38:14 -05:00
|
|
|
{%- endif %}
|