Skip to content

Commit

Permalink
Merge pull request #140 from stackhpc/cluster-network
Browse files Browse the repository at this point in the history
Define cluster network with cephadm bootstrap
  • Loading branch information
priteau authored Mar 19, 2024
2 parents 49f2487 + 80e32ae commit fc9ac94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/cephadm/tasks/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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
Expand Down

0 comments on commit fc9ac94

Please sign in to comment.