Skip to content

Commit

Permalink
Demo Vagrant version updates (nomad, consul, ubuntu) (#13518)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
TheConner committed Jun 29, 2022
1 parent bbd11fd commit c2428e1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions demo/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c2428e1

Please sign in to comment.