diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-21 01:46:02 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-15 19:50:00 +0000 |
commit | 79d9c4f999bc4dc16101686689afd63337ccca46 (patch) | |
tree | bc737944269019c75a4497b7bf37c5a40bd2b497 | |
parent | 5141d3f3f995e950a6a1689fabafc9b515d84749 (diff) | |
download | meta-virtualization-79d9c4f999bc4dc16101686689afd63337ccca46.tar.gz |
conf: add CONTAINER and VIRTUALIZATION PROFILE defaults
These are used to set configuration for container and virtualization
stacks. We set a default to ensure that sane values are always
present.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | conf/layer.conf | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/conf/layer.conf b/conf/layer.conf index 1f5ad89c..fc35ce40 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
@@ -43,6 +43,11 @@ PREFERRED_PROVIDER_virtual/runc ?= "runc-opencontainers" | |||
43 | PREFERRED_PROVIDER_virtual/containerd ?= "containerd" | 43 | PREFERRED_PROVIDER_virtual/containerd ?= "containerd" |
44 | PREFERRED_PROVIDER_virtual/docker ?= "docker-moby" | 44 | PREFERRED_PROVIDER_virtual/docker ?= "docker-moby" |
45 | 45 | ||
46 | # profile can be: docker, podman, containerd, k3s, k8s, runc | ||
47 | CONTAINER_PROFILE ?= "default" | ||
48 | # virt profile can be: kvm, xen, runx | ||
49 | VIRTUALIZATION_PROFILE ?= "default" | ||
50 | |||
46 | # Sanity check for meta-virtualization layer. | 51 | # Sanity check for meta-virtualization layer. |
47 | # Setting SKIP_META_VIRT_SANITY_CHECK to "1" would skip the bbappend files check. | 52 | # Setting SKIP_META_VIRT_SANITY_CHECK to "1" would skip the bbappend files check. |
48 | INHERIT += "sanity-meta-virt" | 53 | INHERIT += "sanity-meta-virt" |
@@ -52,7 +57,7 @@ INHERIT += "sanity-meta-virt" | |||
52 | # layer.conf load time, we delay using a special bbclass that simply includes | 57 | # layer.conf load time, we delay using a special bbclass that simply includes |
53 | # the META_VIRT_CONFIG_PATH file, and likewise for the Xen and k8s configs | 58 | # the META_VIRT_CONFIG_PATH file, and likewise for the Xen and k8s configs |
54 | META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc" | 59 | META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc" |
55 | META_VIRT_CONTAINER_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-container.inc" | 60 | META_VIRT_CONTAINER_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-container-${CONTAINER_PROFILE}.inc" |
56 | META_VIRT_XEN_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-xen.inc" | 61 | META_VIRT_XEN_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-xen.inc" |
57 | K8S_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/k8s-versions.inc" | 62 | K8S_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/k8s-versions.inc" |
58 | USER_CLASSES:append = " meta-virt-cfg" | 63 | USER_CLASSES:append = " meta-virt-cfg" |