User:BryanDavis/OpenStack
Appearance
join.sh
#!/usr/bin/env bash
set -euo pipefail
PROJECT=${1:?Project name required}
USER=${2:-bd808}
sudo wmcs-openstack role add --user "$USER" --project "$PROJECT" user
sudo wmcs-openstack role add --user "$USER" --project "$PROJECT" projectadmin
part.sh
#!/usr/bin/env bash
set -euo pipefail
PROJECT=${1:?Project name required}
USER=${2:-bd808}
sudo wmcs-openstack role remove --user "$USER" --project "$PROJECT" projectadmin
sudo wmcs-openstack role remove --user "$USER" --project "$PROJECT" user