Commit 7119de94 authored by Simon Volpert's avatar Simon Volpert 🐧

Merge branch 'user-privisioning' into 'master'

user-provisioning

See merge request !4
parents 87c9f33e 287de8d5
Pipeline #77656 passed with stage
in 28 seconds
......@@ -20,13 +20,21 @@ done
echo "Grafana is ready"
curl --request POST \
--url http://grafana:3000/api/admin/users \
--header 'authorization: Basic ${GRAFANA_AUTH_TOKEN}' \
--header 'content-type: application/json' \
--data '{
"name":"Guest",
"email":"no@example-com",
"login":"guest",
"password":"guest"
}'
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 \
--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