cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [15/50] git commit: updated refs/heads/master to 1290e10
Date Mon, 22 Sep 2014 19:44:14 GMT
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.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c7e63877
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c7e63877
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c7e63877

Branch: refs/heads/master
Commit: c7e6387752c5d4b931ed3f1ea1d39cdefffdbc3e
Parents: 22617e9
Author: Leo Simons <lsimons@schubergphilis.com>
Authored: Mon Jul 21 12:17:06 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Sep 22 21:37:19 2014 +0200

----------------------------------------------------------------------
 .../install_systemvm_packages.sh                | 84 +++++++-------------
 1 file changed, 29 insertions(+), 55 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c7e63877/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh b/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
index 31087bc..915703b 100644
--- a/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
+++ b/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
@@ -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
@@ -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


Mime
View raw message