diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-10-30 17:55:21 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-01-22 12:46:21 +0000 |
commit | 11756f246c0d5c8311e1d4e893c4371a85b73725 (patch) | |
tree | 7c21bcc898ede50d495d521b9e3b907f65ce2f40 /openstack/usr | |
parent | 820200d50fbbf708c93f7e76b2681e6b4e336330 (diff) | |
download | definitions-11756f246c0d5c8311e1d4e893c4371a85b73725.tar.gz |
WIP: Add identity service and the endpoint for keystone
Diffstat (limited to 'openstack/usr')
-rw-r--r-- | openstack/usr/share/openstack/openstack-keystone-setup | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openstack/usr/share/openstack/openstack-keystone-setup b/openstack/usr/share/openstack/openstack-keystone-setup index 727fcd0e..2e9a0dcb 100644 --- a/openstack/usr/share/openstack/openstack-keystone-setup +++ b/openstack/usr/share/openstack/openstack-keystone-setup @@ -48,6 +48,15 @@ keystone user-role-add --tenant admin --user temporary_admin --role admin keystone tenant-create --name service --description "Service Tenant" +# Define a service for the Identity Service +keystone service-create --name keystone --type identity --description "Openstack Identity" + +# Specify an API endpoint for the Identity Service by using the returned service ID. +keystone endpoint-create --service-id $(keystone service-list | awk '/ identity / {print $2}') \ + --publicurl ##KEYSTONE_PUBLIC_URL## \ + --internalurl ##KEYSTONE_INTERNAL_URL## \ + --adminurl ##KEYSTONE_ADMIN_URL## + rm /etc/systemd/system/multi-user.target.wants/openstack-keystone-setup.service ln -s "/etc/systemd/system/openstack-keystone.service" \ |