diff options
Diffstat (limited to 'meta-openstack/recipes-devtools')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova/nova.conf | 2 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova_2013.1.bb | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova.conf b/meta-openstack/recipes-devtools/python/python-nova/nova.conf index e33c172..3c90674 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova.conf +++ b/meta-openstack/recipes-devtools/python/python-nova/nova.conf | |||
| @@ -34,7 +34,7 @@ force_dhcp_release=False | |||
| 34 | dhcpbridge=/usr/bin/nova-dhcpbridge | 34 | dhcpbridge=/usr/bin/nova-dhcpbridge |
| 35 | 35 | ||
| 36 | #Database configuration | 36 | #Database configuration |
| 37 | sql_connection = postgresql://admin:admin@localhost/nova | 37 | sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/nova |
| 38 | 38 | ||
| 39 | #RabbitMQ configuration | 39 | #RabbitMQ configuration |
| 40 | rpc_backend = nova.rpc.impl_kombu | 40 | rpc_backend = nova.rpc.impl_kombu |
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 5a3750a..aeeacbc 100644 --- a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb +++ b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb | |||
| @@ -54,6 +54,9 @@ do_install_append() { | |||
| 54 | sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ | 54 | sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ |
| 55 | -i ${WORKDIR}/api-paste.ini | 55 | -i ${WORKDIR}/api-paste.ini |
| 56 | 56 | ||
| 57 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/nova.conf | ||
| 58 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/nova.conf | ||
| 59 | |||
| 57 | #Copy the configuration file | 60 | #Copy the configuration file |
| 58 | install -m 664 ${WORKDIR}/nova.conf ${NOVA_CONF_DIR}/nova.conf | 61 | install -m 664 ${WORKDIR}/nova.conf ${NOVA_CONF_DIR}/nova.conf |
| 59 | install -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR} | 62 | install -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR} |
| @@ -85,7 +88,7 @@ pkg_postinst_${SRCNAME}-controller () { | |||
| 85 | sudo -u postgres initdb -D /etc/postgresql/ | 88 | sudo -u postgres initdb -D /etc/postgresql/ |
| 86 | /etc/init.d/postgresql start | 89 | /etc/init.d/postgresql start |
| 87 | sleep 0.2 | 90 | sleep 0.2 |
| 88 | sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" | 91 | sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" |
| 89 | fi | 92 | fi |
| 90 | 93 | ||
| 91 | sudo -u postgres createdb nova | 94 | sudo -u postgres createdb nova |
