mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
map file into container
This commit is contained in:
@@ -839,7 +839,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if grains.role in ['so-manager', 'so-managersearch', 'so-standalone', 'so-eval'] %}
|
{% if grains.role in ['so-manager', 'so-managersearch', 'so-standalone', 'so-eval'] %}
|
||||||
[[inputs.file]]
|
[[inputs.file]]
|
||||||
files = ["/host/opt/so/conf/telegraf/nodes_config.json"]
|
files = ["/etc/telegraf/nodes_config.json"]
|
||||||
name_override = "nodes_config"
|
name_override = "nodes_config"
|
||||||
data_format = "json"
|
data_format = "json"
|
||||||
interval = "5m"
|
interval = "5m"
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ so-telegraf:
|
|||||||
- binds:
|
- binds:
|
||||||
- /opt/so/log/telegraf:/var/log/telegraf:rw
|
- /opt/so/log/telegraf:/var/log/telegraf:rw
|
||||||
- /opt/so/conf/telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
- /opt/so/conf/telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
||||||
|
{% if grains.role in ['so-manager', 'so-managersearch', 'so-standalone', 'so-eval'] %}
|
||||||
|
- /opt/so/conf/telegraf/nodes_config.json:/etc/telegraf/nodes_config.json:ro
|
||||||
|
{% endif %}
|
||||||
- /var/run/utmp:/var/run/utmp:ro
|
- /var/run/utmp:/var/run/utmp:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- /:/host/root:ro
|
- /:/host/root:ro
|
||||||
|
|||||||
Reference in New Issue
Block a user