Skip to content
Snippets Groups Projects
Commit 56603d92 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Fix heat role creation"

parents cf17d234 36f400b8
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,10 @@ ...@@ -47,10 +47,10 @@
-m os_keystone_role -m os_keystone_role
-a "name={{ heat_stack_user_role }} -a "name={{ heat_stack_user_role }}
auth={{ '{{ openstack_heat_auth }}' }}" auth={{ '{{ openstack_heat_auth }}' }}"
-e "{'openstack_horizon_auth':{{ openstack_heat_auth }}}" -e "{'openstack_heat_auth':{{ openstack_heat_auth }}}"
register: heat_stack_user_role_result register: heat_stack_user_role_result
changed_when: "{{ heat_stack_user_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_user_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" changed_when: "{{ heat_stack_user_role_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_user_role_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
until: heat_stack_user_result.split()[2] == 'SUCCESS' until: heat_stack_user_role_result.stdout.split()[2] == 'SUCCESS'
retries: 10 retries: 10
delay: 5 delay: 5
run_once: True run_once: True
...@@ -60,10 +60,10 @@ ...@@ -60,10 +60,10 @@
-m os_keystone_role -m os_keystone_role
-a "name={{ heat_stack_owner_role }} -a "name={{ heat_stack_owner_role }}
auth={{ '{{ openstack_heat_auth }}' }}" auth={{ '{{ openstack_heat_auth }}' }}"
-e "{'openstack_horizon_auth':{{ openstack_heat_auth }}}" -e "{'openstack_heat_auth':{{ openstack_heat_auth }}}"
register: heat_stack_owner_role_result register: heat_stack_owner_role_result
changed_when: "{{ heat_stack_owner_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_owner_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" changed_when: "{{ heat_stack_owner_role_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_owner_role_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
until: heat_stack_owner_result.split()[2] == 'SUCCESS' until: heat_stack_owner_role_result.stdout.split()[2] == 'SUCCESS'
retries: 10 retries: 10
delay: 5 delay: 5
run_once: True 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