]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/distros/container-hosts: add 8.stream + crun
authorSage Weil <sage@newdream.net>
Tue, 16 Nov 2021 15:49:35 +0000 (09:49 -0600)
committerSage Weil <sage@newdream.net>
Tue, 16 Nov 2021 15:58:32 +0000 (09:58 -0600)
Signed-off-by: Sage Weil <sage@newdream.net>
qa/distros/container-hosts/centos_8.stream_container_tools_crun.yaml [new file with mode: 0644]

diff --git a/qa/distros/container-hosts/centos_8.stream_container_tools_crun.yaml b/qa/distros/container-hosts/centos_8.stream_container_tools_crun.yaml
new file mode 100644 (file)
index 0000000..e50003c
--- /dev/null
@@ -0,0 +1,16 @@
+os_type: centos
+os_version: "8.stream"
+overrides:
+  selinux:
+    whitelist:
+      - scontext=system_u:system_r:logrotate_t:s0
+
+tasks:
+- pexec:
+    all:
+    - sudo cp /etc/containers/registries.conf /etc/containers/registries.conf.backup
+    - sudo dnf -y  module reset container-tools
+    - sudo dnf -y  module install container-tools
+    - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf
+    - sudo sed -i 's/runtime = "runc"/#runtime = "runc"/g' /usr/share/containers/containers.conf
+    - sudo sed -i 's/#runtime = "crun"/runtime = "crun"/g' /usr/share/containers/containers.conf