mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
feat: add support crio additional mounts (#12561)
removed default since it's already set in variables fix pre commit issue in the pipeline
This commit is contained in:
@@ -112,3 +112,4 @@ crio_default_capabilities:
|
|||||||
- SETPCAP
|
- SETPCAP
|
||||||
- NET_BIND_SERVICE
|
- NET_BIND_SERVICE
|
||||||
- KILL
|
- KILL
|
||||||
|
crio_additional_mounts: []
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
/usr/share/rhel/secrets:/run/secrets
|
|
||||||
@@ -184,8 +184,8 @@
|
|||||||
notify: Restart crio
|
notify: Restart crio
|
||||||
|
|
||||||
- name: Cri-o | copy mounts.conf
|
- name: Cri-o | copy mounts.conf
|
||||||
copy:
|
template:
|
||||||
src: mounts.conf
|
src: mounts.conf.j2
|
||||||
dest: /etc/containers/mounts.conf
|
dest: /etc/containers/mounts.conf
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
when:
|
when:
|
||||||
|
|||||||
4
roles/container-engine/cri-o/templates/mounts.conf.j2
Normal file
4
roles/container-engine/cri-o/templates/mounts.conf.j2
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
/usr/share/rhel/secrets:/run/secrets
|
||||||
|
{% for mount in crio_additional_mounts %}
|
||||||
|
{{ mount }}
|
||||||
|
{% endfor %}
|
||||||
Reference in New Issue
Block a user