From 850a727aaba09d52a4c2d64d2732fe323a726623 Mon Sep 17 00:00:00 2001
From: Mark Goddard <mark@stackhpc.com>
Date: Mon, 23 Oct 2017 14:46:21 +0100
Subject: [PATCH] Set the Vagrant development VM's hostname

By default the hostname will be localhost, which causes issues with
RabbitMQ.
---
 Vagrantfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Vagrantfile b/Vagrantfile
index fc90b165..be09dc4c 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -19,6 +19,10 @@ Vagrant.configure("2") do |config|
   # `vagrant box outdated`. This is not recommended.
   # config.vm.box_check_update = false
 
+  # The default hostname is localhost, so set it to something a little more
+  # sensible.
+  config.vm.hostname = "controller1"
+
   # Create a forwarded port mapping which allows access to a specific port
   # within the machine from a port on the host machine. In the example below,
   # accessing "localhost:8080" will access port 80 on the guest machine.
-- 
GitLab