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. These should
ultimately be conditionally created and configurable in their creation.
  • Loading branch information
cardoe committed May 3, 2024
1 parent 5e435df commit 06c4bc8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions components/keystone/aio-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ 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 groups which will stand in for permissions since dex cannot use roles yet
openstack group create --or-show ucadmin
openstack group create --or-show dctech
openstack group create --or-show user
# TODO: only create this actually requested
# create 'demo' user with sufficient permissions
openstack user create --or-show --password demo --email '[email protected]' demo
openstack user set --email '[email protected]' demo
# add 'demo' user to 'ucadmin' group
openstack group add user ucadmin demo
network:
api:
Expand Down

0 comments on commit 06c4bc8

Please sign in to comment.