blob: 517fb00fb401fc82b6db29deccea1e32d68f49dc [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
Brianna Poulos69e3d472018-02-22 21:36:42 +000019# Enable image signature verification in nova.conf
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
Brianna Poulos69e3d472018-02-22 21:36:42 +000024# Enable ephemeral storage encryption in nova.conf
Jackie Truongab903f32017-04-10 18:03:27 -040025echo -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
Brianna Poulos69e3d472018-02-22 21:36:42 +000031# in barbican in tempest.conf
dane-fichter5af45592017-02-08 17:29:53 -080032echo -e '[[test-config|$TEMPEST_CONFIG]]' >> $LOCALCONF_PATH
33echo -e '[auth]' >> $LOCALCONF_PATH
34echo -e 'tempest_roles=creator' >> $LOCALCONF_PATH
Jackie Truongf36d46b2017-10-25 17:06:12 -040035
dane-fichter5af45592017-02-08 17:29:53 -080036# Glance v1 doesn't do signature verification on image upload
37echo -e '[image-feature-enabled]' >> $LOCALCONF_PATH
38echo -e 'api_v1=False' >> $LOCALCONF_PATH
Brianna Poulos69e3d472018-02-22 21:36:42 +000039
40# Enable ephemeral storage encryption in tempest.conf
41echo -e '[ephemeral_storage_encryption]' >> $LOCALCONF_PATH
42echo -e 'enabled = True' >> $LOCALCONF_PATH