Skip to content

Commit

Permalink
Include the vagrant-hostsupdater plugin
Browse files Browse the repository at this point in the history
Per #2. This still doesn't work (it fails with `Unknown configuration
section 'hostsupdater'.`), but it's a step in the right direction.
  • Loading branch information
waldoj committed Jul 8, 2013
1 parent f18537e commit 4cb23b2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,17 @@ Vagrant.configure("2") do |config|
puppet.module_path = "modules"
puppet.options = ['--verbose']
end

# Install the required plugins
def require_plugin plugin
puts `cd ~/ >/dev/null && vagrant plugin install #{plugin}` unless `cd ~/ && vagrant plugin list`.chomp.split("\n").select{|x| x.include? plugin}.length > 0
end

require_plugin = "vagrant-hostsupdater"

config.vm.hostname = "statedecoded.dev"
config.vm.network :private_network, :ip => "192.168.56.101"
config.hostsupdater.aliases = %w{www.statedecoded.dev}
config.hostsupdater.remove_on_suspend = true

end

0 comments on commit 4cb23b2

Please sign in to comment.