mkdirs as needed

This commit is contained in:
Josh Brower
2023-04-17 12:28:07 -04:00
parent 1944d09978
commit 8cccaef664
2 changed files with 2 additions and 17 deletions

View File

@@ -39,23 +39,6 @@ eastatedir:
- group: 939
- makedirs: True
# Pull down the Logstash Cert from the Manager
/opt/so/conf/elastic-fleet/certs/elasticfleet-logstash.p8:
file.managed:
- replace: True
- source: salt://elasticfleet/files/certs/elasticfleet-logstash.p8
- mode: 640
- user: 931
- group: 939
/opt/so/conf/elastic-fleet/certs/elasticfleet-logstash.crt:
file.managed:
- replace: True
- source: salt://elasticfleet/files/certs/elasticfleet-logstash.crt
- mode: 640
- user: 931
- group: 939
{% if SERVICETOKEN != '' %}
so-elastic-fleet:

View File

@@ -330,6 +330,7 @@ eflogstashcrtlink:
file.managed:
- replace: True
- source: salt://elasticfleet/files/certs/elasticfleet-logstash.p8
- makedirs: True
- mode: 640
- user: 931
- group: 939
@@ -338,6 +339,7 @@ eflogstashcrtlink:
file.managed:
- replace: True
- source: salt://elasticfleet/files/certs/elasticfleet-logstash.crt
- makedirs: True
- mode: 640
- user: 931
- group: 939