mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
change how influx is patch and python3-influxdb is installed
This commit is contained in:
@@ -12,10 +12,7 @@
|
||||
|
||||
include:
|
||||
- salt.minion
|
||||
|
||||
python3-influxdb:
|
||||
pkg.installed:
|
||||
- name: python3-influxdb
|
||||
- salt.python3-influxdb
|
||||
|
||||
# Influx DB
|
||||
influxconfdir:
|
||||
@@ -77,7 +74,7 @@ telegraf_database:
|
||||
- influxdb_host: {{ MANAGER }}
|
||||
- require:
|
||||
- docker_container: so-influxdb
|
||||
- pkg: python3-influxdb
|
||||
- sls: salt.python3-influxdb
|
||||
|
||||
{% for rp in influxdb.retention_policies.keys() %}
|
||||
{{rp}}_retention_policy:
|
||||
@@ -96,7 +93,7 @@ telegraf_database:
|
||||
- docker_container: so-influxdb
|
||||
- influxdb_database: telegraf_database
|
||||
- file: influxdb_retention_policy.present_patch
|
||||
- pkg: python3-influxdb
|
||||
- sls: salt.python3-influxdb
|
||||
{% endfor %}
|
||||
|
||||
{% for dest_rp in influxdb.downsample.keys() %}
|
||||
@@ -113,7 +110,7 @@ so_downsample_cq:
|
||||
- docker_container: so-influxdb
|
||||
- influxdb_database: telegraf_database
|
||||
- file: influxdb_continuous_query.present_patch
|
||||
- pkg: python3-influxdb
|
||||
- sls: python3-influxdb
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -68,21 +68,3 @@ salt_minion_service:
|
||||
patch_pkg:
|
||||
pkg.installed:
|
||||
- name: patch
|
||||
|
||||
|
||||
#https://github.com/saltstack/salt/issues/59766
|
||||
influxdb_continuous_query.present_patch:
|
||||
file.patch:
|
||||
- name: /usr/lib/python3.6/site-packages/salt/states/influxdb_continuous_query.py
|
||||
- source: salt://salt/files/influxdb_continuous_query.py.patch
|
||||
|
||||
#https://github.com/saltstack/salt/issues/59761
|
||||
influxdb_retention_policy.present_patch:
|
||||
file.patch:
|
||||
- name: /usr/lib/python3.6/site-packages/salt/states/influxdb_retention_policy.py
|
||||
- source: salt://salt/files/influxdb_retention_policy.py.patch
|
||||
|
||||
influxdbmod.py_shard_duration_patch:
|
||||
file.patch:
|
||||
- name: /usr/lib/python3.6/site-packages/salt/modules/influxdbmod.py
|
||||
- source: salt://salt/files/influxdbmod.py.patch
|
||||
23
salt/salt/python3-influxdb.sls
Normal file
23
salt/salt/python3-influxdb.sls
Normal file
@@ -0,0 +1,23 @@
|
||||
python3_influxdb:
|
||||
pkg.installed:
|
||||
- name: python3-influxdb
|
||||
|
||||
#https://github.com/saltstack/salt/issues/59766
|
||||
influxdb_continuous_query.present_patch:
|
||||
file.patch:
|
||||
- name: /usr/lib/python3.6/site-packages/salt/states/influxdb_continuous_query.py
|
||||
- source: salt://salt/files/influxdb_continuous_query.py.patch
|
||||
- pkg: python3_influxdb
|
||||
|
||||
#https://github.com/saltstack/salt/issues/59761
|
||||
influxdb_retention_policy.present_patch:
|
||||
file.patch:
|
||||
- name: /usr/lib/python3.6/site-packages/salt/states/influxdb_retention_policy.py
|
||||
- source: salt://salt/files/influxdb_retention_policy.py.patch
|
||||
- pkg: python3_influxdb
|
||||
|
||||
influxdbmod.py_shard_duration_patch:
|
||||
file.patch:
|
||||
- name: /usr/lib/python3.6/site-packages/salt/modules/influxdbmod.py
|
||||
- source: salt://salt/files/influxdbmod.py.patch
|
||||
- pkg: python3_influxdb
|
||||
Reference in New Issue
Block a user