Commit 287de8d5 authored by Simon Volpert's avatar Simon Volpert 🐧

user-provisioning

parent 87c9f33e
...@@ -20,13 +20,21 @@ done ...@@ -20,13 +20,21 @@ done
echo "Grafana is ready" echo "Grafana is ready"
curl --request POST \ for i in $(seq 1 $USERS); do
--url http://grafana:3000/api/admin/users \
--header 'authorization: Basic ${GRAFANA_AUTH_TOKEN}' \ NAME="USER_NAME_$i"
--header 'content-type: application/json' \ EMAIL="USER_EMAIL_$i"
--data '{ LOGIN="USER_LOGIN_$i"
"name":"Guest", PASSWORD="USER_PASSWORD_$i"
"email":"no@example-com",
"login":"guest", curl --request POST \
"password":"guest" --url http://grafana:3000/api/admin/users \
}' --header "authorization: Basic ${GF_AUTH_TOKEN}" \
--header 'content-type: application/json' \
--data "{
\"name\":\"${!NAME}\",
\"email\":\"${!EMAIL}\",
\"login\":\"${!LOGIN}\",
\"password\":\"${!PASSWORD}\"
}"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment