Created
March 16, 2017 15:58
-
-
Save marklabrecque/e477cc176c1a511d75aa4a535f63f9ec to your computer and use it in GitHub Desktop.
Updating Vagrantfile to use host-updater Vagrant plugin
This file contains 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
unless Vagrant.has_plugin?("vagrant-hostsupdater") | |
raise 'vagrant-hostsupdater is not installed! run `vagrant plugin install vagrant-hostsupdater` to install it.' | |
end | |
# Change HOSTNAME to the hostname defined in the Vagrantfile already | |
project_hostname = "HOSTNAME" | |
# After puppet gets provisioned, at the followign line | |
config.vm.hostname = project_hostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment