Adding octavia required roles

Adding following role which is reuqired by octavia services

- load-balancer_observer
- load-balancer_global_observer
- load-balancer_member
- load-balancer_admin
- load-balancer_quota_admin

Change-Id: I6f351c96915b09cb9a6ef716515b45785d62cb90
Closes-Bug: #1745915
This commit is contained in:
Jeffrey Zhang 2018-01-29 12:47:59 +08:00
parent 09dbb61133
commit 377ece5774
2 changed files with 19 additions and 0 deletions

View File

@ -39,6 +39,13 @@ octavia_services:
- "/etc/localtime:/etc/localtime:ro"
- "kolla_logs:/var/log/kolla/"
octavia_required_roles:
- load-balancer_observer
- load-balancer_global_observer
- load-balancer_member
- load-balancer_admin
- load-balancer_quota_admin
####################
# Database

View File

@ -47,3 +47,15 @@
module_extra_vars:
openstack_octavia_auth: "{{ openstack_octavia_auth }}"
run_once: True
- name: Adding octavia related roles
kolla_toolbox:
module_name: "os_keystone_role"
module_args:
name: "{{ item }}"
auth: "{{ '{{ openstack_octavia_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_octavia_auth: "{{ openstack_octavia_auth }}"
run_once: True
with_items: "{{ octavia_required_roles }}"