From 06c4bc85192c548fce943b42e19ff1ca46a90ecd Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 2 May 2024 15:23:00 -0500 Subject: [PATCH] feat: create default groups and user for testing Created default groups and users for testing purposes. These should ultimately be conditionally created and configurable in their creation. --- components/keystone/aio-values.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/components/keystone/aio-values.yaml b/components/keystone/aio-values.yaml index 7c235abfe..07839e3a4 100644 --- a/components/keystone/aio-values.yaml +++ b/components/keystone/aio-values.yaml @@ -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 'demo@example.com' demo + openstack user set --email 'demo@example.com' demo + # add 'demo' user to 'ucadmin' group + openstack group add user ucadmin demo network: api: