summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/cinder.conf2
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb5
2 files changed, 5 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf
index 71f5fb4..93577bb 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf
+++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf
@@ -3,7 +3,7 @@
3#################### 3####################
4 4
5[DEFAULT] 5[DEFAULT]
6sql_connection = postgresql://admin:admin@localhost/cinder 6sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/cinder
7api_paste_confg = /etc/cinder/api-paste.ini 7api_paste_confg = /etc/cinder/api-paste.ini
8state_path = /etc/cinder/data/ 8state_path = /etc/cinder/data/
9 9
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
index e3d2b7e..95fa45b 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
@@ -29,6 +29,9 @@ do_install_append() {
29 sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ 29 sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \
30 -i ${WORKDIR}/api-paste.ini 30 -i ${WORKDIR}/api-paste.ini
31 31
32 sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/cinder.conf
33 sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/cinder.conf
34
32 install -d ${CINDER_CONF_DIR} 35 install -d ${CINDER_CONF_DIR}
33 install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ 36 install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/
34 install -m 600 ${WORKDIR}/api-paste.ini ${CINDER_CONF_DIR}/ 37 install -m 600 ${WORKDIR}/api-paste.ini ${CINDER_CONF_DIR}/
@@ -53,7 +56,7 @@ pkg_postinst_${SRCNAME} () {
53 sudo -u postgres initdb -D /etc/postgresql/ 56 sudo -u postgres initdb -D /etc/postgresql/
54 /etc/init.d/postgresql start 57 /etc/init.d/postgresql start
55 sleep 0.2 58 sleep 0.2
56 sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" 59 sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'"
57 fi 60 fi
58 61
59 sudo -u postgres createdb cinder 62 sudo -u postgres createdb cinder