Browse Source

Adjust pki modes again

master
Sean Johnson 3 years ago
parent
commit
9b18918157
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 9FA15B87469EA850
  1. 11
      app/consul/ca.sls
  2. 2
      base/files.sls

11
app/consul/ca.sls

@ -1,12 +1,21 @@ @@ -1,12 +1,21 @@
---
{% set ca_path = salt.pillar.get("consul:config:ca_path", "/etc/pki/consul/ca") %}
{% set pki_dir = salt.file.dirname(ca_path) %}
{{ pki_dir }}:
file.directory:
- user: {{ salt.pillar.get("consul:user", "root") }}
- group: {{ salt.pillar.get("consul:group", "root") }}
- dir_mode: 0750
- file_mode: 0660
- makedirs: true
{{ ca_path }}:
file.directory:
- user: {{ salt.pillar.get("consul:user", "root") }}
- group: {{ salt.pillar.get("consul:group", "root") }}
- dir_mode: 0660
- dir_mode: 0750
- file_mode: 0660
- makedirs: true

2
base/files.sls

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
file.directory:
- user: root
- group: root
- mode: 0644
- mode: 0755
logdna root tls certificate:
file.managed:

Loading…
Cancel
Save