Skip to content

Instantly share code, notes, and snippets.

@womchik
Created September 6, 2019 08:32
Show Gist options
  • Save womchik/41b4b4adf63c6edd0dbc85655d60e571 to your computer and use it in GitHub Desktop.
Save womchik/41b4b4adf63c6edd0dbc85655d60e571 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/bionic64"
config.ssh.insert_key = false
config.vbguest.iso_path = "https://download.virtualbox.org/virtualbox/6.0.0/VBoxGuestAdditions_6.0.0.iso"
config.disksize.size = "30GB"
config.vbguest.auto_update = true
config.ssh.extra_args = ["-o ControlMaster=no"]
# config.vm.network "forwarded_port", guest: 3000, host: 3000
# config.vm.network "forwarded_port", guest: 9090, host: 9090
config.vm.provider :virtualbox do |v|
v.name = "vtestn"
v.memory = 512
v.cpus = 2
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
# v.customize ["modifyvm", :id, "--uartmode1", "disconnected" ]
end
config.vm.hostname = "vhostn"
config.vm.synced_folder "/Users/wom/wellmax", "/vagrant", disabled: false
config.vm.define :vtest do |vtest|
end
# Ansible provisioner.
config.vm.provision "ansible" do |ansible|
ansible.verbose = ""
ansible.compatibility_mode = "2.0"
ansible.playbook = "provisioning/p.yml"
# ansible.inventory_path = "provisioning/inventory"
ansible.raw_ssh_args = ['-o ControlMaster=no']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment