Sha256: 5919e1fa02d11dc3fa35ff7970c2cfca9f524d1ccb0e61f0a980a1cd7ba19f4b

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby :

NAME = "ninja-differ"
FQDN = "#{NAME}.example.com"

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/focal64"
  config.vm.boot_timeout = 900

  # Use the normal insecure key
  # https://github.com/mitchellh/vagrant/issues/2608
  config.ssh.insert_key = false

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id,
      # Basics.
      "--name",       NAME,
      "--memory",     4096,
      # I/O APIC must be enabled to support a multi-core guest.
      "--cpus",       2,
      "--ioapic",     "on",
      # Enable native host virtualization features (yields better performance).
      "--pae",        "on",
      "--hwvirtex",   "on",
      "--largepages", "on",
      "--vtxvpid",    "on",
      # This causes the virtual machine to proxy DNS requests through the host
      # via NAT. Without this, the default resolver on the guest will introduce
      # a 5 second latency on every HTTP request... which is a real downer.
      "--natdnshostresolver1", "on"
    ]
  end

  config.vm.hostname = FQDN
  config.vm.provision :shell, path: "provision.sh"
end

#
# DONT FORGET!
#
# Force update VirtualBox Guest Additions
# Run the following command inside same directory as Vagrantfile
# Must be done once on your dev system
#
#   vagrant plugin install vagrant-vbguest
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ninja-differ-1.0.0 Vagrantfile