Skip to content

Commit ee6a792

Browse files
feat: add support crio additional mounts (#12561)
removed default since it's already set in variables fix pre commit issue in the pipeline
1 parent fbf957a commit ee6a792

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

roles/container-engine/cri-o/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,4 @@ crio_default_capabilities:
112112
- SETPCAP
113113
- NET_BIND_SERVICE
114114
- KILL
115+
crio_additional_mounts: []

roles/container-engine/cri-o/files/mounts.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

roles/container-engine/cri-o/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@
184184
notify: Restart crio
185185

186186
- name: Cri-o | copy mounts.conf
187-
copy:
188-
src: mounts.conf
187+
template:
188+
src: mounts.conf.j2
189189
dest: /etc/containers/mounts.conf
190190
mode: "0644"
191191
when:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/usr/share/rhel/secrets:/run/secrets
2+
{% for mount in crio_additional_mounts %}
3+
{{ mount }}
4+
{% endfor %}

0 commit comments

Comments
 (0)