From 0137b4ba6e5dfdf245bcf50e4229717b20752cd4 Mon Sep 17 00:00:00 2001 From: Stephan Peijnik-Steinwender Date: Wed, 25 Feb 2026 13:49:11 +0100 Subject: [PATCH] Allow explicit configuration of cluster.https_address This change enables a configuration that uses different IP addresses for cluster and API traffic. If unset, this defaults to the previous behavior of using the same address for both cluster and API traffic. Signed-off-by: Stephan Peijnik-Steinwender --- ansible/README.md | 1 + roles/incus/tasks/installation.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/README.md b/ansible/README.md index 17438c53..ecd837df 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -23,6 +23,7 @@ - `rgw`: A RADOS (object) Gateway, used to expose an S3 API on top of Ceph objects ## Incus + - `incus_cluster_ip_address`: Override for the server's cluster IP address (type: string, default: value of `incus_ip_address`) - `incus_name`: Name identifier for the deployment (**required**, type: string) - `incus_init`: Initial configuration data (type: dict) - `config`: Dict of config keys diff --git a/roles/incus/tasks/installation.yml b/roles/incus/tasks/installation.yml index cad5b6bb..55a36934 100644 --- a/roles/incus/tasks/installation.yml +++ b/roles/incus/tasks/installation.yml @@ -124,7 +124,7 @@ changed_when: true - name: Set cluster listen address - ansible.builtin.command: "incus --force-local config set cluster.https_address {{ incus_ip_address_or_default }}" + ansible.builtin.command: "incus --force-local config set cluster.https_address {{ incus_cluster_ip_address | default(incus_ip_address_or_default) }}" when: '(incus_install_deb.changed or incus_install_rpm.changed) and "cluster" in incus_roles and incus_servers[0] == inventory_hostname' changed_when: true