From 92d56790a6c42cb22dabe7a1d174e17968b69365 Mon Sep 17 00:00:00 2001
From: Brant Knudson <bknudson@us.ibm.com>
Date: Wed, 13 Aug 2014 16:27:51 -0500
Subject: [PATCH] Set sample_default for rpc_zmq_host

oslo-config-generator will use the sample_default for the sample
config file rather than the hostname of the system it happens to
be running on.

Change-Id: I9c7bf24cfe5c66155d00d9a1b390894d1ccb6bd8
---
 oslo/messaging/_drivers/impl_zmq.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/oslo/messaging/_drivers/impl_zmq.py b/oslo/messaging/_drivers/impl_zmq.py
index 77975a352..e9e3d9d67 100644
--- a/oslo/messaging/_drivers/impl_zmq.py
+++ b/oslo/messaging/_drivers/impl_zmq.py
@@ -77,6 +77,7 @@ zmq_opts = [
                help='Directory for holding IPC sockets.'),
 
     cfg.StrOpt('rpc_zmq_host', default=socket.gethostname(),
+               sample_default='localhost',
                help='Name of this node. Must be a valid hostname, FQDN, or '
                     'IP address. Must match "host" option, if running Nova.'),