mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
change how influx is patch and python3-influxdb is installed
This commit is contained in:
@@ -12,10 +12,7 @@
|
|||||||
|
|
||||||
include:
|
include:
|
||||||
- salt.minion
|
- salt.minion
|
||||||
|
- salt.python3-influxdb
|
||||||
python3-influxdb:
|
|
||||||
pkg.installed:
|
|
||||||
- name: python3-influxdb
|
|
||||||
|
|
||||||
# Influx DB
|
# Influx DB
|
||||||
influxconfdir:
|
influxconfdir:
|
||||||
@@ -77,7 +74,7 @@ telegraf_database:
|
|||||||
- influxdb_host: {{ MANAGER }}
|
- influxdb_host: {{ MANAGER }}
|
||||||
- require:
|
- require:
|
||||||
- docker_container: so-influxdb
|
- docker_container: so-influxdb
|
||||||
- pkg: python3-influxdb
|
- sls: salt.python3-influxdb
|
||||||
|
|
||||||
{% for rp in influxdb.retention_policies.keys() %}
|
{% for rp in influxdb.retention_policies.keys() %}
|
||||||
{{rp}}_retention_policy:
|
{{rp}}_retention_policy:
|
||||||
@@ -96,7 +93,7 @@ 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
|
- sls: salt.python3-influxdb
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for dest_rp in influxdb.downsample.keys() %}
|
{% for dest_rp in influxdb.downsample.keys() %}
|
||||||
@@ -113,7 +110,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
|
- sls: python3-influxdb
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -67,22 +67,4 @@ salt_minion_service:
|
|||||||
|
|
||||||
patch_pkg:
|
patch_pkg:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: patch
|
- 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