summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihai Prica <prica.mihai@gmail.com>2013-06-11 13:43:38 +0300
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:41:56 -0400
commit6b967c23ec5fc8a5397aba6e6365e3dd00250185 (patch)
treef0f72a08b9d970c3838f719c4daf91c9df6ca4b6
parent65281feea7f9f2532bc39420ccbbd9ff9276e48b (diff)
downloadmeta-cloud-services-6b967c23ec5fc8a5397aba6e6365e3dd00250185.tar.gz
python-nova: Change DB backend to postgres
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_2013.1.bb6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb
index 6bba638..dcb35b9 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb
@@ -51,7 +51,7 @@ do_install_append() {
51 install -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR} 51 install -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR}
52 52
53 # Create the sqlite database 53 # Create the sqlite database
54 touch ${NOVA_CONF_DIR}/nova.db 54 #touch ${NOVA_CONF_DIR}/nova.db
55 install -d ${NOVA_CONF_DIR}/instances 55 install -d ${NOVA_CONF_DIR}/instances
56} 56}
57 57
@@ -69,13 +69,11 @@ pkg_postinst_${PN} () {
69 69
70 # Needed when using a MySQL backend 70 # Needed when using a MySQL backend
71 # mysql -u root -e "CREATE DATABASE nova CHARACTER SET latin1;" 71 # mysql -u root -e "CREATE DATABASE nova CHARACTER SET latin1;"
72 sudo -u postgres createdb nova
72 nova-manage db sync 73 nova-manage db sync
73} 74}
74 75
75PACKAGECONFIG ??= "sqlite"
76 76
77PACKAGECONFIG[sqlite] = ",,,sqlite3"
78PACKAGECONFIG[mysql] = ",,,mysql5-server mysql5-client mysql-python libmysqlclient"
79 77
80FILES_${PN} += "${sysconfdir}/${SRCNAME}/* \ 78FILES_${PN} += "${sysconfdir}/${SRCNAME}/* \
81 ${sysconfdir}/sudoers.d " 79 ${sysconfdir}/sudoers.d "