mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Merge pull request #7451 from Security-Onion-Solutions/fix/docker-apparmor
Update init.sls to avoid telegraf apparmor issues
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
include:
|
include:
|
||||||
- ssl
|
- ssl
|
||||||
|
|
||||||
# Add Telegraf to monitor all the things.
|
# add Telegraf to monitor all the things
|
||||||
tgraflogdir:
|
tgraflogdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/log/telegraf
|
- name: /opt/so/log/telegraf
|
||||||
@@ -47,7 +47,7 @@ tgrafconf:
|
|||||||
- show_changes: False
|
- show_changes: False
|
||||||
|
|
||||||
# this file will be read by telegraf to send node details (management interface, monitor interface, etc)
|
# this file will be read by telegraf to send node details (management interface, monitor interface, etc)
|
||||||
# into influx so that grafan can build dashboards using queries
|
# into influx so that Grafana can build dashboards using queries
|
||||||
node_config:
|
node_config:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /opt/so/conf/telegraf/node_config.json
|
- name: /opt/so/conf/telegraf/node_config.json
|
||||||
@@ -57,6 +57,7 @@ node_config:
|
|||||||
so-telegraf:
|
so-telegraf:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-telegraf:{{ VERSION }}
|
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-telegraf:{{ VERSION }}
|
||||||
|
- security_opt: apparmor:unconfined
|
||||||
- environment:
|
- environment:
|
||||||
- HOST_PROC=/host/proc
|
- HOST_PROC=/host/proc
|
||||||
- HOST_ETC=/host/etc
|
- HOST_ETC=/host/etc
|
||||||
|
|||||||
Reference in New Issue
Block a user