Skip to content

Commit

Permalink
feat: create default groups and user for testing
Browse files Browse the repository at this point in the history
Created default groups and users for testing purposes.
  • Loading branch information
cardoe committed May 2, 2024
1 parent 602a4b9 commit d0647fe
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions components/keystone/aio-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d0647fe

Please sign in to comment.