Merge "Adding octavia required roles"

This commit is contained in:
Zuul 2018-01-30 10:24:45 +00:00 committed by Gerrit Code Review
commit 29226edf14
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 }}"