Last active
February 18, 2016 23:05
-
-
Save kjleng/fedbbbb7359735926829 to your computer and use it in GitHub Desktop.
sample Vagrantfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### 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