Add package install support to cinder

Also installs cinder-manager into /usr/local/bin.

Change-Id: I1217afd99b5b8fd22daf5f3b9f08a45c4d5e391c
This commit is contained in:
James Slagle 2014-01-30 19:37:34 -05:00
parent 5fdbf8965f
commit 512a5b4824
6 changed files with 11 additions and 4 deletions

View File

@ -31,9 +31,9 @@ venvs=/opt/stack/venvs
os-db-create keystone keystone $db_pass
run_db_sync && keystone-manage db_sync
if [ -x "$venvs/cinder/bin/cinder-manage" ] ; then
if which cinder-manage 1>/dev/null 2>&1; then
os-db-create cinder cinder $db_pass
run_db_sync && $venvs/cinder/bin/cinder-manage db sync
run_db_sync && cinder-manage db sync
fi
if [ -x "$venvs/ironic/bin/ironic-dbsync" ] ; then

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -eux
ln -s /opt/stack/venvs/cinder/bin/cinder-manage /usr/local/bin/cinder-manage
os-svc-daemon cinder-api cinder cinder-api "--config-dir /etc/cinder"
os-svc-daemon cinder-scheduler cinder cinder-scheduler "--config-dir /etc/cinder"

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -eu
/opt/stack/venvs/cinder/bin/cinder-manage db sync
cinder-manage db sync
os-svc-enable -n cinder-api
os-svc-enable -n cinder-scheduler

View File

@ -0,0 +1,5 @@
#!/bin/bash
set -eux
install-packages openstack-cinder