configure nova database connection
config-nova-controller.sh needs to set the nova database connection string. Change-Id: I82f61f1c003ef9068a664e2d4cafaab1b5c47a00
This commit is contained in:
parent
d02543c1bc
commit
2d1f3dd9f2
@ -11,7 +11,7 @@
|
|||||||
: ${RABBIT_PASSWORD:=guest}
|
: ${RABBIT_PASSWORD:=guest}
|
||||||
|
|
||||||
check_required_vars KEYSTONE_ADMIN_TOKEN \
|
check_required_vars KEYSTONE_ADMIN_TOKEN \
|
||||||
NOVA_DB_PASSWORD NEUTRON_SHARED_SECRET
|
NOVA_DB_PASSWORD NEUTRON_SHARED_SECRET
|
||||||
|
|
||||||
cfg=/etc/nova/nova.conf
|
cfg=/etc/nova/nova.conf
|
||||||
|
|
||||||
@ -85,3 +85,8 @@ export OS_PASSWORD="${NOVA_KEYSTONE_PASSWORD}"
|
|||||||
export OS_TENANT_NAME="${ADMIN_TENANT_NAME}"
|
export OS_TENANT_NAME="${ADMIN_TENANT_NAME}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Configure database connection
|
||||||
|
crudini --set $cfg \
|
||||||
|
database \
|
||||||
|
connection \
|
||||||
|
"mysql://${NOVA_DB_USER}:${NOVA_DB_PASSWORD}@${MARIADB_SERVICE_HOST}/${NOVA_DB_NAME}"
|
||||||
|
Loading…
Reference in New Issue
Block a user