Skip to content

Instantly share code, notes, and snippets.

@kjleng
Last active February 18, 2016 23:05
Show Gist options
  • Save kjleng/fedbbbb7359735926829 to your computer and use it in GitHub Desktop.
Save kjleng/fedbbbb7359735926829 to your computer and use it in GitHub Desktop.
sample Vagrantfile
##### Source: https://github.com/smdahlen/vagrant-hostmanager/blob/master/README.md
Vagrant.configure("2") do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
config.vm.define 'example-box' do |node|
node.vm.hostname = 'example-box-hostname'
node.vm.network :private_network, ip: '192.168.42.42'
node.hostmanager.aliases = %w(example-box.localdomain example-box-alias)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment