目标

目标部分用于目标相关文件。

targets:
    lxc:
        create_message: <string>
        config:
            - type: <string>
              before: <uint>
              after: <uint>
              content: <string>
            - ...
    incus:
        vm:
            size: <uint>
            filesystem: <string>

LXC

create_message 字段是一个字符串,在创建新的 LXC 容器后显示。此字符串使用 Pongo2 渲染,可以包含来自定义文件中的各种字段,例如 {{ image.description }}

config 是一个容器配置选项列表。该 type 必须是 allsystemuser

beforeafter 用于兼容性。目前,兼容性的最大值为 5。例如,如果您希望兼容性级别为 3,则可以使用 before: 4after: 2

content 描述了要写入配置文件的配置。

Incus

有效键是 sizefilesystem。前者以字节为单位指定 VM 镜像大小。后者指定根分区文件系统。它目前支持 ext4btrfs