mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
install python3-influxdb and create requires
This commit is contained in:
@@ -13,6 +13,10 @@
|
|||||||
include:
|
include:
|
||||||
- salt.minion
|
- salt.minion
|
||||||
|
|
||||||
|
python3-influxdb:
|
||||||
|
pkg.installed:
|
||||||
|
- name: python3-influxdb
|
||||||
|
|
||||||
# Influx DB
|
# Influx DB
|
||||||
influxconfdir:
|
influxconfdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
@@ -62,6 +66,7 @@ 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
|
||||||
|
|
||||||
|
|
||||||
telegraf_database:
|
telegraf_database:
|
||||||
influxdb_database.present:
|
influxdb_database.present:
|
||||||
- name: telegraf
|
- name: telegraf
|
||||||
@@ -72,6 +77,7 @@ telegraf_database:
|
|||||||
- influxdb_host: {{ MANAGER }}
|
- influxdb_host: {{ MANAGER }}
|
||||||
- require:
|
- require:
|
||||||
- docker_container: so-influxdb
|
- docker_container: so-influxdb
|
||||||
|
- pkg: python3-influxdb
|
||||||
|
|
||||||
{% for rp in influxdb.retention_policies.keys() %}
|
{% for rp in influxdb.retention_policies.keys() %}
|
||||||
{{rp}}_retention_policy:
|
{{rp}}_retention_policy:
|
||||||
@@ -90,28 +96,9 @@ telegraf_database:
|
|||||||
- docker_container: so-influxdb
|
- docker_container: so-influxdb
|
||||||
- influxdb_database: telegraf_database
|
- influxdb_database: telegraf_database
|
||||||
- file: influxdb_retention_policy.present_patch
|
- file: influxdb_retention_policy.present_patch
|
||||||
|
- pkg: python3-influxdb
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{#
|
|
||||||
{% for dest_rp in influxdb.downsample.keys() %}
|
|
||||||
{% for measurement in influxdb.downsample[dest_rp].measurements %}
|
|
||||||
so_downsample_{{measurement}}_cq:
|
|
||||||
influxdb_continuous_query.present:
|
|
||||||
- name: so_downsample_{{measurement}}_cq
|
|
||||||
- database: telegraf
|
|
||||||
- query: SELECT mean(*) INTO "{{dest_rp}}".:MEASUREMENT FROM "{{measurement}}" GROUP BY time({{influxdb.downsample[dest_rp].resolution}}), *
|
|
||||||
- ssl: True
|
|
||||||
- verify_ssl: /etc/pki/ca.crt
|
|
||||||
- cert: ['/etc/pki/influxdb.crt', '/etc/pki/influxdb.key']
|
|
||||||
- influxdb_host: {{ MANAGER }}
|
|
||||||
- require:
|
|
||||||
- docker_container: so-influxdb
|
|
||||||
- influxdb_database: telegraf_database
|
|
||||||
- file: influxdb_continuous_query.present_patch
|
|
||||||
{% endfor %}
|
|
||||||
{% endfor %}
|
|
||||||
#}
|
|
||||||
|
|
||||||
{% for dest_rp in influxdb.downsample.keys() %}
|
{% for dest_rp in influxdb.downsample.keys() %}
|
||||||
so_downsample_cq:
|
so_downsample_cq:
|
||||||
influxdb_continuous_query.present:
|
influxdb_continuous_query.present:
|
||||||
@@ -126,6 +113,7 @@ so_downsample_cq:
|
|||||||
- docker_container: so-influxdb
|
- docker_container: so-influxdb
|
||||||
- influxdb_database: telegraf_database
|
- influxdb_database: telegraf_database
|
||||||
- file: influxdb_continuous_query.present_patch
|
- file: influxdb_continuous_query.present_patch
|
||||||
|
- pkg: python3-influxdb
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user