diff --git a/roles/kubernetes/preinstall/defaults/main.yml b/roles/kubernetes/preinstall/defaults/main.yml index 1515c93ce..150d5a86b 100644 --- a/roles/kubernetes/preinstall/defaults/main.yml +++ b/roles/kubernetes/preinstall/defaults/main.yml @@ -25,6 +25,7 @@ openstack_username: "{{ lookup('env','OS_USERNAME') }}" openstack_password: "{{ lookup('env','OS_PASSWORD') }}" openstack_region: "{{ lookup('env','OS_REGION_NAME') }}" openstack_tenant_id: "{{ lookup('env','OS_TENANT_ID') }}" +openstack_domain_name: "{{ lookup('env','OS_USER_DOMAIN_NAME') }}" # All clients access each node individually, instead of using a load balancer. etcd_multiaccess: true diff --git a/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 b/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 index 77668f295..acad80a1a 100644 --- a/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 +++ b/roles/kubernetes/preinstall/templates/openstack-cloud-config.j2 @@ -3,4 +3,5 @@ auth-url={{ openstack_auth_url }} username={{ openstack_username }} password={{ openstack_password }} region={{ openstack_region }} -tenant-id={{ openstack_tenant_id }} \ No newline at end of file +tenant-id={{ openstack_tenant_id }} +domain-name={{ openstack_domain_name }}