Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
49cbb4e
CLOUDSTACK-7143: upgrade systemvm to latest debian stable, 7.6.0.
lsimons Jul 21, 2014
35b1875
CLOUDSTACK-7143: split base.sh into its two functions.
lsimons Jul 21, 2014
fb258b5
CLOUDSTACK-7143: move network tuning from cleanup.sh to its own script.
lsimons Jul 21, 2014
50e2c01
CLOUDSTACK-7143: merge systemvm templates, step 1: remove differences
lsimons Jul 21, 2014
03dba3d
CLOUDSTACK-7143: merge systemvm templates, step 2: only one template …
lsimons Jul 21, 2014
afe696e
CLOUDSTACK-7143: remove 'manual' from preseed config. No other changes.
lsimons Jul 21, 2014
d7aca05
CLOUDSTACK-7143: reformat definition.rb code. No other changes.
lsimons Jul 21, 2014
6b36577
CLOUDSTACK-7143: move add_backports to apt_upgrade.sh
lsimons Jul 21, 2014
751a4d2
CLOUDSTACK-7143: cleanup apt_upgrade.sh code
lsimons Jul 21, 2014
6129113
CLOUDSTACK-7143: add vagrant_box_build_time file that's standard with…
lsimons Jul 21, 2014
58a11d3
CLOUDSTACK-7143: cleanup configure_gruh.sh code
lsimons Jul 21, 2014
82dedcc
CLOUDSTACK-7143: split login config out from postinstall.sh
lsimons Jul 21, 2014
3bf9ddf
CLOUDSTACK-7143: cleanup configure_login.sh code
lsimons Jul 21, 2014
ae65bf1
CLOUDSTACK-7143: split locale config into its own file
lsimons Jul 21, 2014
d87d60a
CLOUDSTACK-7143: cleanup configure_locale.sh code
lsimons Jul 21, 2014
77677a3
CLOUDSTACK-7143: move fix_acpid to its own file
lsimons Jul 21, 2014
db8eb12
CLOUDSTACK-7143: cleanup configure_acpid.sh code
lsimons Jul 21, 2014
5003845
CLOUDSTACK-7143: cleanup cleanup.sh code
lsimons Jul 21, 2014
6e714dc
CLOUDSTACK-7143: split connection tracking config into its own file
lsimons Jul 21, 2014
0addd5a
CLOUDSTACK-7143: move networking logic from postinstall.sh to configu…
lsimons Jul 21, 2014
fc87fc4
CLOUDSTACK-7143: cleanup configure_networking.sh code
lsimons Jul 21, 2014
95d77c2
CLOUDSTACK-7143: move install_packages from postinstall.sh to its own…
lsimons Jul 21, 2014
cdb30cc
CLOUDSTACK-7143: consider vhdutil a software package
lsimons Jul 21, 2014
0e62aab
CLOUDSTACK-7143: reorg of install_systemvm_packages.sh (no logic chan…
lsimons Jul 21, 2014
3ac947f
CLOUDSTACK-7143: collapse apt-get install onto one line
lsimons Jul 21, 2014
207c50a
CLOUDSTACK-7143: rename postinstall.sh to represent what remains
lsimons Jul 21, 2014
b9f606b
CLOUDSTACK-7143: cleanup configure_systemvm_services.sh code
lsimons Jul 21, 2014
30fe938
CLOUDSTACK-7143: tune timeouts to expect about <=~60 min build
lsimons Jul 21, 2014
1567380
CLOUDSTACK-7143: cleanup zerodisk.sh code
lsimons Jul 21, 2014
44a888a
CLOUDSTACK-7143: cleanup configure_conntrack.sh code
lsimons Jul 21, 2014
1af56f8
CLOUDSTACK-7143: license headers on all the systemvm scripts
lsimons Jul 21, 2014
8883c41
CLOUDSTACK-7143: improve build.sh ergonomics
lsimons Jul 21, 2014
9b5d5ff
CLOUDSTACK-7143: improve build.sh failure handling and recovery
lsimons Jul 21, 2014
674fa8d
CLOUDSTACK-7143: add the ability to inject a custom SSH key
lsimons Jul 21, 2014
74c3815
CLOUDSTACK-7143: use shar to inject cloud-scripts from working copy
lsimons Jul 21, 2014
aa6f5a3
CLOUDSTACK-7143: add tests for the appliance build
lsimons Jul 21, 2014
f4bc5c4
CLOUDSTACK-7143: fix a bug in the debianbase template that was refere…
lsimons Jul 22, 2014
e1beceb
CLOUDSTACK-7143: fix a bug where a script file rename wasn't propagat…
lsimons Jul 22, 2014
751e778
CLOUDSTACK-7143: attempt at a reliable way to set up rvm/bundler on j…
lsimons Jul 22, 2014
11b399f
CLOUDSTACK-7143: install openssl early enough to allow generating pas…
lsimons Jul 22, 2014
19addac
CLOUDSTACK-7143: make script compatible with linux mktemp
lsimons Jul 22, 2014
cb2b2d1
CLOUDSTACK-7143: sometimes the consolidated 'apt' command runs out of…
lsimons Jul 22, 2014
b8d1cd0
CLOUDSTACK-7143: initial apt-upgrade still running out of space (upgr…
lsimons Jul 22, 2014
10afa81
CLOUDSTACK-7143: fix the fix for rvm/ruby/bundler setup on jenkins
lsimons Jul 22, 2014
3cac804
CLOUDSTACK-7143: fix do_signature to account for change to install_cl…
lsimons Jul 22, 2014
52a8596
CLOUDSTACK-7143: a better fix for kernel upgrade disk space problems
lsimons Jul 22, 2014
20821e2
CLOUDSTACK-7143: fix a missing apt-get update
lsimons Jul 22, 2014
9633c4a
CLOUDSTACK-7143: attempt to export a vagrant box
lsimons Jul 23, 2014
84c29f9
CLOUDSTACK-7143: more robust box cleanup
lsimons Jul 25, 2014
3ef8ef7
CLOUDSTACK-7143: more reliable support for vagrant box export
lsimons Jul 25, 2014
f5e6eb9
CLOUDSTACK-7143: try to fix jenkins problems with last 2 commits
lsimons Jul 25, 2014
aa54c95
CLOUDSTACK-7143: remove erroneous backticks
lsimons Jul 25, 2014
13b227f
CLOUDSTACK-7143: Fixed box file for virtualbox
Jul 28, 2014
511e12e
CLOUDSTACK-7143: work on vagrant box export
lsimons Jul 29, 2014
4118c9c
CLOUDSTACK-7143: only archive the zipped hyperv image
lsimons Jul 31, 2014
d68d7ed
CLOUDSTACK-7143: survive / in branch names
lsimons Sep 4, 2014
d3af68c
CLOUDSTACK-7143: don't call rvm from build
lsimons Sep 17, 2014
aeb5007
CLOUDSTACK-7143: note shar dependency
lsimons Sep 18, 2014
4e5ab7d
CLOUDSTACK-7143: protect against old ruby
lsimons Sep 19, 2014
c2e4876
CLOUDSTACK-7143: attempt to be safer when cleaning up
lsimons Sep 22, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CLOUDSTACK-7143: collapse apt-get install onto one line
In theory this _could_ have changed behavior (apt coming up with a different
solution, or one of the packages configuring a new apt repository), but in my
testing, the end result is the same.
  • Loading branch information
lsimons committed Sep 4, 2014
commit 3ac947fa36cd20a9a7bcd9f467aff53f9af71ace
Original file line number Diff line number Diff line change
Expand Up @@ -28,51 +28,36 @@ function install_packages() {

local apt_install="apt-get --no-install-recommends -q -y --force-yes install"

# Basic packages
${apt_install} rsyslog logrotate cron chkconfig insserv net-tools ifupdown vim-tiny netbase iptables
${apt_install} openssh-server openssl e2fsprogs dhcp3-client tcpdump socat wget
# ${apt_install} grub-legacy
${apt_install} python bzip2 sed gawk diffutils grep gzip less tar telnet ftp rsync traceroute psmisc lsof procps inetutils-ping iputils-arping httping
${apt_install} dnsutils zip unzip ethtool uuid file iproute acpid virt-what sudo

# sysstat
${apt_install} sysstat
# apache
${apt_install} apache2 ssl-cert

# dnsmasq
${apt_install} dnsmasq dnsmasq-utils
# nfs client
${apt_install} nfs-common
# nfs irqbalance
${apt_install} irqbalance

# cifs client
${apt_install} samba-common
${apt_install} cifs-utils

# vpn stuff
${apt_install} xl2tpd bcrelay ppp ipsec-tools tdb-tools
${apt_install} openswan=1:2.6.37-3

# xenstore utils
${apt_install} xenstore-utils libxenstore3.0
# keepalived and conntrackd for redundant router
${apt_install} keepalived conntrackd ipvsadm libnetfilter-conntrack3 libnl1
# ipcalc
${apt_install} ipcalc
apt-get update
# java
${apt_install} openjdk-7-jre-headless

${apt_install} iptables-persistent

#libraries required for rdp client (Hyper-V)
${apt_install} libtcnative-1 libssl-dev libapr1-dev
#32 bit architecture support:: not required for 32 bit template
if [ "${arch}" != "i386" ]; then
dpkg --add-architecture i386
${apt_install} links:i386 libuuid1:i386
fi

# vmware tools
${apt_install} open-vm-tools
# commented installaion of vmware-tools as we are using the opensource open-vm-tools:
${apt_install} \
rsyslog logrotate cron chkconfig insserv net-tools ifupdown vim-tiny netbase iptables \
openssh-server openssl e2fsprogs dhcp3-client tcpdump socat wget \
python bzip2 sed gawk diffutils grep gzip less tar telnet ftp rsync traceroute psmisc lsof procps \
inetutils-ping iputils-arping httping \
dnsutils zip unzip ethtool uuid file iproute acpid virt-what sudo \
sysstat \
apache2 ssl-cert \
dnsmasq dnsmasq-utils \
nfs-common irqbalance \
samba-common cifs-utils \
xl2tpd bcrelay ppp ipsec-tools tdb-tools \
openswan=1:2.6.37-3 \
xenstore-utils libxenstore3.0 \
keepalived conntrackd ipvsadm libnetfilter-conntrack3 libnl1 \
ipcalc \
openjdk-7-jre-headless \
iptables-persistent \
libtcnative-1 libssl-dev libapr1-dev \
open-vm-tools \
haproxy \
radvd

# commented out installation of vmware-tools as we are using the open source open-vm-tools:
# ${apt_install} build-essential linux-headers-`uname -r`
# df -h
# PREVDIR=$PWD
Expand All @@ -86,23 +71,12 @@ function install_packages() {
# rm -fr /opt/vmware-tools-distrib
# apt-get -q -y --force-yes purge build-essential

${apt_install} haproxy

# Hyperv kvp daemon - 64bit only
if [ "${arch}" == "amd64" ]; then
# Download the hv kvp daemon
wget http://people.apache.org/~rajeshbattala/hv-kvp-daemon_3.1_amd64.deb
dpkg -i hv-kvp-daemon_3.1_amd64.deb
fi

#32 bit architecture support:: not required for 32 bit template
if [ "${arch}" != "i386" ]; then
dpkg --add-architecture i386
apt-get update
${apt_install} links:i386 libuuid1:i386
fi

${apt_install} radvd
}

return 2>/dev/null || install_packages