Skip to content

Commit 2eb50e1

Browse files
committed
Fix ceph bind if ceph_ip_address is given
Fixes: #44 Signed-off-by: Lucas Bremgartner <[email protected]>
1 parent a077db6 commit 2eb50e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

roles/ceph/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ceph_release_majors:
1515
ceph_keyrings: ['admin']
1616
ceph_network_public: ''
1717
ceph_network_private: ''
18+
ceph_ip_address: ''
1819
ceph_rbd_cache: "128Mi"
1920
ceph_rbd_cache_max: "96Mi"
2021
ceph_rbd_cache_target: "64Mi"

roles/ceph/templates/ceph.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public_network = {{ ceph_network_public }}
1313
private_network = {{ ceph_network_private }}
1414
{% endif %}
1515
auth allow insecure global id reclaim = false
16-
{% if ansible_default_ipv6['address'] | default("") %}
16+
{% if ceph_ip_address | default(ansible_default_ipv6['address'] | default(''), true) | ansible.utils.ipv6 %}
1717
ms bind ipv6 = true
1818
ms bind ipv4 = false
1919
{% else %}

0 commit comments

Comments
 (0)