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
NAME="USER_NAME_$i"
EMAIL="USER_EMAIL_$i"
LOGIN="USER_LOGIN_$i"
PASSWORD="USER_PASSWORD_$i"
curl --request POST \
--url http://grafana:3000/api/admin/users \ --url http://grafana:3000/api/admin/users \
--header 'authorization: Basic ${GRAFANA_AUTH_TOKEN}' \ --header "authorization: Basic ${GF_AUTH_TOKEN}" \
--header 'content-type: application/json' \ --header 'content-type: application/json' \
--data '{ --data "{
"name":"Guest", \"name\":\"${!NAME}\",
"email":"no@example-com", \"email\":\"${!EMAIL}\",
"login":"guest", \"login\":\"${!LOGIN}\",
"password":"guest" \"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