diff --git a/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 b/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 index acad80a1a..8f13fc6b9 100644 --- a/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 +++ b/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 @@ -4,4 +4,6 @@ username={{ openstack_username }} password={{ openstack_password }} region={{ openstack_region }} tenant-id={{ openstack_tenant_id }} +{% if openstack_domain_name is defined and openstack_domain_name != "" %} domain-name={{ openstack_domain_name }} +{% endif %}