From b7ec45cd3edcb7ebf28044d962fa7065e7358774 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Mon, 12 Feb 2018 16:50:17 +0000 Subject: [PATCH] Bug 1428919 - Vagrant: Update to latest Bento image (#3202) To pick up the newer kernel/security updates. Only takes effect when people destroy/recreate their VM, so also adds a `dist-upgrade` to upgrade existing boxes. (The older Bento box had a broken kernel config so `dist-upgrade` can't upgrade the kernel, but it's better than nothing.) Also switches the Hyper-V provider to the Bento images for parity, since Bento now create Hyper-V variants too. The `box` name cannot be factored out of the provider blocks due to: https://github.com/hashicorp/vagrant/issues/9452 --- Vagrantfile | 5 +++-- vagrant/setup.sh | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 379320152..d1a2d03cf 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -26,13 +26,14 @@ Vagrant.configure("2") do |config| # The Bento boxes (https://github.com/chef/bento) are recommended over the # Canonical ones, since they more closely follow Vagrant best practices. override.vm.box = "bento/ubuntu-16.04" - override.vm.box_version = ">= 2.3.5" + override.vm.box_version = ">= 201802.02.0" vb.name = "treeherder" vb.memory = "3072" end config.vm.provider "hyperv" do |hv, override| - override.vm.box = "ericmann/trusty64" + override.vm.box = "bento/ubuntu-16.04" + override.vm.box_version = ">= 201801.02.0" hv.vmname = "treeherder" hv.memory = "3072" end diff --git a/vagrant/setup.sh b/vagrant/setup.sh index badf817d8..317f8b80c 100644 --- a/vagrant/setup.sh +++ b/vagrant/setup.sh @@ -56,6 +56,7 @@ fi echo '-----> Installing/updating APT packages' sudo -E apt-get -yqq update +sudo -E apt-get -yqq dist-upgrade # libgtk-3.0 and libxt-dev are required by Firefox # libmysqlclient-dev is required by mysqlclient # openjdk-8-jre-headless is required by Elasticsearch