Remove ssh host keys during image build

If we're going to remove cloud-init, then we need to make sure we don't
bake in ssh host keys.

Change-Id: Id67934924053cce77b440ddb521112fe1f96e76a
This commit is contained in:
Monty Taylor 2015-03-19 13:10:17 -04:00
parent a175e5ad33
commit 1c04bff0d6
2 changed files with 4 additions and 0 deletions

View File

@ -58,3 +58,5 @@ set -e
# Make sure resolv.conf settings don't break dib
echo "nameserver $NODEPOOL_STATIC_NAMESERVER"> /etc/resolv.conf
rm -f /etc/ssh/ssh_host_*

View File

@ -173,5 +173,7 @@ sudo -H virtualenv /usr/zuul-swift-logs-env
sudo -H /usr/zuul-swift-logs-env/bin/pip install python-magic argparse \
requests glob2
sudo rm -f /etc/ssh/ssh_host_*
sync
sleep 5