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
26536e2c
Commit
26536e2c
authored
7 years ago
by
Zuul
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Local connection to remote Grafana can fail"
parents
95cd3347
28546710
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/grafana/tasks/post_config.yml
+1
-4
1 addition, 4 deletions
ansible/roles/grafana/tasks/post_config.yml
with
1 addition
and
4 deletions
ansible/roles/grafana/tasks/post_config.yml
+
1
−
4
View file @
26536e2c
...
...
@@ -4,11 +4,10 @@
url
:
"
{{
internal_protocol
}}://{{
kolla_internal_vip_address
}}:{{
grafana_server_port
}}/login"
status_code
:
200
register
:
result
until
:
result.status ==
200
until
:
result | failed or
result.status ==
200
retries
:
10
delay
:
2
run_once
:
true
connection
:
local
-
name
:
Enable grafana datasources
uri
:
...
...
@@ -22,7 +21,6 @@
status_code
:
200,
409
register
:
response
run_once
:
True
connection
:
local
changed_when
:
response.status ==
200
failed_when
:
response.status not in [200, 409] or
response.status == 409 and ("Data source with same name already exists" not in response.json.message|default(""))
...
...
@@ -40,5 +38,4 @@
register
:
grafana_response
changed_when
:
grafana_response.status ==
200
run_once
:
true
connection
:
local
when
:
grafana_custom_dashboard_file.stat.exists
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