damex.incus.incus_storages role – Ensure Incus storages.
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_storages.
Entry point main – Ensure Incus storages.
Synopsis
Ensure Incus storages.
Parameters
Parameter |
Comments |
|---|---|
List of storage pools to ensure. |
|
Storage pool configuration options. |
|
Mount options for the Btrfs filesystem. |
|
Name of the Ceph cluster. |
|
Name of the Ceph OSD data pool. |
|
Name of the Ceph OSD placement group. |
|
Name of the Ceph OSD pool. |
|
Whether to use RBD lightweight clones. Choices:
|
|
Whether to use RBD disk usage tracking. Choices:
|
|
RBD image features to enable. |
|
Ceph user name. |
|
Name of the CephFS cluster. |
|
Create missing CephFS pools. Choices:
|
|
Name of the CephFS data pool. |
|
Whether to enable fscache for CephFS. Choices:
|
|
Name of the CephFS metadata pool. |
|
Number of placement groups for CephFS OSD pools. |
|
CephFS path to mount. |
|
CephFS user name. |
|
Prefix for Ceph object store bucket names. |
|
Name of the Ceph object store cluster. |
|
URL of the RADOS Gateway endpoint. |
|
Path to the RADOS Gateway endpoint certificate. |
|
Ceph object store user name. |
|
Whether to automatically add a DRBD quorum tiebreaker. Choices:
|
|
Automatic diskful mode for DRBD. |
|
Action to take when DRBD has no quorum. |
|
Name of the LINSTOR resource group. |
|
Number of replicas in the LINSTOR resource group. |
|
LINSTOR storage pool for the resource group. |
|
Prefix for LINSTOR volume names. |
|
Size of the LVM metadata volume. |
|
Size of the LVM thin pool metadata volume. |
|
Name of the LVM thin pool. |
|
Whether to use an LVM thin pool. Choices:
|
|
Force reuse of an existing LVM volume group. Choices:
|
|
Name of the LVM volume group. |
|
Upper limit on the bandwidth for rsync. |
|
Whether to use compression for rsync. Choices:
|
|
Size of the storage pool. |
|
Path or device to use as storage source. |
|
Wipe the source device before use. Choices:
|
|
Allow insecure connections to TrueNAS. Choices:
|
|
API key for TrueNAS authentication. |
|
Whether to use TrueNAS lightweight clones. Choices:
|
|
Path to the TrueNAS configuration file. |
|
Name of the TrueNAS dataset. |
|
Force reuse of an existing TrueNAS dataset. Choices:
|
|
Hostname or IP of the TrueNAS server. |
|
iSCSI initiator name for TrueNAS. |
|
iSCSI portal ID for TrueNAS. |
|
Block size for the ZFS pool. |
|
Whether to use ZFS lightweight clones. Choices:
|
|
Whether to export the ZFS pool on removal. Choices:
|
|
Name of the ZFS pool. |
|
Storage pool description. |
|
Storage driver to use. Choices:
|
|
Name of the storage pool. |
|
Project to scope the storage pool to. |
|
Desired state of the storage pool. Choices:
|
|
Path to the TLS client certificate. |
|
Path to the TLS client key. |
|
Incus project to scope storage pools to. |
|
Path to the TLS server certificate. |
|
Path to the Incus Unix socket. |
|
Desired state of the storage pools. Choices:
|
|
Authentication token for the Incus API. |
|
URL of the Incus server API. |
|
Whether to validate TLS certificates. Choices:
|
Examples
- name: Ensure incus storages
hosts: incus
tasks:
- name: Ensure incus storages
ansible.builtin.import_role:
name: damex.incus.incus_storages
vars:
incus_storages:
- name: local
driver: dir
- name: data
driver: zfs
config:
source: tank/incus