官术网_书友最值得收藏!

Common OpenStack identity tasks

This section outlines a number of common steps to take for a number of common actions using the OpenStack Identity service. This is intended as a quick reference guide only. For more detailed information and explanation of each task, refer to Chapter 3, Keystone – OpenStack Identity Service.

Getting ready

Ensure that you have the OpenStack clients installed, as described in the first recipes of this chapter.

How to do it…

Carry out the following steps to create and modify users and projects in OpenStack:

Creating a new project

Creating a new user in a project is achieved with the following command. For example, to create the project called development, execute the following command:

openstack project create development

Creating a user

To create a user called developer, with a password of password123, carry out the following command:

openstack user create
 --domain default
 --password password123
 --enable
 developer

Adding a user to a project

To add a user with the _member_ role (regular user) to the development project, carry out the following command:

openstack role add
 --project development
 --user developer
 _member_

Changing a user's password as an administrator

As an administrator, you have the ability to alter someone's password. To do this for the developer user, carry out the following command:

openstack user set --password cookbook4 developer

Changing your own password

To change your own password to something else, issue the following command:

openstack user password set --password cookbook4
主站蜘蛛池模板: 鄂尔多斯市| 东丰县| 女性| 彰化县| 惠来县| 黔西县| 泸水县| 海淀区| 抚顺县| 山东| 通城县| 海阳市| 平泉县| 贵港市| 濮阳县| 赞皇县| 弥渡县| 梅河口市| 望奎县| 镇巴县| 南丰县| 博野县| 东乡族自治县| 稻城县| 阿荣旗| 安丘市| 册亨县| 蛟河市| 建始县| 蓬溪县| 西乌珠穆沁旗| 翼城县| 宜宾市| 古交市| 芦溪县| 扶沟县| 岳阳市| 萨迦县| 赤城县| 遂昌县| 洪湖市|