Pārlūkot izejas kodu

Fix cert rights

tags/0.4
Ales Komarek pirms 8 gadiem
vecāks
revīzija
0bf2e30aef
2 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      salt/files/_peer.conf
  2. +7
    -0
      salt/minion/cert.sls

+ 1
- 1
salt/files/_peer.conf Parādīt failu

@@ -3,4 +3,4 @@
peer:
{%- for peer_name,peer_rules in master.peer.items() %}
{{ peer_name }}: {{ peer_rules }}
{%- endfor %}
{%- endfor %}

+ 7
- 0
salt/minion/cert.sls Parādīt failu

@@ -8,6 +8,13 @@
x509.private_key_managed:
- bits: 4096

{{ cert.common_name }}_rights:
file.managed:
- name: /etc/ssl/private/{{ cert.common_name }}.key
- mode: 600
- require:
- x509: /etc/ssl/private/{{ cert.common_name }}.key

/etc/ssl/certs/{{ cert.common_name }}.crt:
x509.certificate_managed:
- ca_server: {{ cert.host }}

Notiek ielāde…
Atcelt
Saglabāt