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

Enabling domains in the OpenStack dashboard

If you are using multiple domains in your OpenStack environment, you will need to enable them in the OpenStack dashboard (Horizon) as well. To do so, the OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT variable in Horizon settings needs to be set to True. In this example, we will show you how to do so using OpenStack Ansible playbook.

Getting ready

We are going to use Ansible to update Horizon settings. Make sure that you have access to your openstack-ansible deployment host.

How to do it…

To enable multidomain support in the OpenStack dashboard, we will update one horizon variable, OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT in local_settings.py using the openstack-ansible deployment tool. First, you will need to connect to your openstack-ansible deployment host. Once connected, execute the following steps:

  1. Edit the /etc/openstack_deploy/user_variables.yml file to add the following line:
    horizon_keystone_multidomain_support: True
    
  2. Deploy Horizon with the openstack-ansible command:
    openstack-ansible
     /opt/openstack-ansible/playbooks/os-horizon-install.yml
    

    The openstack-ansible command produces a lot of output. For brevity, its output has been omitted.

  3. Launch the OpenStack dashboard to verify that the login screen now shows domain field:
    How to do it…

How it works…

In OpenStack, if you are taking advantage of the multiple domain functionality, you have full control via command-line tools. However, if you want to be able to use the OpenStack dashboard with multiple domains, you will need to enable Horizon's multidomain support. To do so, you need to update the Horizon settings file. Since we are using the openstack-ansible tool, we updated the user_variables.yml file and ran the openstack-ansible command. This command updated the required variable and restarted the apache2 (HTTP server) services on the Horizon container.

主站蜘蛛池模板: 谢通门县| 林口县| 平乐县| 康定县| 和林格尔县| 调兵山市| 大连市| 宝鸡市| 图木舒克市| 临泽县| 东台市| 万宁市| 永胜县| 乐亭县| 金昌市| 石台县| 林西县| 阿拉尔市| 苍南县| 巴彦县| 澜沧| 峨眉山市| 珲春市| 崇左市| 常州市| 垣曲县| 桐庐县| 临江市| 罗源县| 宁乡县| 漯河市| 监利县| 永济市| 神农架林区| 临颍县| 额济纳旗| 肇源县| 宁化县| 津市市| 周宁县| 天长市|