Skip to content
Snippets Groups Projects
Commit a1606f87 authored by shaofeng_cheng's avatar shaofeng_cheng
Browse files

Add heat_stack_owner role to admin project

The Orchestration service automatically assigns the heat_stack_user
role to users that it creates during stack deployment.
To avoid conflicts, do not add this role to users with the heat_stack_owner role.

Closes-Bug: #1690975

Change-Id: I7a4cb7f4a13de7be4fc9ce9c24057ece6a0ced5c
parent 81b7ef7b
No related branches found
No related tags found
No related merge requests found
......@@ -55,3 +55,16 @@
module_extra_vars:
openstack_heat_auth: "{{ openstack_heat_auth }}"
run_once: True
- name: Add the heat_stack_owner role to the admin project
kolla_toolbox:
module_name: "os_user_role"
module_args:
project: "{{ openstack_auth.project_name }}"
user: "{{ openstack_auth.username }}"
role: "{{ heat_stack_owner_role }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_heat_auth }}' }}"
module_extra_vars:
openstack_heat_auth: "{{ openstack_heat_auth }}"
run_once: True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment