mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-07-18 14:53:40 +02:00
Compare commits
1
Commits
kilo
...
ca-ssl-graceful
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c755c8bc61 |
@@ -64,5 +64,6 @@ pillar_roots:
|
||||
peer:
|
||||
.*:
|
||||
- x509.sign_remote_certificate
|
||||
- test.ping
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
{% set CA = {
|
||||
'server': pillar.ca.server
|
||||
}%}
|
||||
{# reachable_cmd: shell test used by the *.ssl cert states' onlyif to skip cert
|
||||
management gracefully when the CA minion is unreachable. Returns exit 0 when
|
||||
the CA answers a peer test.ping within 3s, non-zero otherwise. #}
|
||||
{% do CA.update({'reachable_cmd': "salt-call --out=json publish.publish '" ~ CA.server ~ "' test.ping timeout=3 2>/dev/null | grep -q true"}) %}
|
||||
|
||||
@@ -38,7 +38,8 @@ etc_elasticfleet_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/elasticfleet-server.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
@@ -94,7 +95,8 @@ etc_elasticfleet_agent_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/elasticfleet-agent.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
@@ -155,7 +157,8 @@ elasticfleet_kafka_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/elasticfleet-kafka.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
@@ -34,7 +34,8 @@ elasticsearch_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/elasticsearch.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
@@ -34,7 +34,8 @@ influxdb_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/influxdb.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
+6
-3
@@ -38,7 +38,8 @@ kafka_client_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/kafka-client.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
@@ -86,7 +87,8 @@ kafka_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/kafka.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
@@ -148,7 +150,8 @@ kafka_logstash_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/kafka-logstash.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
@@ -38,7 +38,8 @@ etc_elasticfleet_logstash_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/elasticfleet-logstash.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
@@ -99,7 +100,8 @@ etc_elasticfleetlumberjack_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/elasticfleet-lumberjack.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
@@ -168,7 +170,8 @@ etc_filebeat_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/filebeat.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
@@ -249,7 +252,8 @@ conf_filebeat_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /opt/so/conf/filebeat/etc/pki/filebeat.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
+2
-1
@@ -71,7 +71,8 @@ managerssl_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/managerssl.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
@@ -33,7 +33,8 @@ postgres_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/postgres.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
+2
-1
@@ -33,7 +33,8 @@ redis_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/redis.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
@@ -55,7 +55,8 @@ registry_crt:
|
||||
- backup: True
|
||||
- require:
|
||||
- file: registry_crt_cleanup
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/registry.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 15
|
||||
interval: 10
|
||||
|
||||
@@ -34,7 +34,8 @@ telegraf_crt:
|
||||
- days_remaining: 7
|
||||
- days_valid: 820
|
||||
- backup: True
|
||||
- timeout: 30
|
||||
- onlyif:
|
||||
- test ! -f /etc/pki/telegraf.crt || {{ CA.reachable_cmd }}
|
||||
- retry:
|
||||
attempts: 5
|
||||
interval: 30
|
||||
|
||||
Reference in New Issue
Block a user