diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-10-30 17:55:21 +0000 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2014-11-27 18:11:32 +0000 |
commit | df977e3f5d527f5b503f3eed26c6f3773649fef1 (patch) | |
tree | cc0ed4041f6e8ab85f8484738a661ec9cd9be408 | |
parent | 5e1c6b4948d24cbc64bad1b38ee2487d872aefc8 (diff) | |
download | definitions-df977e3f5d527f5b503f3eed26c6f3773649fef1.tar.gz |
WIP: Add identity service and the endpoint for keystone
-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" \ |