Skip to content

Commit

Permalink
Add a new crio_root variable in order to store CRI-O data on somethin…
Browse files Browse the repository at this point in the history
…g else than /var/lib (#11692)
  • Loading branch information
toliger authored Nov 7, 2024
1 parent b7c1d68 commit 4e58413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions roles/container-engine/cri-o/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ crio_stream_port: "10010"

crio_required_version: "{{ kube_version | regex_replace('^v(?P<major>\\d+).(?P<minor>\\d+).(?P<patch>\\d+)$', '\\g<major>.\\g<minor>') }}"

crio_root: "/var/lib/containers/storage"

# The crio_runtimes variable defines a list of OCI compatible runtimes.
crio_runtimes:
- name: crun
Expand Down
2 changes: 1 addition & 1 deletion roles/container-engine/cri-o/templates/crio.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Path to the "root directory". CRI-O stores all of its data, including
# containers images, in this directory.
root = "/var/lib/containers/storage"
root = "{{ crio_root }}"

# Path to the "run directory". CRI-O stores all of its state in this directory.
# Read from /etc/containers/storage.conf first so unnecessary here
Expand Down

0 comments on commit 4e58413

Please sign in to comment.