fix sleep
This commit is contained in:
parent
bb0f123e02
commit
0f4b01f996
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ svc_systemd['grafana-server'] = {
|
||||||
admin_password = node.metadata.get('grafana/config/security/admin_password')
|
admin_password = node.metadata.get('grafana/config/security/admin_password')
|
||||||
port = node.metadata.get('grafana/config/server/http_port')
|
port = node.metadata.get('grafana/config/server/http_port')
|
||||||
actions['reset_grafana_admin_password'] = {
|
actions['reset_grafana_admin_password'] = {
|
||||||
'command': f"sleep 5 && grafana-cli admin reset-admin-password {quote(admin_password)}",
|
'command': f"grafana-cli admin reset-admin-password {quote(admin_password)}",
|
||||||
'unless': f"curl http://admin:{quote(admin_password)}@localhost:{port}/api/org --fail-with-body",
|
'unless': f"sleep 5 && curl http://admin:{quote(admin_password)}@localhost:{port}/api/org --fail-with-body",
|
||||||
'needs': [
|
'needs': [
|
||||||
'svc_systemd:grafana-server',
|
'svc_systemd:grafana-server',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue