Reduce service user permissions
Most of the services create the service user with the admin permission.
This is unnecessary for token validation and they should be restricted
to only having the service role.
Change-Id: Id7a9366d2c6a36139240f64371002362dc2d8d3b
diff --git a/lib/ironic b/lib/ironic
index 921bcf1..bed816e 100644
--- a/lib/ironic
+++ b/lib/ironic
@@ -362,7 +362,7 @@
if [[ "$ENABLED_SERVICES" =~ "ir-api" ]]; then
# Get ironic user if exists
- create_service_user "ironic" "admin"
+ create_service_user "ironic"
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then