damex.incus.incus_projects role – Ensure Incus projects.
Note
This role is part of the damex.incus collection (version 1.11.7).
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_projects.
Entry point main – Ensure Incus projects.
Synopsis
Ensure Incus projects.
Parameters
Parameter |
Comments |
|---|---|
Incus projects to ensure. |
|
Project configuration keys. |
|
Compression algorithm for backups. Choices:
|
|
Separate image store. Choices:
|
|
Separate network management. Choices:
|
|
Separate network zone management. Choices:
|
|
Separate profile store. Choices:
|
|
Separate storage bucket management. Choices:
|
|
Separate storage volume management. Choices:
|
|
Cached image auto-update. Choices:
|
|
Image auto-update interval in hours. |
|
Compression algorithm for images. Choices:
|
|
Default architecture for images. |
|
Cached remote image expiry in days. |
|
Maximum container count. |
|
Maximum CPU count. |
|
Maximum disk space. |
|
Maximum instance count. |
|
Maximum memory. |
|
Maximum network count. |
|
Maximum process count. |
|
Maximum virtual machine count. |
|
Auto-generated MAC address pattern. |
|
Security-sensitive feature restriction. Choices:
|
|
Instance and volume backup restriction. Choices:
|
|
Allowed cluster groups, comma-separated. |
|
Cluster member targeting. Choices:
|
|
Container system call interception. Choices:
|
|
Low-level container options. Choices:
|
|
Container nesting. Choices:
|
|
Privileged container settings. Choices:
|
|
Disk device restriction. Choices:
|
|
Allowed disk source paths, comma-separated. |
|
GPU device allowance. Choices:
|
|
InfiniBand device allowance. Choices:
|
|
Network device restriction. Choices:
|
|
PCI device allowance. Choices:
|
|
Proxy device allowance. Choices:
|
|
Unix block device allowance. Choices:
|
|
Unix character device allowance. Choices:
|
|
Unix hotplug device allowance. Choices:
|
|
USB device allowance. Choices:
|
|
Allowed host GID ranges for raw.idmap. |
|
Allowed host UID ranges for raw.idmap. |
|
Allowed networks for access, comma-separated. |
|
Allowed network integrations, comma-separated. |
|
Allowed network subnets, comma-separated. |
|
Allowed network uplinks, comma-separated. |
|
Allowed network zones, comma-separated. |
|
Instance and volume snapshot restriction. Choices:
|
|
Low-level virtual machine options. Choices:
|
|
Project description. |
|
Project name. |
|
Project desired state. Choices:
|
|
Client certificate content for API authentication. |
|
TLS client certificate path for API authentication. |
|
Client key content for API authentication. |
|
TLS client key path for API authentication. |
|
Server certificate content for API verification. |
|
TLS server certificate path for API verification. |
|
Incus Unix socket path. |
|
Projects desired state. Choices:
|
|
Incus API authentication token. |
|
Incus server API URL. |
|
TLS certificate validation. Choices:
|
Examples
- name: Ensure incus projects
hosts: incus
tasks:
- name: Ensure incus projects
ansible.builtin.import_role:
name: damex.incus.incus_projects
vars:
incus_projects:
- name: production
config:
features.images: "true"
features.profiles: "true"
features.networks: "true"
features.storage.volumes: "true"
- name: staging