openstack-ansible-os_horizon/tasks/main.yml
Ian Cordasco 3f90bae4c3 Add default user role for Keystone & Horizon and tasks to create it
In Keystone v3, the _member_ role is not implicitly created on first
use like it is in v2.

This patch adds variables to define the default role name for users:
 - keystone_default_role_name:
   this is the default role name from Keystone's point of view
 - horizon_default_role_name:
   this is the default user role from Horizon's point of view

Both Keystone and Horizon's tasks ensure that the role they're using
are registered in the Keystone database.

To maintain backwards compatibility the default value for both
variables is '_member_'.

DocImpact
Closes-bug: 1474916
Change-Id: Ie01e1771c0b435815dfe55fc0ba9a6d803ebe958
2015-08-21 12:53:33 +01:00

37 lines
1.1 KiB
YAML

---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- include: horizon_pre_install.yml
- include: horizon_install.yml
- include: horizon_post_install.yml
- include: horizon_db_setup.yml
when: >
inventory_hostname == groups['horizon_all'][0]
- include: horizon_ssl_self_signed.yml
when: >
horizon_user_ssl_cert is not defined or
horizon_user_ssl_key is not defined
- include: horizon_ssl_user_provided.yml
- include: horizon_service_setup.yml
- include: horizon_apache.yml
- name: Flush handlers
meta: flush_handlers