Kaitlin Farr | 275af40 | 2017-02-15 16:01:47 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # This script is executed inside pre_test_hook function in devstack gate. |
| 4 | |
| 5 | set -ex |
| 6 | |
| 7 | export DEST=${DEST:-$BASE/new} |
| 8 | export DEVSTACK_DIR=${DEVSTACK_DIRE:-$DEST/devstack} |
| 9 | export 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 Truong | ab903f3 | 2017-04-10 18:03:27 -0400 | [diff] [blame^] | 14 | # Set up LVM device |
| 15 | echo -e '[[local|localrc]]' >> $LOCALCONF_PATH |
| 16 | echo -e 'NOVA_BACKEND=LVM' >> $LOCALCONF_PATH |
| 17 | echo -e 'LVM_VOLUME_CLEAR=none' >> $LOCALCONF_PATH |
| 18 | |
dane-fichter | 5af4559 | 2017-02-08 17:29:53 -0800 | [diff] [blame] | 19 | # For image signature verification tests |
Kaitlin Farr | 275af40 | 2017-02-15 16:01:47 -0500 | [diff] [blame] | 20 | echo -e '[[post-config|$NOVA_CONF]]' >> $LOCALCONF_PATH |
| 21 | echo -e '[glance]' >> $LOCALCONF_PATH |
| 22 | echo -e 'verify_glance_signatures = True' >> $LOCALCONF_PATH |
| 23 | |
Jackie Truong | ab903f3 | 2017-04-10 18:03:27 -0400 | [diff] [blame^] | 24 | # For ephemeral storage encryption tests |
| 25 | echo -e '[ephemeral_storage_encryption]' >> $LOCALCONF_PATH |
| 26 | echo -e 'key_size = 256' >> $LOCALCONF_PATH |
| 27 | echo -e 'cipher = aes-xts-plain64' >> $LOCALCONF_PATH |
| 28 | echo -e 'enabled = True' >> $LOCALCONF_PATH |
| 29 | |
dane-fichter | 5af4559 | 2017-02-08 17:29:53 -0800 | [diff] [blame] | 30 | # Allow dynamically created tempest users to create secrets |
| 31 | # in barbican |
| 32 | echo -e '[[test-config|$TEMPEST_CONFIG]]' >> $LOCALCONF_PATH |
| 33 | echo -e '[auth]' >> $LOCALCONF_PATH |
| 34 | echo -e 'tempest_roles=creator' >> $LOCALCONF_PATH |
| 35 | # Glance v1 doesn't do signature verification on image upload |
| 36 | echo -e '[image-feature-enabled]' >> $LOCALCONF_PATH |
| 37 | echo -e 'api_v1=False' >> $LOCALCONF_PATH |
Jackie Truong | ab903f3 | 2017-04-10 18:03:27 -0400 | [diff] [blame^] | 38 | |
| 39 | # Enable ephemeral storage encryption in Tempest |
| 40 | echo -e '[ephemeral_storage_encryption]' >> $LOCALCONF_PATH |
| 41 | echo -e 'enabled = True' >> $LOCALCONF_PATH |