Merge "Enable image cache"

This commit is contained in:
Jenkins 2017-02-06 10:49:34 +00:00 committed by Gerrit Code Review
commit 2cb082ddd8

View File

@ -328,6 +328,16 @@ EOF
fi
)
# enable image cache to avoid downloading images frequently
(
localconf="/opt/stack/new/devstack/local.conf"
cat <<EOF >>"$localconf"
[[post-config|/etc/nova/nova.conf]]
[xenserver]
cache_images = all
EOF
)
# delete folders to save disk space
sudo rm -rf /opt/git
}