Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
36f400b8
Commit
36f400b8
authored
8 years ago
by
Eduardo Gonzalez
Browse files
Options
Downloads
Patches
Plain Diff
Fix heat role creation
Change-Id: Ic2a14659f90e5b6060eb695e1f3592db3ae5b907 Closes-Bug: #1626863
parent
9df73ecc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/heat/tasks/register.yml
+6
-6
6 additions, 6 deletions
ansible/roles/heat/tasks/register.yml
with
6 additions
and
6 deletions
ansible/roles/heat/tasks/register.yml
+
6
−
6
View file @
36f400b8
...
@@ -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_h
orizon
_auth':{{ openstack_heat_auth }}}"
-e "{'openstack_h
eat
_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_r
esul
t.split()[2] == 'SUCCESS'
until
:
heat_stack_user_r
ole_result.stdou
t.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_h
orizon
_auth':{{ openstack_heat_auth }}}"
-e "{'openstack_h
eat
_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_r
esul
t.split()[2] == 'SUCCESS'
until
:
heat_stack_owner_r
ole_result.stdou
t.split()[2] == 'SUCCESS'
retries
:
10
retries
:
10
delay
:
5
delay
:
5
run_once
:
True
run_once
:
True
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment