Merge pull request #7 from Reonaydo/master

Makedirs on tls file creation
This commit is contained in:
puneet kandhari 2015-10-08 06:31:51 -05:00
commit 6934665b5a

View File

@ -12,6 +12,8 @@ munin_tls_private_key:
- group: munin - group: munin
- mode: 600 - mode: 600
- contents_pillar: munin_tls:private_pem - contents_pillar: munin_tls:private_pem
- makedirs: True
- dir_mode: 700
{%- endif %} {%- endif %}
{%- if salt['pillar.get']('munin_tls:certificate_pem') %} {%- if salt['pillar.get']('munin_tls:certificate_pem') %}
@ -22,6 +24,8 @@ munin_tls_certificate:
- group: munin - group: munin
- mode: 600 - mode: 600
- contents_pillar: munin_tls:certificate_pem - contents_pillar: munin_tls:certificate_pem
- makedirs: True
- dir_mode: 700
{%- endif %} {%- endif %}
{%- if salt['pillar.get']('munin_tls:ca_certificate_pem') %} {%- if salt['pillar.get']('munin_tls:ca_certificate_pem') %}
@ -32,4 +36,6 @@ munin_tls_ca_certificate:
- group: munin - group: munin
- mode: 600 - mode: 600
- contents_pillar: munin_tls:ca_certificate_pem - contents_pillar: munin_tls:ca_certificate_pem
- makedirs: True
- dir_mode: 700
{%- endif %} {%- endif %}