diff --git a/ansible/roles/zun/templates/zun.conf.j2 b/ansible/roles/zun/templates/zun.conf.j2 index 8d179a994c..d38b3c90af 100644 --- a/ansible/roles/zun/templates/zun.conf.j2 +++ b/ansible/roles/zun/templates/zun.conf.j2 @@ -98,6 +98,9 @@ lock_path = /var/lib/zun/tmp policy_file = {{ zun_policy_file }} {% endif %} +[compute] +host_shared_with_nova = {{ inventory_hostname in groups['compute'] and enable_nova | bool and not enable_nova_fake | bool }} + [websocket_proxy] wsproxy_host = {{ api_interface_address }} wsproxy_port = {{ zun_wsproxy_port }} diff --git a/doc/source/reference/compute/zun-guide.rst b/doc/source/reference/compute/zun-guide.rst index 17e9b34c9e..d0252fa82c 100644 --- a/doc/source/reference/compute/zun-guide.rst +++ b/doc/source/reference/compute/zun-guide.rst @@ -20,6 +20,7 @@ following variables: enable_zun: "yes" enable_kuryr: "yes" enable_etcd: "yes" + enable_placement: "yes" docker_configure_for_zun: "yes" Docker reconfiguration requires reboostrapping before deploy. diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2 index 1de1708595..37d86ac5eb 100644 --- a/tests/templates/globals-default.j2 +++ b/tests/templates/globals-default.j2 @@ -67,6 +67,7 @@ enable_cinder_backend_lvm: "yes" enable_zun: "yes" enable_kuryr: "yes" enable_etcd: "yes" +enable_placement: "yes" docker_configure_for_zun: "yes" {% endif %}