Enable image cache

Change-Id: I0f503ac27b9ca0aee09206c0b51e3bb8c7705c9c
This commit is contained in:
Jianghua Wang 2017-01-24 16:13:38 +08:00
parent cd90eaf32a
commit d212738a15

View File

@ -325,6 +325,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
}