After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 68 of 317

Keystone OpenStack Identity Service 58 How to do it... To create the required roles in our OpenStack environment, perform the following steps: 1. Creation of the admin role is done as follows: # admin role keystone role-create --name admin 2. To create the Member role we repeat the step, specifying the Member role: # Member role keystone role-create --name Member How it works... Creation of the roles is simply achieved by using the keystone client, specifying the role- create option with the following syntax: keystone role-create --name role_name The role_name attribute can't be arbitrary. The admin role has been set in /etc/ keystone/policy.json as having administrative rights: { "admin_required": [["role:admin"], ["is_admin:1"]] } And when we configure the OpenStack Dashboard, Horizon, it has the Member role configured as the default when users are created in that interface. On creation of the role, this returns an ID associated with it that we use when assigning roles to users. To see a list of roles and the associated IDs in our environment, we can issue the following command: keystone role-list www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook