
Rename the cloud_archive task to uca/rdo tasks for ubuntu/centos Rename the worker_upstrart task to the worker Rework the OSTYPE env var to "when: ansible_os_family" TODO * PXE (PREPROVISIONED=false) to be working for centos as well * pygraphviz for centos7, see also https://bugs.launchpad.net/fuel/+bug/1510884 * fix ubuntu only compatible examples, for example riak cluster deploy Closes-bug: 1553988 Change-Id: Iab130c3c79b3db99deb14ea50572c073532f4694 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
34 lines
883 B
Bash
34 lines
883 B
Bash
#!/bin/sh -eux
|
|
yum -y clean all
|
|
|
|
# Remove Virtualbox specific files
|
|
rm -rf /usr/src/vboxguest* /usr/src/virtualbox-ose-guest*
|
|
rm -rf *.iso *.iso.? /tmp/vbox /home/vagrant/.vbox_version
|
|
|
|
# Cleanup log files
|
|
find /var/log -type f | while read f; do echo -ne '' > $f; done;
|
|
|
|
rm -rf /usr/share/doc/*
|
|
|
|
# remove interface persistent
|
|
rm -f /etc/udev/rules.d/70-persistent-net.rules
|
|
|
|
for ifcfg in $(ls /etc/sysconfig/network-scripts/ifcfg-*)
|
|
do
|
|
bn=$(basename ${ifcfg})
|
|
if [ "${bn}" != "ifcfg-lo" ]
|
|
then
|
|
sed -i '/^UUID/d' /etc/sysconfig/network-scripts/${bn}
|
|
sed -i '/^HWADDR/d' /etc/sysconfig/network-scripts/${bn}
|
|
fi
|
|
done
|
|
|
|
if [ "${cleanup}" = "true" ] ; then
|
|
dd if=/dev/zero of=/EMPTY bs=1M
|
|
rm -f /EMPTY
|
|
fi
|
|
|
|
# Make sure we wait until all the data is written to disk, otherwise
|
|
# Packer might quite too early before the large files are deleted
|
|
sync
|