20 lines
890 B
Plaintext
20 lines
890 B
Plaintext
PASSWORD=$(TERM=linux <%= @keyring_file %> 2>/dev/null)
|
|
ENDPOINTGROUP_ID=$(openstack endpoint group create \
|
|
distributed_cloud_<%=@system_controller_region %> \
|
|
keystone-<%=@system_controller_region %>-filter.conf \
|
|
--os-username <%=@os_username %> \
|
|
--os-password $PASSWORD \
|
|
--os-region-name <%=@identity_region %> \
|
|
--os-keystone-region-name <%=@keystone_region %> \
|
|
--os-auth-url <%=@auth_url %> \
|
|
--os-identity-api-version <%=@api_version %> \
|
|
--os-project-name <%=@os_project_name %> | awk '/id\ \ / { print $4 }' )
|
|
openstack endpoint group add project $ENDPOINTGROUP_ID services \
|
|
--os-username <%=@os_username %> \
|
|
--os-password $PASSWORD \
|
|
--os-region-name <%=@identity_region %> \
|
|
--os-keystone-region-name <%=@keystone_region %> \
|
|
--os-auth-url <%=@auth_url %> \
|
|
--os-identity-api-version <%=@api_version %> \
|
|
--os-project-name <%=@os_project_name %>
|