Create keystone user in start.sh if it doesn't exist

This is required for the source install method (for packages the
user/group is added as part of install)

Change-Id: I9b2e8d3757587276c21967ee67d45277616d433f
This commit is contained in:
Paul Bourke 2015-06-11 16:12:34 +00:00
parent 897337cdd6
commit e854587c94

View File

@ -112,6 +112,9 @@ export OS_PASSWORD=${KEYSTONE_ADMIN_PASSWORD}
export OS_TENANT_NAME=${ADMIN_TENANT_NAME}
EOF
# Create keystone user and group if they don't exist
id -u keystone &>/dev/null || useradd --user-group keystone
# Run PKI Setup script
echo "Setting up PKI"
/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone