2012-11-13 02:34:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Tweak the stock ubuntu cloud-init config
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-04-03 02:24:15 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2012-11-13 02:34:29 +00:00
|
|
|
|
2015-03-23 20:14:07 +00:00
|
|
|
# cloud-init May not actually be installed
|
|
|
|
mkdir -p /etc/cloud/cloud.cfg.d
|
2013-02-27 02:51:10 +00:00
|
|
|
dd of=/etc/cloud/cloud.cfg.d/10_etc_hosts.cfg << EOF
|
2015-01-21 12:21:53 +00:00
|
|
|
manage_etc_hosts: localhost
|
2012-11-13 02:34:29 +00:00
|
|
|
EOF
|