From 80e32ae1a47391aa4f05772501e55b4e8fa25831 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 19 Mar 2024 10:59:31 +0100 Subject: [PATCH] Fix configuration of cluster network Fixes #139. --- roles/cephadm/tasks/bootstrap.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/cephadm/tasks/bootstrap.yml b/roles/cephadm/tasks/bootstrap.yml index dd93618..382dfb1 100644 --- a/roles/cephadm/tasks/bootstrap.yml +++ b/roles/cephadm/tasks/bootstrap.yml @@ -17,6 +17,9 @@ {{ firewalld }} --ssh-private-key={{ cephadm_ssh_private_key }} --ssh-public-key={{ cephadm_ssh_public_key }} + {% if cephadm_cluster_network | length > 0 %} + --cluster-network {{ cephadm_cluster_network }} + {% endif %} {% if cephadm_ssh_user | length > 0 %} --ssh-user "{{ cephadm_ssh_user }}" {% endif %} @@ -43,7 +46,7 @@ - name: Set cluster network command: - cmd: "cephadm shell -- ceph config set mon cluster_network {{ cephadm_cluster_network }}" + cmd: "cephadm shell -- ceph config set global cluster_network {{ cephadm_cluster_network }}" when: cephadm_cluster_network | length > 0 become: true changed_when: true