#!/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_