Skip to content

Commit 39b416e

Browse files
fix(bf2): adding mounts for docker
Signed-off-by: mohamedasifs123 <142201466+mohamedasifs123@users.noreply.github.com>
1 parent d397e0e commit 39b416e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

ansible/monitoring.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,24 @@
4747
state: started
4848
name: spdk_tgt
4949

50+
- name: Nvidia | Set Docker socket has appropriate permissions
51+
ansible.builtin.file:
52+
path: /var/run/docker.sock
53+
mode: '0666'
54+
5055
- name: Nvidia | Add additional mount for bf2
5156
ansible.builtin.set_fact:
52-
telegraf_mounts: "{{ telegraf_mounts + [{'type': 'bind', 'source': '/run/emu_param', 'target': '/run/emu_param', 'read_only': true}] }}"
53-
57+
telegraf_mounts: "{{ telegraf_mounts + [
58+
{'type': 'bind',
59+
'source': '/run/emu_param',
60+
'target': '/run/emu_param',
61+
'read_only': true},
62+
{'type': 'bind',
63+
'source': '/var/run/docker.sock',
64+
'target': '/var/run/docker.sock',
65+
'read_only': false}
66+
] }}"
67+
5468
- name: Intel | telegraf otel monitoring
5569
when: inventory_hostname == 'mev'
5670
environment: "{{ proxy_env | default({}) }}"

0 commit comments

Comments
 (0)