Merge "Add an openstack all-openstack-db element:"

This commit is contained in:
Jenkins 2013-02-26 21:06:57 +00:00 committed by Gerrit Code Review
commit bf67e4ec0c
4 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Installs all openstack sql databases on a single server,
for the purpose of building a bootstrap image.

View File

@ -0,0 +1,2 @@
os-svc-install
keystone-config

View File

@ -0,0 +1,25 @@
#!/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

View File

@ -0,0 +1,11 @@
#!/bin/bash
set -eu
install-packages mysql-server python-mysqldb
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
os-svc-install -u keystone -r https://github.com/openstack/keystone.git
os-svc-install -u cinder -r https://github.com/openstack/cinder.git
os-svc-install -u nova -r https://github.com/openstack/nova.git
os-svc-install -u glance -r https://github.com/openstack/glance.git
os-svc-install -u quantum -r https://github.com/openstack/quantum.git