#!/bin/bash

set -e
set -u
set -x

# install server-config repo (needed for chef cookbooks)
RETURN_DIR=$(pwd)
mkdir -p /etc/lightdatasys
cd /etc/lightdatasys
git clone https://github.com/lightster/server-config.git server
cd server
chown -R vagrant:vagrant /etc/lightdatasys
git remote set-url origin git@github.com:lightster/server-config.git
cd $RETURN_DIR

#!/bin/bash

set -e
set -u
set -x

yum update -y

# we need git for cloning repos
yum install -y git

# install server-config repo (needed for chef cookbooks)
RETURN_DIR=$(pwd)
mkdir -p /etc/lightdatasys
cd /etc/lightdatasys
git clone https://github.com/lightster/server-config.git server
cd server
chown -R vagrant:vagrant /etc/lightdatasys
git remote set-url origin git@github.com:lightster/server-config.git
cd $RETURN_DIR

--- 
+++ 
@@ -3,11 +3,6 @@
 set -e
 set -u
 set -x
-
-yum update -y
-
-# we need git for cloning repos
-yum install -y git
 
 # install server-config repo (needed for chef cookbooks)
 RETURN_DIR=$(pwd)
Remove yum update / install from Vagrant up

yum update is ran and git is installed in the packer box build
process now
