Skip to content
Snippets Groups Projects
Commit 268fec77 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Script zum anlegen von Schulungsprojekten hinzugefuegt

parents
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# You must have the right environment variables set to authenticate a as a domain admin
USER=$1
PRJ=$(openstack project create --domain $OS_DOMAIN_ID --description "Cluster Schulung: $USER" --enable --format shell --prefix PRJ_ cs_$USER)
eval $PRJ
USR=$(openstack user show --domain $OS_DOMAIN_ID --format shell --prefix USR_ $USER)
eval $USR
openstack role add --user $USR_id --project $PRJ_id _member_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment