Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/250148
Change subject: nodepool: acquire hostname from cloud
......................................................................
nodepool: acquire hostname from cloud
The 'debian' element injects:
$ cat /etc/cloud/cloud.cfg.d/01_hostname.cfg
hostname: debian
On Jessie, cloud-init 0.7.6 ignores cloud metadata whenever hostname or
fqdn are set in a config file.
Remove the hardcoded hostname to let cloud-init fall back to cloud
metadata.
Bug: T117283
Change-Id: Ifabe5caf21507fa28066786302b9f2706d30568a
---
A dib/elements/wikimedia/install.d/11-cloud-hostname
1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/integration/config
refs/changes/48/250148/1
diff --git a/dib/elements/wikimedia/install.d/11-cloud-hostname
b/dib/elements/wikimedia/install.d/11-cloud-hostname
new file mode 100755
index 0000000..391b357
--- /dev/null
+++ b/dib/elements/wikimedia/install.d/11-cloud-hostname
@@ -0,0 +1,16 @@
+#!/bin/bash
+# vim: set et ts=4 sw=4:
+
+# Must happens after:
+# elements/debian/install.d/10-cloud-opinions
+
+if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
+ set -x
+fi
+set -eu
+set -o pipefail
+
+# Hardcoded hostname bypass cloud meta-data
+# Patch proposed upstream https://review.openstack.org/#/c/240614/
+# T117283
+rm -v -f /etc/cloud/cloud.cfg.d/01_hostname.cfg
--
To view, visit https://gerrit.wikimedia.org/r/250148
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifabe5caf21507fa28066786302b9f2706d30568a
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits