From c2428e1673ec1e61fed74f1b8dc855ad3232d04a Mon Sep 17 00:00:00 2001 From: Conner <59540839+TheConner@users.noreply.github.com> Date: Wed, 29 Jun 2022 10:12:07 -0400 Subject: [PATCH] Demo Vagrant version updates (nomad, consul, ubuntu) (#13518) - Use latest nomad 1.3.1 and consul 1.12.2 - Use latest Ubuntu LTS (easier to get podman plugin working, 18.04 does not have podman in main repositories). - Add increased memory for libvirt to match other VM providers --- demo/vagrant/Vagrantfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/demo/vagrant/Vagrantfile b/demo/vagrant/Vagrantfile index db998b8f2337..dc7719fef2fb 100644 --- a/demo/vagrant/Vagrantfile +++ b/demo/vagrant/Vagrantfile @@ -25,7 +25,7 @@ sudo docker --version sudo apt-get install unzip curl vim -y echo "Installing Nomad..." -NOMAD_VERSION=1.0.1 +NOMAD_VERSION=1.3.1 cd /tmp/ curl -sSL https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip -o nomad.zip unzip nomad.zip @@ -35,7 +35,7 @@ sudo chmod a+w /etc/nomad.d echo "Installing Consul..." -CONSUL_VERSION=1.9.0 +CONSUL_VERSION=1.12.2 curl -sSL https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip > consul.zip unzip /tmp/consul.zip sudo install consul /usr/bin/consul @@ -69,13 +69,18 @@ nomad -autocomplete-install SCRIPT Vagrant.configure(2) do |config| - config.vm.box = "bento/ubuntu-18.04" # 18.04 LTS + config.vm.box = "bento/ubuntu-22.04" # 22.04 LTS, Jammy config.vm.hostname = "nomad" config.vm.provision "shell", inline: $script, privileged: false # Expose the nomad api and ui to the host config.vm.network "forwarded_port", guest: 4646, host: 4646, auto_correct: true, host_ip: "127.0.0.1" + # Increase memory for Libvirt + config.vm.provider "libvirt" do |libvirt| + libvirt.memory = 1024 + end + # Increase memory for Parallels Desktop config.vm.provider "parallels" do |p, o| p.memory = "1024"