From d51020cdfc1c023f1953a7b6970f12cf09985900 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Tue, 26 Sep 2017 18:15:47 -0400 Subject: Update vagrant centos config to CentOS 7.4 Change-Id: I45c1227b53ba9e57b94f1bc68de939cd3ce9d619 Signed-off-by: Dave Wallace --- extras/vagrant/Vagrantfile | 3 ++- extras/vagrant/Vagrantfile.vcl_test | 3 ++- extras/vagrant/update.sh | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'extras') diff --git a/extras/vagrant/Vagrantfile b/extras/vagrant/Vagrantfile index 8d6d02a6370..714ba94c953 100644 --- a/extras/vagrant/Vagrantfile +++ b/extras/vagrant/Vagrantfile @@ -6,7 +6,8 @@ Vagrant.configure(2) do |config| # Pick the right distro and bootstrap, default is ubuntu1604 distro = ( ENV['VPP_VAGRANT_DISTRO'] || "ubuntu1604") if distro == 'centos7' - config.vm.box = "puppetlabs/centos-7.2-64-nocm" + config.vm.box = "centos/7" + config.vm.box_version = "1708.01" config.ssh.insert_key = false else config.vm.box = "puppetlabs/ubuntu-16.04-64-nocm" diff --git a/extras/vagrant/Vagrantfile.vcl_test b/extras/vagrant/Vagrantfile.vcl_test index 92d6832ac6e..d05594241c1 100644 --- a/extras/vagrant/Vagrantfile.vcl_test +++ b/extras/vagrant/Vagrantfile.vcl_test @@ -6,7 +6,8 @@ Vagrant.configure(2) do |config| # Pick the right distro and bootstrap, default is ubuntu1604 distro = ( ENV['VPP_VAGRANT_DISTRO'] || "ubuntu1604") if distro == 'centos7' - config.vm.box = "puppetlabs/centos-7.2-64-nocm" + config.vm.box = "centos/7" + config.vm.box_version = "1708.01" config.ssh.insert_key = false else config.vm.box = "puppetlabs/ubuntu-16.04-64-nocm" diff --git a/extras/vagrant/update.sh b/extras/vagrant/update.sh index b630449271e..b4962bfc313 100755 --- a/extras/vagrant/update.sh +++ b/extras/vagrant/update.sh @@ -42,6 +42,11 @@ if [ $DISTRIB_ID == "Ubuntu" ]; then # Install useful but non-mandatory tools apt-get install -y emacs x11-utils git-review gdb gdbserver xfce4-terminal iperf3 elif [ $DISTRIB_ID == "CentOS" ]; then + if [ "$(echo $DISTRIB_RELEASE | cut -d'.' -f1)" == "7" ]; then + rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm + yum groupinstall "X Window system" -y + yum groupinstall xfce -y + fi # Standard update + upgrade dance yum check-update yum update -y -- cgit 1.2.3-korg