Skip to content

Commit 80e32ae

Browse files
committed
Fix configuration of cluster network
Fixes #139.
1 parent 49f2487 commit 80e32ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roles/cephadm/tasks/bootstrap.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
{{ firewalld }}
1818
--ssh-private-key={{ cephadm_ssh_private_key }}
1919
--ssh-public-key={{ cephadm_ssh_public_key }}
20+
{% if cephadm_cluster_network | length > 0 %}
21+
--cluster-network {{ cephadm_cluster_network }}
22+
{% endif %}
2023
{% if cephadm_ssh_user | length > 0 %}
2124
--ssh-user "{{ cephadm_ssh_user }}"
2225
{% endif %}
@@ -43,7 +46,7 @@
4346

4447
- name: Set cluster network
4548
command:
46-
cmd: "cephadm shell -- ceph config set mon cluster_network {{ cephadm_cluster_network }}"
49+
cmd: "cephadm shell -- ceph config set global cluster_network {{ cephadm_cluster_network }}"
4750
when: cephadm_cluster_network | length > 0
4851
become: true
4952
changed_when: true

0 commit comments

Comments
 (0)