damex.incus.incus_cluster_members role – Ensure Incus cluster members.
Note
This role is part of the damex.incus collection (version 1.9.3).
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_cluster_members.
Entry point main – Ensure Incus cluster members.
Synopsis
Ensure Incus cluster members.
Parameters
Parameter |
Comments |
|---|---|
List of Incus cluster members to ensure. |
|
Cluster member configuration key-value pairs. |
|
Controls how instances are scheduled to run on this member. Choices:
|
|
Description of the cluster member. |
|
Failure domain of the cluster member. |
|
List of cluster groups for the member. |
|
Name of the cluster member. |
|
List of roles assigned to the cluster member. |
|
Desired state of the cluster member. Choices:
|
|
Client certificate content for API authentication. |
|
Path to the TLS client certificate for API authentication. |
|
Client key content for API authentication. |
|
Path to the TLS client key for API authentication. |
|
Server certificate content for API verification. |
|
Path to the TLS server certificate for API verification. |
|
Path to the Incus Unix socket. |
|
Default desired state of the cluster members. Choices:
|
|
Authentication token for the Incus API. |
|
URL of the Incus server API. |
|
Whether to validate TLS certificates. Choices:
|
Examples
- name: Ensure incus cluster members
hosts: incus
tasks:
- name: Ensure incus cluster members
ansible.builtin.import_role:
name: damex.incus.incus_cluster_members
vars:
incus_cluster_members:
- name: node1
description: Primary node
config:
scheduler.instance: all
- name: node2
config:
scheduler.instance: manual