mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1066: no need for build helpers. Also reduces attack surface of system vm
CLOUDSTACK-1066: no need for busybox and dictionaries CLOUDSTACK-1066: fix bug in generating signature CLOUDSTACK-1066: don't confuse veewee about root password Clean up stuff copied in to vm by veewee
This commit is contained in:
parent
31791e241d
commit
82dc16e58a
|
|
@ -1,8 +1,8 @@
|
|||
# Update the box
|
||||
apt-get -y update
|
||||
#below are needed for ruby perhaps
|
||||
apt-get -y install linux-headers-$(uname -r) build-essential
|
||||
apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
|
||||
#apt-get -y install linux-headers-$(uname -r) build-essential
|
||||
#apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
|
||||
apt-get -y install curl unzip
|
||||
apt-get clean
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# Clean up
|
||||
apt-get -y remove linux-headers-$(uname -r) build-essential
|
||||
#apt-get -y remove linux-headers-$(uname -r) build-essential
|
||||
apt-get -y remove dictionaries-common busybox
|
||||
apt-get -y autoremove
|
||||
apt-get clean
|
||||
|
||||
# Removing leftover leases and persistent rules
|
||||
echo "cleaning up dhcp leases"
|
||||
|
|
@ -15,3 +17,6 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|||
|
||||
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
||||
echo "pre-up sleep 2" >> /etc/network/interfaces
|
||||
|
||||
#clean up stuff copied in by veewee
|
||||
rm -f /root/*
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ do_fixes() {
|
|||
}
|
||||
|
||||
signature() {
|
||||
mkdir -p /var/cache/cloud/
|
||||
touch /var/cache/cloud/cloud-scripts-signature
|
||||
echo "Cloudstack Release $CLOUDSTACK_RELEASE $(date)" > /etc/cloudstack-release
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ Veewee::Definition.declare({
|
|||
:kickstart_file => "preseed.cfg",
|
||||
:ssh_login_timeout => "10000",
|
||||
:ssh_user => "root",
|
||||
:ssh_password => "vagrant",
|
||||
:ssh_password => "password",
|
||||
:ssh_key => "",
|
||||
:ssh_host_port => "7222",
|
||||
:ssh_guest_port => "22",
|
||||
|
|
|
|||
Loading…
Reference in New Issue