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
e9981b7b
Commit
e9981b7b
authored
6 years ago
by
Zuul
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow 400 response when creating kibana ES index"
parents
70abec9e
76c83a40
No related branches found
Branches containing commit
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/post_config.yml
+7
-1
7 additions, 1 deletion
ansible/roles/kibana/tasks/post_config.yml
with
7 additions
and
1 deletion
ansible/roles/kibana/tasks/post_config.yml
+
7
−
1
View file @
e9981b7b
...
...
@@ -11,7 +11,13 @@
method
:
PUT
body
:
"
{{
kibana_default_index_options
|
to_json
}}"
body_format
:
json
status_code
:
200,
201
status_code
:
200, 201,
400
register
:
result
failed_when
:
# If the index already exists, Elasticsearch will respond with a 400 error.
-
result.status ==
400
# Format: {"json": {"error": {"type": "index_already_exists_exception"}}}
-
result.get('json', {}).get('error', {}).get('type') != 'index_already_exists_exception'
run_once
:
true
-
name
:
Wait for kibana to register in elasticsearch
...
...
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