setup_keystone() {
#Setup Keystone
- if ! $UBUNTU
- then
- cp /usr/share/keystone/keystone-dist-paste.ini /etc/keystone/keystone-paste.ini
- fi
cat > /etc/keystone/keystone.conf << EOF
[DEFAULT]
admin_token=$TOKEN
provider=keystone.token.providers.uuid.Provider
EOF
keystone-manage db_sync
+ keystone-manage bootstrap --bootstrap-password $TOKEN
chown -R keystone:keystone /var/log/keystone/
if $UBUNTU
then
#Setup Neutron credentials
keystone $AUTH user-create --name neutron --pass neutron
keystone $AUTH tenant-create --name neutron
- keystone $AUTH role-create --name=admin
keystone $AUTH user-role-add --user neutron --role admin --tenant neutron
NEUTRON_SERVICE=`keystone $AUTH service-create --name=neutron --type=network --description="Neutron Networking Service" | grep id | awk -F '|' '{print $3}' | tr -d ' '`
keystone $AUTH endpoint-create --region RegionOne --service-id=$NEUTRON_SERVICE --publicurl=http://localhost:9696 --internalurl=http://localhost:9696 --adminurl=http://localhost:9696