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

Creating OpenStack domains in Keystone

If you wish to use more than one domain for your OpenStack deployment, consider using separate domains. Think of domains as separate accounts or departments in large organizations. For this section, we will create a domain for our project, called bookstore.

Getting ready

Ensure that you are logged on to a correctly configured OpenStack client and can access the OpenStack environment as a user with admin privileges.

Refer to Chapter 2, The OpenStack Client, for details of setting up your environment to use OpenStack command-line client.

How to do it…

To create a domain in our OpenStack environment, perform the following step:

  1. We start by creating a domain called bookstore as follows:
    openstack domain create --description "Book domain" bookstore
    

    The output will look similar to this:

    How to do it…

How it works…

In OpenStack, high level identity resources can be grouped under different domains. If you have to manage distinct organizations within your OpenStack environment, having separate domains for managing them might be very beneficial. By default, your OpenStack environment most likely has a default domain called "Default." By running the preceding command, we just created an additional domain that can used to manage resources related to this book. The syntax is as follows:

openstack domain create --description <description> <name>

The description parameter is also optional, but highly recommended. The domain name must be unique to other domains in the environment.

Note

In our recipes, we will use the --domain parameter and specify a domain name. If the domain is not specified, the OpenStack command-line client will use the domain set for the current user that was specified in the openrc file. Most likely, that will be the default domain.

主站蜘蛛池模板: 买车| 田阳县| 富阳市| 东乌珠穆沁旗| 崇左市| 扶沟县| 南京市| 祁连县| 翁牛特旗| 汝州市| 鄯善县| 马鞍山市| 炉霍县| 锡林浩特市| 清远市| 昌都县| 秦皇岛市| 四会市| 平安县| 天气| 阿图什市| 鄂伦春自治旗| 霞浦县| 许昌县| 平潭县| 河北区| 永仁县| 黎平县| 黄平县| 衡山县| 郯城县| 武平县| 星子县| 福州市| 房山区| 晋宁县| 南乐县| 河曲县| 泸水县| 青浦区| 汉中市|