From c7586839ceccf015982ea9b12db33f1495242063 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 7 Nov 2012 14:25:18 -0500 Subject: [PATCH] Add support for using postgresql. This adds a new condition to enable postgresql in devstack. This will allow for periodic testing of tempest with either mysql or postgresql. Change-Id: I1849d1cd0d03d9911e6cd9973a9d9f960f30e91a --- devstack-vm-gate-wrap.sh | 3 +++ devstack-vm-gate.sh | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index 59fccfd1..1e75d400 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -24,6 +24,9 @@ PROJECTS="openstack-dev/devstack openstack/nova openstack/glance openstack/keyst # Set to 1 to run the Tempest test suite export DEVSTACK_GATE_TEMPEST=${DEVSTACK_GATE_TEMPEST:-0} +# Set to 1 to run postgresql instead of mysql +export DEVSTACK_GATE_POSTGRES=${DEVSTACK_GATE_POSTGRES:-0} + # Set to 1 to run cinder instead of nova volume # Only applicable to stable/folsom branch export DEVSTACK_GATE_CINDER=${DEVSTACK_GATE_CINDER:-0} diff --git a/devstack-vm-gate.sh b/devstack-vm-gate.sh index 668e8524..dff1e1b8 100755 --- a/devstack-vm-gate.sh +++ b/devstack-vm-gate.sh @@ -95,6 +95,12 @@ if [ "$DEVSTACK_CINDER_SECURE_DELETE" -eq "0" ]; then cat <<\EOF >>localrc CINDER_SECURE_DELETE=False EOF +fi + +if [ "$DEVSTACK_GATE_POSTGRES" -eq "1" ]; then + cat <<\EOF >>localrc +use_database postgresql +EOF fi cat <>exerciserc