Skip to content

Commit 0e768b8

Browse files
paulczarmboersma
authored andcommitted
clean up /etc/chef, install inotify-tools
1 parent 48310a9 commit 0e768b8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

contrib/rackspace/prepare-rackspace-image.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,15 @@ rm -f /root/.ssh/authorized_keys
6969
# ssh host keys are automatically regenerated
7070
# on system boot by ubuntu cloud init
7171

72+
# remove /etc/chef so contents can't intefere with
73+
# node being converged (i.e. old keys)
74+
rm -f /etc/chef/*
75+
7276
# purge /var/log
7377
find /var/log -type f | xargs rm
7478

79+
# Sync call needs this package
80+
apt-get -yqq install inotify-tools
81+
7582
# flush writes to block storage
7683
sync

0 commit comments

Comments
 (0)