damex.incus.incus_profiles role – Ensure Incus profiles.
Note
This role is part of the damex.incus collection (version 1.6.1).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: ansible-galaxy collection install damex.incus.
To use it in a playbook, specify: damex.incus.incus_profiles.
Entry point main – Ensure Incus profiles.
Synopsis
Ensure Incus profiles.
Parameters
Parameter |
Comments |
|---|---|
List of Incus profiles to ensure. |
|
Profile configuration key-value pairs. |
|
Use instance NIC names and MTU for default interfaces. Choices:
|
|
Whether to restart the instance on unexpected stop. Choices:
|
|
Whether to start the instance on daemon startup. Choices:
|
|
Seconds to wait after the instance started. |
|
Instance startup priority, higher starts first. |
|
Action to perform on host shutdown. |
|
Seconds to wait for graceful shutdown on host stop. |
|
Instance shutdown priority, higher stops first. |
|
Cloud-init network configuration. |
|
Bond device configurations. |
|
Static addresses in CIDR notation. |
|
Whether to enable DHCPv4. Choices:
|
|
Member interfaces for the bond. |
|
Bond device name. |
|
DNS resolver configuration. |
|
List of DNS server addresses. |
|
Bond-specific parameters. |
|
MII monitoring interval in milliseconds. |
|
Bonding mode. |
|
Static routes for the device. |
|
Destination network in CIDR notation. |
|
Gateway address for the route. |
|
Bridge device configurations. |
|
Static addresses in CIDR notation. |
|
Whether to enable DHCPv4. Choices:
|
|
Member interfaces for the bridge. |
|
Bridge device name. |
|
DNS resolver configuration. |
|
List of DNS server addresses. |
|
Bridge-specific parameters. |
|
Forwarding delay in seconds. |
|
Whether to enable Spanning Tree Protocol. Choices:
|
|
Static routes for the device. |
|
Destination network in CIDR notation. |
|
Gateway address for the route. |
|
Ethernet device configurations. |
|
Static addresses in CIDR notation. |
|
Whether to enable DHCPv4. Choices:
|
|
Device match criteria. |
|
Kernel driver name to match. |
|
Ethernet device name. |
|
DNS resolver configuration. |
|
List of DNS server addresses. |
|
Static routes for the device. |
|
Destination network in CIDR notation. |
|
Gateway address for the route. |
|
Network renderer backend. |
|
Network config format version. |
|
VLAN device configurations. |
|
Static addresses in CIDR notation. |
|
Whether to enable DHCPv4. Choices:
|
|
VLAN ID. |
|
Parent device for the VLAN. |
|
VLAN device name. |
|
DNS resolver configuration. |
|
List of DNS server addresses. |
|
Static routes for the device. |
|
Destination network in CIDR notation. |
|
Gateway address for the route. |
|
Cloud-init user data configuration. |
|
Commands to run early in the boot process. |
|
Password change settings. |
|
Whether to expire the password after first login. Choices:
|
|
Whether to upgrade packages on first boot. Choices:
|
|
Packages to install on first boot. |
|
Password for the default user. |
|
Power state change after cloud-init completes. |
|
Power state action. Choices:
|
|
Commands to run after cloud-init completes. |
|
Whether to enable SSH password authentication. Choices:
|
|
Default user name to create. |
|
Files to write on first boot. |
|
Content to write to the file. |
|
Owner and group in user:group format. |
|
Absolute path of the file to write. |
|
File permissions in octal notation. |
|
Cloud-init vendor data configuration. |
|
Commands to run early in the boot process. |
|
Password change settings. |
|
Whether to expire the password after first login. Choices:
|
|
Whether to upgrade packages on first boot. Choices:
|
|
Packages to install on first boot. |
|
Password for the default user. |
|
Power state change after cloud-init completes. |
|
Power state action. Choices:
|
|
Commands to run after cloud-init completes. |
|
Whether to enable SSH password authentication. Choices:
|
|
Default user name to create. |
|
Files to write on first boot. |
|
Content to write to the file. |
|
Owner and group in user:group format. |
|
Absolute path of the file to write. |
|
File permissions in octal notation. |
|
Action to perform on cluster member evacuation. Choices:
|
|
Number or range of CPUs to expose. |
|
CPU time allowance as percentage or fixed rate. |
|
NUMA nodes to place the instance on. |
|
CPU scheduling priority compared to other instances. |
|
I/O request priority when under load (0-10). |
|
Limit for 1GB hugepages. |
|
Limit for 1MB hugepages. |
|
Limit for 2MB hugepages. |
|
Limit for 64KB hugepages. |
|
Percentage of host memory or fixed value in bytes. |
|
Memory limit enforcement mode. |
|
Whether to allow memory hotplug. |
|
Whether to back instance memory with hugepages. Choices:
|
|
OOM killer priority compared to other instances. |
|
Whether to enable swap for the instance. |
|
Swap usage priority compared to other instances. |
|
Network traffic priority compared to other instances. |
|
Maximum number of processes in the instance. |
|
Comma-separated list of kernel modules to load. |
|
Whether to use incremental memory transfer. Choices:
|
|
Target percentage of dirty memory for completion. |
|
Maximum number of incremental memory transfer rounds. |
|
Allow stateful stop/start and snapshots. Choices:
|
|
NVIDIA driver capabilities to expose. |
|
Required CUDA version expression. |
|
Required NVIDIA driver version expression. |
|
Pass NVIDIA runtime libraries into the container. Choices:
|
|
Working directory for OCI containers. |
|
Entrypoint override for OCI containers. |
|
GID to run OCI container process as. |
|
UID to run OCI container process as. |
|
Raw AppArmor profile entries to append. |
|
Raw UID/GID mapping configuration. |
|
Raw LXC configuration to append. |
|
Raw QEMU command-line arguments to append. |
|
Raw QEMU configuration file overrides. |
|
QMP commands to run early in QEMU startup. |
|
QMP commands to run after instance start. |
|
QMP commands to run before instance start. |
|
Scriptlet to run during QEMU startup. |
|
Raw seccomp profile to apply. |
|
Whether the guest agent exposes metrics. Choices:
|
|
BPF attach types to delegate to the instance. |
|
BPF commands to delegate to the instance. |
|
BPF map types to delegate to the instance. |
|
BPF program types to delegate to the instance. |
|
Path at which to mount the BPF filesystem. |
|
Whether to enable Compatibility Support Module for VMs. Choices:
|
|
Whether to enable the guest API. Choices:
|
|
Whether to allow image access via the guest API. Choices:
|
|
Base host ID for the instance UID/GID map. |
|
Whether to use a unique ID map for the instance. Choices:
|
|
Size of the UID/GID range to allocate. |
|
Whether to enable IOMMU for the instance. Choices:
|
|
Allow running Incus inside the instance. Choices:
|
|
Whether to run the instance in privileged mode. Choices:
|
|
Whether to prevent deletion of the instance. Choices:
|
|
Whether to prevent UID/GID shifting. Choices:
|
|
Whether to enable UEFI Secure Boot. Choices:
|
|
Whether to enable AMD SEV encryption. Choices:
|
|
Whether to enable SEV-ES (Encrypted State). Choices:
|
|
SEV session data blob in base64. |
|
SEV guest Diffie-Hellman key in base64. |
|
Allowlist of syscalls to permit. |
|
List of syscalls to deny. |
|
Whether to block compat syscalls for x86 on x86_64. Choices:
|
|
Whether to enable default syscall deny list. Choices:
|
|
Whether to intercept bpf syscalls. Choices:
|
|
Whether to allow device map types in intercepted bpf. Choices:
|
|
Whether to intercept mknod syscalls. Choices:
|
|
Whether to intercept mount syscalls. Choices:
|
|
Filesystems allowed for intercepted mount calls. |
|
FUSE handler for intercepted mount calls. |
|
Whether to enable UID/GID shifting for intercepted mounts. Choices:
|
|
Whether to intercept sched_setscheduler syscalls. Choices:
|
|
Whether to intercept setxattr syscalls. Choices:
|
|
Whether to intercept sysinfo syscalls. Choices:
|
|
Expiry time for automatic snapshots. |
|
Expiry time for manual snapshots. |
|
Naming pattern for automatic snapshots. |
|
Cron expression for automatic snapshots. |
|
Whether to snapshot stopped instances. Choices:
|
|
Description of the profile. |
|
List of devices to attach to the profile. |
|
MAC address for the NIC. |
|
IPv4 address for the NIC. |
|
IPv4 static routes to add for the NIC. |
|
IPv6 address for the NIC. |
|
IPv6 static routes to add for the NIC. |
|
MTU of the NIC. |
|
Name of the device. |
|
Managed network to attach the NIC to. |
|
NIC type when not using a managed network. |
|
Parent device for the NIC. |
|
Mount path inside the instance (disk). |
|
Storage pool for the disk device. |
|
Whether the disk is read-only. Choices:
|
|
Size of the disk device. |
|
Source path or volume for the disk device. |
|
Type of the device. Choices:
|
|
Name of the profile. |
|
Incus project to scope this profile to. |
|
Desired state of the profile. Choices:
|
|
Path to the TLS client certificate. |
|
Path to the TLS client key. |
|
Incus project to scope profiles to. |
|
Path to the TLS server certificate. |
|
Path to the Incus Unix socket. |
|
Desired state of the profiles. Choices:
|
|
Authentication token for the Incus API. |
|
URL of the Incus server API. |
|
Whether to validate TLS certificates. Choices:
|
Examples
- name: Ensure incus profiles
hosts: incus
tasks:
- name: Ensure incus profiles
ansible.builtin.import_role:
name: damex.incus.incus_profiles
vars:
incus_profiles:
- name: default
config:
security.nesting: "true"
devices:
root:
type: disk
pool: local
path: /
eth0:
type: nic
network: incusbr0