Add package install support to cinder
Also installs cinder-manager into /usr/local/bin. Change-Id: I1217afd99b5b8fd22daf5f3b9f08a45c4d5e391c
This commit is contained in:
parent
5fdbf8965f
commit
512a5b4824
@ -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
|
||||
|
@ -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"
|
@ -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
|
||||
|
5
elements/cinder/install.d/cinder-packge-install/72-cinder
Executable file
5
elements/cinder/install.d/cinder-packge-install/72-cinder
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
install-packages openstack-cinder
|
Loading…
Reference in New Issue
Block a user