diskimage-builder/elements/openstack-db/first-boot.d/50-openstack-db
Tim Miller dc845466bc Add an openstack all-openstack-db element:
This element installs all openstack sql databases into
a single image, useful for a bootstrap image.

Change-Id: I6efe807793ec620a60d5798d28a7e3103a5b90e8
2013-02-25 17:09:37 -08:00

26 lines
444 B
Bash
Executable File

#!/bin/bash
set -eu
# TODO: make this easily configurable
db_pass=stackdb
service mysql restart
create-os-db keystone keystone $db_pass
keystone-manage db_sync
create-os-db cinder cinder $db_pass
cinder-manage db sync
create-os-db nova nova $db_pass
nova-manage db sync
create-os-db nova_bm nova $db_pass
nova-baremetal-manage db sync
create-os-db glance glance $db_pass
glance-manage db_sync
create-os-db ovs_quantum quantum $db_pass