mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Specify Influxdb host
This commit is contained in:
@@ -9,7 +9,7 @@ datasources:
|
|||||||
type: influxdb
|
type: influxdb
|
||||||
access: proxy
|
access: proxy
|
||||||
database: telegraf
|
database: telegraf
|
||||||
url: https://{{ GLOBALS.manager_ip }}:8086
|
url: https://{{ GLOBALS.influxdb_host }}:8086
|
||||||
jsonData:
|
jsonData:
|
||||||
tlsAuth: false
|
tlsAuth: false
|
||||||
tlsAuthWithCACert: false
|
tlsAuthWithCACert: false
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
{% do SOCDEFAULTS.soc.server.modules.elastic.update({'username': GLOBALS.elasticsearch.auth.users.so_elastic_user.user, 'password': GLOBALS.elasticsearch.auth.users.so_elastic_user.pass}) %}
|
{% do SOCDEFAULTS.soc.server.modules.elastic.update({'username': GLOBALS.elasticsearch.auth.users.so_elastic_user.user, 'password': GLOBALS.elasticsearch.auth.users.so_elastic_user.pass}) %}
|
||||||
|
|
||||||
{% if GLOBALS.role != 'so-import' %}
|
{% if GLOBALS.role != 'so-import' %}
|
||||||
{% do SOCDEFAULTS.soc.server.modules.influxdb.update({'hostUrl': 'https://' ~ GLOBALS.manager_ip ~ ':8086'}) %}
|
{% do SOCDEFAULTS.soc.server.modules.influxdb.update({'hostUrl': 'https://' ~ GLOBALS.influxdb_host ~ ':8086'}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% do SOCDEFAULTS.soc.server.modules.statickeyauth.update({'anonymousCidr': GLOBALS.docker_range, 'apiKey': pillar.sensoroni.sensoronikey}) %}
|
{% do SOCDEFAULTS.soc.server.modules.statickeyauth.update({'anonymousCidr': GLOBALS.docker_range, 'apiKey': pillar.sensoroni.sensoronikey}) %}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Telegraf Configuration
|
# Telegraf Configuration
|
||||||
{%- set MANAGER = GLOBALS.manager %}
|
{%- set INFLUXDBHOST = GLOBALS.influxdb_host %}
|
||||||
{%- set ES_USER = salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:user', '') %}
|
{%- set ES_USER = salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:user', '') %}
|
||||||
{%- set ES_PASS = salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:pass', '') %}
|
{%- set ES_PASS = salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:pass', '') %}
|
||||||
{%- set NODEIP = GLOBALS.node_ip %}
|
{%- set NODEIP = GLOBALS.node_ip %}
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
# Configuration for sending metrics to InfluxDB
|
# Configuration for sending metrics to InfluxDB
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb]]
|
||||||
urls = ["https://{{ MANAGER }}:8086"]
|
urls = ["https://{{ INFLUXDBHOST }}:8086"]
|
||||||
|
|
||||||
## Optional TLS Config for use on HTTP connections.
|
## Optional TLS Config for use on HTTP connections.
|
||||||
tls_ca = "/etc/telegraf/ca.crt"
|
tls_ca = "/etc/telegraf/ca.crt"
|
||||||
|
|||||||
@@ -1431,6 +1431,7 @@ create_global() {
|
|||||||
echo " imagerepo: '$IMAGEREPO'" >> $global_pillar_file
|
echo " imagerepo: '$IMAGEREPO'" >> $global_pillar_file
|
||||||
echo " pipeline: 'redis'" >> $global_pillar_file
|
echo " pipeline: 'redis'" >> $global_pillar_file
|
||||||
echo " repo_host: '$HOSTNAME'" >> $global_pillar_file
|
echo " repo_host: '$HOSTNAME'" >> $global_pillar_file
|
||||||
|
echo " influxdb_host: '$HOSTNAME'" >> $global_pillar_file
|
||||||
echo " registry_host: '$HOSTNAME'" >> $global_pillar_file
|
echo " registry_host: '$HOSTNAME'" >> $global_pillar_file
|
||||||
echo " endgamehost: '$ENDGAMEHOST'" >> $global_pillar_file
|
echo " endgamehost: '$ENDGAMEHOST'" >> $global_pillar_file
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user