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 | |
Brianna Poulos | 69e3d47 | 2018-02-22 21:36:42 +0000 | [diff] [blame] | 19 | # Enable image signature verification in nova.conf |
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 | |
Brianna Poulos | 69e3d47 | 2018-02-22 21:36:42 +0000 | [diff] [blame] | 24 | # Enable ephemeral storage encryption in nova.conf |
Jackie Truong | ab903f3 | 2017-04-10 18:03:27 -0400 | [diff] [blame] | 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 |
Brianna Poulos | 69e3d47 | 2018-02-22 21:36:42 +0000 | [diff] [blame] | 31 | # in barbican in tempest.conf |
dane-fichter | 5af4559 | 2017-02-08 17:29:53 -0800 | [diff] [blame] | 32 | echo -e '[[test-config|$TEMPEST_CONFIG]]' >> $LOCALCONF_PATH |
| 33 | echo -e '[auth]' >> $LOCALCONF_PATH |
| 34 | echo -e 'tempest_roles=creator' >> $LOCALCONF_PATH |
Jackie Truong | f36d46b | 2017-10-25 17:06:12 -0400 | [diff] [blame] | 35 | |
dane-fichter | 5af4559 | 2017-02-08 17:29:53 -0800 | [diff] [blame] | 36 | # Glance v1 doesn't do signature verification on image upload |
| 37 | echo -e '[image-feature-enabled]' >> $LOCALCONF_PATH |
| 38 | echo -e 'api_v1=False' >> $LOCALCONF_PATH |
Brianna Poulos | 69e3d47 | 2018-02-22 21:36:42 +0000 | [diff] [blame] | 39 | |
| 40 | # Enable ephemeral storage encryption in tempest.conf |
| 41 | echo -e '[ephemeral_storage_encryption]' >> $LOCALCONF_PATH |
| 42 | echo -e 'enabled = True' >> $LOCALCONF_PATH |