mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-16 22:12:48 +01:00
for for influx to be up so the reliant states dont fail
This commit is contained in:
@@ -63,6 +63,16 @@ append_so-influxdb_so-status.conf:
|
|||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
- text: so-influxdb
|
- text: so-influxdb
|
||||||
|
|
||||||
|
wait_for_influxdb:
|
||||||
|
http.query:
|
||||||
|
- name: 'https://{{MANAGER}}:8086/query?q=SHOW+DATABASES'
|
||||||
|
- ssl: True
|
||||||
|
- verify_ssl: False
|
||||||
|
- status: 200
|
||||||
|
- timeout: 30
|
||||||
|
- retry:
|
||||||
|
attempts: 5
|
||||||
|
interval: 60
|
||||||
|
|
||||||
telegraf_database:
|
telegraf_database:
|
||||||
influxdb_database.present:
|
influxdb_database.present:
|
||||||
@@ -75,10 +85,7 @@ telegraf_database:
|
|||||||
- require:
|
- require:
|
||||||
- docker_container: so-influxdb
|
- docker_container: so-influxdb
|
||||||
- sls: salt.python3-influxdb
|
- sls: salt.python3-influxdb
|
||||||
- timeout: 30
|
- http: wait_for_influxdb
|
||||||
- retry:
|
|
||||||
attempts: 5
|
|
||||||
interval: 30
|
|
||||||
|
|
||||||
{% for rp in influxdb.retention_policies.keys() %}
|
{% for rp in influxdb.retention_policies.keys() %}
|
||||||
{{rp}}_retention_policy:
|
{{rp}}_retention_policy:
|
||||||
|
|||||||
Reference in New Issue
Block a user