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
23646eb0
Commit
23646eb0
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "added kibana reconfigure"
parents
c4d34cf4
da650f86
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/kibana/tasks/reconfigure.yml
+63
-0
63 additions, 0 deletions
ansible/roles/kibana/tasks/reconfigure.yml
with
63 additions
and
0 deletions
ansible/roles/kibana/tasks/reconfigure.yml
+
63
−
0
View file @
23646eb0
---
---
-
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
:
kibana
,
group
:
kibana
}
-
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
:
kibana
,
group
:
kibana
}
# 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
:
kibana
,
group
:
kibana
}
-
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
:
kibana
,
group
:
kibana
}]
-
"
{{
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
:
kibana
,
group
:
kibana
}]
-
"
{{
container_envs.results
}}"
-
"
{{
check_results.results
}}"
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