devstack: install PostgreSQL devel tool for psycopg2

Change-Id: I830018cb3008f1036880c29c9a851b109a9be65e
This commit is contained in:
Julien Danjou 2015-11-06 11:10:35 +01:00
parent ec31d95b21
commit 3b4f23e2b0
1 changed files with 6 additions and 1 deletions

View File

@ -131,7 +131,12 @@ function _aodh_create_accounts {
# Activities to do before aodh has been installed.
function preinstall_aodh {
echo_summary "Preinstall not in virtualenv context. Skipping."
# Needed to build psycopg2
if is_ubuntu; then
install_package libpq-dev
else
install_package postgresql-devel
fi
}
# Remove WSGI files, disable and remove Apache vhost file