Skip to content

Commit

Permalink
Merge pull request #7058 from kwoodson/crio_additional_mounts
Browse files Browse the repository at this point in the history
Adding ability to provide additional mounts to crio system container.
  • Loading branch information
Kenny Woodson authored Feb 9, 2018
2 parents 3ef7a20 + ecfffdb commit 7fb1a84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/container_runtime/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ l_insecure_crio_registries: "{{ '\"{}\"'.format('\", \"'.join(l2_docker_insecure
l_crio_registries: "{{ l2_docker_additional_registries + ['docker.io'] }}"
l_additional_crio_registries: "{{ '\"{}\"'.format('\", \"'.join(l_crio_registries)) }}"

# this is a list of dictionaries of mounts
# container_runtime_crio_additional_mounts:
# - destination: /test
# source: /var/test
# options:
# - rw
# - mode=755
container_runtime_crio_additional_mounts: []

l_crio_additional_mounts: "{{ ',' + (container_runtime_crio_additional_mounts | lib_utils_oo_l_of_d_to_csv) if container_runtime_crio_additional_mounts != [] else '' }}"

openshift_crio_image_tag_default: "latest"

Expand Down
2 changes: 2 additions & 0 deletions roles/container_runtime/tasks/systemcontainer_crio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
name: "cri-o"
image: "{{ l_crio_image }}"
state: latest
values:
- "ADDTL_MOUNTS={{ l_crio_additional_mounts }}"

- name: Remove CRI-O default configuration files
file:
Expand Down

0 comments on commit 7fb1a84

Please sign in to comment.