Issue link: https://read.uberflip.com/i/1334488
Chapter 3 63 Getting ready To begin with, ensure you're logged in to our OpenStack Compute host—where OpenStack Identity Service has been installed—or an appropriate Ubuntu client that has access to where OpenStack Identity Service is installed. If the keystone client tool isn't available, it can be installed on an Ubuntu client to manage our OpenStack Identity Service, by issuing the following commands: sudo apt-get update sudo apt-get -y install python-keystoneclient How to do it... Defining the services and service endpoints in OpenStack Identity Service involves running the keystone client command to specify the different services and the URLs that they run from. Although we might not have all services currently running in our environment, we will be configuring them within OpenStack Identity Service for future use. To manage our OpenStack Identity Service, we have to authenticate with the service itself. Without any users configured though, we make use of an admin token to send directly back to the admin port of OpenStack Identity Service. These are also known as a service token and service port. These details are configured directly in /etc/keystone/keystone.conf, as follows: admin_port = 35357 admin_token = ADMIN To define endpoints for services in our OpenStack environment, carry out the following steps: 1. First, we set the service token and service endpoint, which point to the service port of our OpenStack Identity Service. export ENDPOINT=172.16.0.1 export SERVICE_TOKEN=ADMIN export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0 2. We can now define the actual services that OpenStack Identity Service needs to know about in our environment. # OpenStack Compute Nova API Endpoint keystone service-create --name nova --type compute --description 'OpenStack Compute Service' # OpenStack Compute EC2 API Endpoint keystone service-create --name ec2 --type ec2 --description 'EC2 Service' www.it-ebooks.info

