#!/bin/bash -ex
PACKSTACK_CONFIG_FILE="/tmp/packstack.txt"

if [ $(id -u) != 0 ]; then
    # preserve environment so we can have ZUUL_* params
    SUDO='sudo -E'
fi

echo -e "Generating packstack config for:
- keystone
- glance (file backend)
- nova
- neutron (ovs+vxlan)
- cinder (lvm+iscsi)
- ceilometer
- aodh
- trove
- manila
- nagios
- tempest (regex: 'smoke TelemetryAlarming')"
echo "tempest will run if packstack's installation completes successfully."
echo

packstack --allinone \
          --os-swift-install=n \
          --os-horizon-install=n \
          --os-manila-install=y \
          --glance-backend=swift \
          --provision-demo=y \
          --provision-tempest=y \
          --run-tempest=y \
          --run-tempest-tests="smoke TelemetryAlarming" \
          --gen-answer-file=${PACKSTACK_CONFIG_FILE}
sed -i -re "s,(.*_PASSWORD|.*_PW)=.*,\1=packstack," ${PACKSTACK_CONFIG_FILE}

$SUDO packstack --answer-file=${PACKSTACK_CONFIG_FILE}

#!/bin/bash -ex
PACKSTACK_CONFIG_FILE="/tmp/packstack.txt"

if [ $(id -u) != 0 ]; then
    # preserve environment so we can have ZUUL_* params
    SUDO='sudo -E'
fi

echo -e "Generating packstack config for:
- keystone
- glance (file backend)
- nova
- neutron (ovs+vxlan)
- cinder (lvm+iscsi)
- ceilometer
- aodh
- trove
- manila
- nagios"
echo "tempest will run if packstack's installation completes successfully."
echo

packstack --allinone \
          --os-swift-install=n \
          --os-horizon-install=n \
          --os-manila-install=y \
          --glance-backend=swift \
          --provision-demo=y \
          --provision-tempest=y \
          --run-tempest=y \
          --run-tempest-tests="smoke TelemetryAlarming" \
          --gen-answer-file=${PACKSTACK_CONFIG_FILE}
sed -i -re "s,(.*_PASSWORD|.*_PW)=.*,\1=packstack," ${PACKSTACK_CONFIG_FILE}

$SUDO packstack --answer-file=${PACKSTACK_CONFIG_FILE}

--- 
+++ 
@@ -16,7 +16,8 @@
 - aodh
 - trove
 - manila
-- nagios"
+- nagios
+- tempest (regex: 'smoke TelemetryAlarming')"
 echo "tempest will run if packstack's installation completes successfully."
 echo
 
Add tempest in the list of things that are configured

It was forgotten in the initial commit.

Change-Id: I0d5476ca979f7ed92abad66b7716aa57a54db8d3
