From 382cdcaa335a453513f189505fa65adf35dcd68e Mon Sep 17 00:00:00 2001 From: Romain Dartigues Date: Sat, 10 Feb 2024 20:52:44 +0100 Subject: [PATCH] introduce Clear Linux OS to the __docker type --- cdist/conf/type/__docker/manifest | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cdist/conf/type/__docker/manifest b/cdist/conf/type/__docker/manifest index 6a57d85a..1132f03c 100755 --- a/cdist/conf/type/__docker/manifest +++ b/cdist/conf/type/__docker/manifest @@ -44,6 +44,21 @@ case "$os" in exit 1 fi ;; + clear-linux-os) + if [ "${state}" = present ] + then + if [ "$version" != latest ] + then + >&2 echo "Specifying Docker version is unsupported with \"$os\"" + exit 1 + fi + __package_swupd cloud-control + else + >&2 echo 'Warning: cowardly refusing to remove "cloud-control", disabling Dockerd instead' + __systemd_service docker --state stopped + __systemd_unit docker --enablement-state disabled + fi + ;; ubuntu|debian) if [ "${state}" = "present" ]; then __package apt-transport-https