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
b82b72bb
Commit
b82b72bb
authored
9 years ago
by
Vikram Hosakote
Browse files
Options
Downloads
Patches
Plain Diff
Reconfigure rabbitmq service
Change-Id: I8228c010577bd01a7dcac18a5455e11b0e6f569a Closes-Bug: #1553521
parent
c122b2f1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/rabbitmq/tasks/do_reconfigure.yml
+64
-0
64 additions, 0 deletions
ansible/roles/rabbitmq/tasks/do_reconfigure.yml
ansible/roles/rabbitmq/tasks/reconfigure.yml
+3
-0
3 additions, 0 deletions
ansible/roles/rabbitmq/tasks/reconfigure.yml
with
67 additions
and
0 deletions
ansible/roles/rabbitmq/tasks/do_reconfigure.yml
0 → 100644
+
64
−
0
View file @
b82b72bb
---
-
name
:
Ensuring the containers up
kolla_docker
:
name
:
"
{{
item.name
}}"
action
:
"
get_container_state"
register
:
container_state
failed_when
:
container_state.Running ==
false
when
:
inventory_hostname in groups[item.group]
with_items
:
-
{
name
:
rabbitmq
,
group
:
rabbitmq
}
-
include
:
config.yml
-
name
:
Check the configs
command
:
docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check
changed_when
:
false
failed_when
:
false
register
:
check_results
when
:
inventory_hostname in groups[item.group]
with_items
:
-
{
name
:
rabbitmq
,
group
:
rabbitmq
}
# NOTE(jeffrey4l): when config_strategy == 'COPY_ALWAYS'
# and container env['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE',
# just remove the container and start again
-
name
:
Containers config strategy
kolla_docker
:
name
:
"
{{
item.name
}}"
action
:
"
get_container_env"
register
:
container_envs
when
:
inventory_hostname in groups[item.group]
with_items
:
-
{
name
:
rabbitmq
,
group
:
rabbitmq
}
-
name
:
Remove the containers
kolla_docker
:
name
:
"
{{
item[0]['name']
}}"
action
:
"
remove_container"
register
:
remove_containers
when
:
-
config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
-
item[2]['rc'] ==
1
-
inventory_hostname in groups[item[0]['group']]
with_together
:
-
[{
name
:
rabbitmq
,
group
:
rabbitmq
}]
-
container_envs.results
-
check_results.results
-
include
:
start.yml
when
:
remove_containers.changed
-
name
:
Restart containers
kolla_docker
:
name
:
"
{{
item[0]['name']
}}"
action
:
"
restart_container"
when
:
-
config_strategy == 'COPY_ALWAYS'
-
item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
-
item[2]['rc'] ==
1
-
inventory_hostname in groups[item[0]['group']]
with_together
:
-
[{
name
:
rabbitmq
,
group
:
rabbitmq
}]
-
container_envs.results
-
check_results.results
This diff is collapsed.
Click to expand it.
ansible/roles/rabbitmq/tasks/reconfigure.yml
+
3
−
0
View file @
b82b72bb
---
---
-
include
:
do_reconfigure.yml
serial
:
"
30%"
when
:
inventory_hostname in groups['rabbitmq']
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