diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index ab636450528b430068c17b14c99d74c5ef842cb8..dde2510cbd5223efc0842de3f5d12215274c2180 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -79,6 +79,7 @@ keepalived_virtual_router_id: "51" kolla_external_vip_interface: "{{ network_interface }}" api_interface: "{{ network_interface }}" storage_interface: "{{ network_interface }}" +cluster_interface: "{{ network_interface }}" tunnel_interface: "{{ network_interface }}" # Valid options are [ openvswitch, linuxbridge ] diff --git a/ansible/roles/ceph/templates/ceph-osd.json.j2 b/ansible/roles/ceph/templates/ceph-osd.json.j2 index d012808ce7da9526fd8ee98b49b41a27a53345fe..24ace33c057790e63a2e50e2cf9805879b25ed71 100644 --- a/ansible/roles/ceph/templates/ceph-osd.json.j2 +++ b/ansible/roles/ceph/templates/ceph-osd.json.j2 @@ -1,5 +1,5 @@ { - "command": "/usr/bin/ceph-osd -f -d", + "command": "/usr/bin/ceph-osd -f -d --public-addr {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }} --cluster-addr {{ hostvars[inventory_hostname]['ansible_' + cluster_interface]['ipv4']['address'] }}", "config_files": [ { "source": "{{ container_config_directory }}/ceph.conf", diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml index 475bbc9e231f4730a2dbaa35b523590e3b4b04d3..30c2dfdad4ab406421b318d61b815d30af2ddf8f 100644 --- a/etc/kolla/globals.yml +++ b/etc/kolla/globals.yml @@ -65,6 +65,7 @@ network_interface: "eth0" #kolla_external_vip_interface: "{{ network_interface }}" #api_interface: "{{ network_interface }}" #storage_interface: "{{ network_interface }}" +#cluster_interface: "{{ network_interface }}" #tunnel_interface: "{{ network_interface }}" # This is the raw interface given to neutron as its external network port. Even