-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create default groups and user for testing
Created default groups and users for testing purposes.
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,17 @@ bootstrap: | |
--user="${OS_USERNAME}" \ | ||
--domain="${OS_DEFAULT_DOMAIN}" \ | ||
"admin" | ||
# create a demo user with demo password | ||
openstack user create --domain="${OS_DEFAULT_DOMAIN}" --password demo demo | ||
# create undercloud-dev group | ||
openstack group create --or-show undercloud-dev | ||
# add demo user to undercloud-dev group | ||
openstack group add user undercloud-dev demo | ||
# create a 'operator' domain where our service accounts and users can live | ||
openstack domain create --or-show operator | ||
# create groups which will stand in for permissions since dex cannot use roles yet | ||
openstack group create --domain=operator --or-show ucadmin | ||
openstack group create --domain=operator --or-show dctech | ||
openstack group create --domain=operator --or-show user | ||
# TODO: only create this actually requested | ||
# create 'demo' user with sufficient permissions | ||
openstack user create --domain=operator --password demo --email '[email protected]' demo | ||
# add 'demo' user to 'ucadmin' group | ||
openstack group add user --group-domain=operator --user-domain=operator ucadmin demo | ||
network: | ||
api: | ||
|