From cde4cef215ab59c275955d1c1d9e65a29234058a Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Wed, 21 Jan 2015 13:21:53 +0100 Subject: [PATCH] Switch manage_etc_hosts from True to localhost When set to true this cloud-init setting overwrites the /etc/hosts file at reboot, breaking stuff in TripleO where controllers rely on resolving each other by name. We still want cloud-init to add in there a mapping for the local fqdn, so we switched to 'localhost' [1] 1. http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L470 Change-Id: I85468dece3b67f39841aa826f9b7ca4bf113027a Closes-Bug: 1411594 --- elements/base/install.d/10-cloud-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/base/install.d/10-cloud-init b/elements/base/install.d/10-cloud-init index 17b1c4b80..9411bad59 100755 --- a/elements/base/install.d/10-cloud-init +++ b/elements/base/install.d/10-cloud-init @@ -5,5 +5,5 @@ set -eu set -o pipefail dd of=/etc/cloud/cloud.cfg.d/10_etc_hosts.cfg << EOF -manage_etc_hosts: True +manage_etc_hosts: localhost EOF