mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
install influxdb python module add test retention policies
This commit is contained in:
@@ -57,6 +57,31 @@ 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
|
||||||
|
|
||||||
|
set_autogen_retention_policy:
|
||||||
|
influxdb_retention_policy.present:
|
||||||
|
- name: autogen
|
||||||
|
- database: telegraf
|
||||||
|
- duration: 1h
|
||||||
|
- replication: 1
|
||||||
|
- default: True
|
||||||
|
- ssl: True
|
||||||
|
- unsafeSsl: True
|
||||||
|
- require:
|
||||||
|
- docker_container: so-influxdb
|
||||||
|
|
||||||
|
set_so_long_term_retention_policy:
|
||||||
|
influxdb_retention_policy.present:
|
||||||
|
- name: so_long_term
|
||||||
|
- database: telegraf
|
||||||
|
- duration: 2h
|
||||||
|
- replication: 1
|
||||||
|
- default: False
|
||||||
|
- ssl: True
|
||||||
|
- unsafeSsl: True
|
||||||
|
- require:
|
||||||
|
- docker_container: so-influxdb
|
||||||
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -66,3 +91,10 @@ append_so-influxdb_so-status.conf:
|
|||||||
- name: {{sls}}_state_not_allowed
|
- name: {{sls}}_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
#influxdb:
|
||||||
|
# retention_policies:
|
||||||
|
# autogen:
|
||||||
|
# duration: 1h
|
||||||
|
# so_long_term:
|
||||||
|
# duration: 2h
|
||||||
@@ -2022,6 +2022,7 @@ saltify() {
|
|||||||
set_progress_str 7 'Installing salt-master'
|
set_progress_str 7 'Installing salt-master'
|
||||||
retry 50 10 "apt-get -y install salt-master=3002.5+ds-1" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-get -y install salt-master=3002.5+ds-1" >> "$setup_log" 2>&1 || exit 1
|
||||||
retry 50 10 "apt-mark hold salt-master" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-mark hold salt-master" >> "$setup_log" 2>&1 || exit 1
|
||||||
|
retry 50 10 "pip3 install --user influxdb" >> "$setup_log" 2>&1 || exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Copy down the gpg keys and install them from the manager
|
# Copy down the gpg keys and install them from the manager
|
||||||
@@ -2041,7 +2042,7 @@ saltify() {
|
|||||||
retry 50 10 "apt-get -y install salt-minion=3002.5+ds-1 salt-common=3002.5+ds-1" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-get -y install salt-minion=3002.5+ds-1 salt-common=3002.5+ds-1" >> "$setup_log" 2>&1 || exit 1
|
||||||
retry 50 10 "apt-mark hold salt-minion salt-common" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-mark hold salt-minion salt-common" >> "$setup_log" 2>&1 || exit 1
|
||||||
if [[ $OSVER != 'xenial' ]]; then
|
if [[ $OSVER != 'xenial' ]]; then
|
||||||
retry 50 10 "apt-get -y install python3-pip python3-dateutil python3-m2crypto python3-mysqldb" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-get -y install python3-pip python3-dateutil python3-m2crypto python3-mysqldb python3-influxdb" >> "$setup_log" 2>&1 || exit 1
|
||||||
else
|
else
|
||||||
retry 50 10 "apt-get -y install python-pip python-dateutil python-m2crypto python-mysqldb" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-get -y install python-pip python-dateutil python-m2crypto python-mysqldb" >> "$setup_log" 2>&1 || exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user