Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marklabrecque/e477cc176c1a511d75aa4a535f63f9ec to your computer and use it in GitHub Desktop.
Save marklabrecque/e477cc176c1a511d75aa4a535f63f9ec to your computer and use it in GitHub Desktop.
Updating Vagrantfile to use host-updater Vagrant plugin
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