Merge "Add git-review to base system"
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Wed, 1 Feb 2017 16:20:26 +0000 (16:20 +0000)
committerGerrit Code Review <gerrit@fd.io>
Wed, 1 Feb 2017 16:20:27 +0000 (16:20 +0000)
1  2 
packer/provision/baseline.sh

@@@ -49,7 -49,7 +49,7 @@@ rh_systems() 
      # separate group installs from package installs since a non-existing
      # group with dnf based systems (F21+) will fail the install if such
      # a group does not exist
-     yum install -y -q unzip xz puppet git perl-XML-XPath wget make
+     yum install -y -q unzip xz puppet git git-review perl-XML-XPath wget make
  
      # All of our systems require Java (because of Jenkins)
      # Install all versions of the OpenJDK devel but force 1.7.0 to be the
@@@ -109,7 -109,7 +109,7 @@@ EO
  
      # add in stuff we know we need
      echo "---> Installing base packages"
-     apt-get install -qq unzip xz-utils puppet git libxml-xpath-perl make wget > /dev/null
+     apt-get install -qq unzip xz-utils puppet git git-review libxml-xpath-perl make wget > /dev/null
  
      # install Java 7
      echo "---> Configuring OpenJDK"
  
      # disable unattended upgrades & daily updates
      echo '---> Disabling automatic daily upgrades'
 -    apt-get remove unattended-upgrades
 -    if [ -f /usr/bin/systemctl ]
 -    then
 -        systemctl stop apt.systemd.daily
 -        systemctl disable apt.systemd.daily
 -    else
 -        /etc/init.d/unattended-upgrades stop
 -        update-rc.d -f unattended-upgrades remove
 -    fi
 +    sed -ine 's/"1"/"0"/g' /etc/apt/apt.conf.d/10periodic
 +    echo 'APT::Periodic::Unattended-Upgrade "0";' >> /etc/apt/apt.conf.d/10periodic
  }
  
  all_systems() {