blob: 63b123e3f5d6d4ba145ba6f390a5ee340490e4f3 [file] [log] [blame]
Kaitlin Farr275af402017-02-15 16:01:47 -05001#!/bin/bash
2#
3# This script is executed inside pre_test_hook function in devstack gate.
4
5set -ex
6
7export DEST=${DEST:-$BASE/new}
8export DEVSTACK_DIR=${DEVSTACK_DIRE:-$DEST/devstack}
9export LOCALCONF_PATH=$DEVSTACK_DIR/local.conf
10
11# Here we can set some configurations for local.conf
12# for example, to pass some config options directly to .conf files
13
Jackie Truongab903f32017-04-10 18:03:27 -040014# Set up LVM device
15echo -e '[[local|localrc]]' >> $LOCALCONF_PATH
16echo -e 'NOVA_BACKEND=LVM' >> $LOCALCONF_PATH
17echo -e 'LVM_VOLUME_CLEAR=none' >> $LOCALCONF_PATH
18
dane-fichter5af45592017-02-08 17:29:53 -080019# For image signature verification tests
Kaitlin Farr275af402017-02-15 16:01:47 -050020echo -e '[[post-config|$NOVA_CONF]]' >> $LOCALCONF_PATH
21echo -e '[glance]' >> $LOCALCONF_PATH
22echo -e 'verify_glance_signatures = True' >> $LOCALCONF_PATH
23
Jackie Truongab903f32017-04-10 18:03:27 -040024# For ephemeral storage encryption tests
25echo -e '[ephemeral_storage_encryption]' >> $LOCALCONF_PATH
26echo -e 'key_size = 256' >> $LOCALCONF_PATH
27echo -e 'cipher = aes-xts-plain64' >> $LOCALCONF_PATH
28echo -e 'enabled = True' >> $LOCALCONF_PATH
29
dane-fichter5af45592017-02-08 17:29:53 -080030# Allow dynamically created tempest users to create secrets
31# in barbican
32echo -e '[[test-config|$TEMPEST_CONFIG]]' >> $LOCALCONF_PATH
33echo -e '[auth]' >> $LOCALCONF_PATH
34echo -e 'tempest_roles=creator' >> $LOCALCONF_PATH
35# Glance v1 doesn't do signature verification on image upload
36echo -e '[image-feature-enabled]' >> $LOCALCONF_PATH
37echo -e 'api_v1=False' >> $LOCALCONF_PATH
Jackie Truongab903f32017-04-10 18:03:27 -040038
39# Enable ephemeral storage encryption in Tempest
40echo -e '[ephemeral_storage_encryption]' >> $LOCALCONF_PATH
41echo -e 'enabled = True' >> $LOCALCONF_PATH