Targets¶
The target section is for target dependent files.
targets:
lxc:
create_message: <string>
config:
- type: <string>
before: <uint>
after: <uint>
content: <string>
- ...
lxd:
vm:
size: <uint>
filesystem: <string>
LXC¶
The create_message
field is a string which is displayed after new LXC container has been created.
This string is rendered using Pongo2 and can include various fields from the definition file, e.g. {{ image.description }}
.
config
is a list of container configuration options.
The type
must be all
, system
or user
.
The keys before
and after
are used for compatibility.
Currently, the maximum value for compatibility is 5.
If your desired compatibility level is 3 for example, you would use before: 4
and after: 2
.
content
describes the configuration which is to be written to the configuration file.
LXD¶
Valid keys are size
and filesystem
.
The former specifies the VM image size in bytes.
The latter specifies the root partition file system.
It currently supports ext4
and btrfs
.