Skip to content

Commit

Permalink
no vagrant error if hostmanager not present
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanburnette committed Apr 1, 2017
1 parent bd605a5 commit a5a2c67
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Vagrantfile
Expand Up @@ -17,9 +17,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.password = "vagrant"

# Manage our hostfile for us
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
if Vagrant.has_plugin?("vagrant-hostmanager")
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
else
config.vm.post_up_message = "Vagrant-hostmanager is not installed. Manual update of your hostfile is required."
end

# Keep it simple; just 1 VM for db and web
config.vm.define "herokuwp" do |herokuwp|
Expand Down

0 comments on commit a5a2c67

Please sign in to comment.