mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
influx and grafana default for manager nodes - https://github.com/Security-Onion-Solutions/securityonion/issues/4207
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
{% set GRAFANA_SETTINGS = salt['grains.filter_by'](default_settings, default='grafana', merge=salt['pillar.get']('grafana', {})) %}
|
{% set GRAFANA_SETTINGS = salt['grains.filter_by'](default_settings, default='grafana', merge=salt['pillar.get']('grafana', {})) %}
|
||||||
|
|
||||||
|
|
||||||
{% if grains['role'] in ['so-manager', 'so-managersearch', 'so-eval', 'so-standalone'] and GRAFANA == 1 %}
|
{% if grains['role'] in ['so-manager', 'so-managersearch', 'so-standalone'] or (grains.role == 'so-eval' and GRAFANA == 1) %}
|
||||||
|
|
||||||
# Grafana all the things
|
# Grafana all the things
|
||||||
grafanadir:
|
grafanadir:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
{% set VERSION = salt['pillar.get']('global:soversion', 'HH1.2.2') %}
|
{% set VERSION = salt['pillar.get']('global:soversion', 'HH1.2.2') %}
|
||||||
{% set IMAGEREPO = salt['pillar.get']('global:imagerepo') %}
|
{% set IMAGEREPO = salt['pillar.get']('global:imagerepo') %}
|
||||||
|
|
||||||
{% if grains['role'] in ['so-manager', 'so-managersearch', 'so-eval', 'so-standalone'] and GRAFANA == 1 %}
|
{% if grains['role'] in ['so-manager', 'so-managersearch', 'so-standalone'] or (grains.role == 'so-eval' and GRAFANA == 1) %}
|
||||||
|
|
||||||
# Influx DB
|
# Influx DB
|
||||||
influxconfdir:
|
influxconfdir:
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
"verifyCert": false
|
"verifyCert": false
|
||||||
},
|
},
|
||||||
"influxdb": {
|
"influxdb": {
|
||||||
{%- if grains['role'] in ['so-import'] %}
|
{%- if grains['role'] in ['so-import'] or GRAFANA == 0 %}
|
||||||
"hostUrl": "",
|
"hostUrl": "",
|
||||||
{%- else %}
|
{%- else %}
|
||||||
"hostUrl": "https://{{ MANAGERIP }}:8086",
|
"hostUrl": "https://{{ MANAGERIP }}:8086",
|
||||||
|
|||||||
@@ -408,6 +408,7 @@ whiptail_enable_components() {
|
|||||||
PLAYBOOK=0
|
PLAYBOOK=0
|
||||||
STRELKA=0
|
STRELKA=0
|
||||||
|
|
||||||
|
if [[ $is_eval ]]; then
|
||||||
COMPONENTS=$(whiptail --title "Security Onion Setup" --checklist \
|
COMPONENTS=$(whiptail --title "Security Onion Setup" --checklist \
|
||||||
"Select Components to install:" 20 75 8 \
|
"Select Components to install:" 20 75 8 \
|
||||||
GRAFANA "Enable Grafana for system monitoring" ON \
|
GRAFANA "Enable Grafana for system monitoring" ON \
|
||||||
@@ -416,6 +417,17 @@ whiptail_enable_components() {
|
|||||||
THEHIVE "Enable TheHive" ON \
|
THEHIVE "Enable TheHive" ON \
|
||||||
PLAYBOOK "Enable Playbook" ON \
|
PLAYBOOK "Enable Playbook" ON \
|
||||||
STRELKA "Enable Strelka" ON 3>&1 1>&2 2>&3)
|
STRELKA "Enable Strelka" ON 3>&1 1>&2 2>&3)
|
||||||
|
else
|
||||||
|
COMPONENTS=$(whiptail --title "Security Onion Setup" --checklist \
|
||||||
|
"Select Components to install:" 20 75 7 \
|
||||||
|
OSQUERY "Enable Fleet with osquery" ON \
|
||||||
|
WAZUH "Enable Wazuh" ON \
|
||||||
|
THEHIVE "Enable TheHive" ON \
|
||||||
|
PLAYBOOK "Enable Playbook" ON \
|
||||||
|
STRELKA "Enable Strelka" ON 3>&1 1>&2 2>&3)
|
||||||
|
export "GRAFANA=1"
|
||||||
|
fi
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user