diskimage-builder/elements
Jiri Stransky a43b23c45a Make managing hosts entries optional
Diskimage-builder currently writes cloud-init config file which adds a
host entry mapping the hostname and FQDN to 127.0.0.1 into every image
built. This is probably useful for some use cases but not for all, so we
now allow customizing the manage_etc_hosts value via
DIB_CLOUD_INIT_ETC_HOSTS variable and also not writing the config at all
if that variable is explicitly set to an empty string (currently the
default is 'localhost' but in the future the default will be empty
string).

Particular description of the problem this causes in TripleO follows:

We get hosts files like this:

    ::1     localhost       localhost.localdomain   localhost6      localhost6.localdomain6
    127.0.0.1       localhost       localhost.localdomain   localhost4      localhost4.localdomain4
    127.0.0.1       ov-rl5i5saoc6h-1-hj5tzsbrdv4c-controller-dy6nuyarqy5z.novalocal ov-rl5i5saoc6h-1-hj5tzsbrdv4c-controller-dy6nuyarqy5z

    # HEAT_HOSTS_START - Do not edit manually within this section!

    192.0.2.17 ov-rl5i5saoc6h-0-wfzcsrqo34p6-controller-m3hy26lhxavl ov-rl5i5saoc6h-0-wfzcsrqo34p6-controller-m3hy26lhxavl.novalocal
    192.0.2.15 ov-rl5i5saoc6h-1-hj5tzsbrdv4c-controller-dy6nuyarqy5z ov-rl5i5saoc6h-1-hj5tzsbrdv4c-controller-dy6nuyarqy5z.novalocal
    192.0.2.16 ov-rl5i5saoc6h-2-a6v7saxnivm5-controller-7jboskte34r7 ov-rl5i5saoc6h-2-a6v7saxnivm5-controller-7jboskte34r7.novalocal
    # HEAT_HOSTS_END

The duplicate hostname/FQDN entry for 127.0.0.1 and 192.0.2.15 confuses
Corosync, which then fails to start a cluster when using hostnames in
the config file instead of IPs.

Change-Id: Ia8582883f737548e2911d3f36a1943e5b236281b
Partial-Bug: #1447497
2015-05-11 14:40:43 +02:00
..
apt-conf Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
apt-preferences Merge "Fix unbound variables in apt-{preferences,sources}" 2015-03-04 02:49:34 +00:00
apt-sources Improved apt-sources README 2015-04-07 23:05:38 +00:00
architecture-emulation-binaries Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
baremetal Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
base Make managing hosts entries optional 2015-05-11 14:40:43 +02:00
cache-url Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
centos CentOS 6 Element 2015-03-03 23:09:45 -08:00
centos7 update the dib centos7 baseurl to use a mirrorlist 2015-04-14 22:28:43 +00:00
centos-minimal Convert leftover unconditional set -x to DIB_DEBUG_TRACE 2015-03-11 14:58:14 +01:00
cleanup-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cloud-init-datasources Update cloud-init-datasources README 2015-04-08 06:57:44 +00:00
cloud-init-nocloud Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian Generate the default en_US locale 2015-04-06 15:31:04 +02:00
debian-systemd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian-upstart Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
deploy Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-baremetal Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-ironic Merge "Report status of boot loader installation to Ironic" 2015-04-02 13:07:40 +00:00
deploy-kexec Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-targetcli Merge "Create the dracut directory if not existing already" 2015-04-23 03:46:53 +00:00
deploy-tgtadm No markdown docs for elements 2015-04-02 23:55:19 +00:00
devuser Add generic devuser element 2015-04-08 07:01:24 +00:00
dhcp-all-interfaces Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dib-init-system Split dib-init-system into its own element 2015-03-25 13:28:38 -04:00
dib-run-parts/root.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
disable-selinux/post-install.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dkms Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dpkg Merge "Allow disabling apt-get clean" 2015-03-17 18:20:11 +00:00
dracut-network Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dracut-ramdisk Refactor deploy ramdisk to allow use of targetcli 2015-03-18 11:42:00 -05:00
element-manifest Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
enable-serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
epel Merge "Standarise tracing for scripts" 2015-03-04 00:38:44 +00:00
fedora Switch default Fedora image to F21 2015-04-10 16:22:18 +01:00
fedora-minimal Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00
hwburnin Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
hwdiscovery Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
ilo Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
install-static Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
install-types Break install-types out of base 2015-04-14 13:39:18 -04:00
ironic-agent ironic-agent: exclude content of /tmp from initramfs 2015-03-10 19:03:04 +01:00
ironic-discoverd-ramdisk Fix incorrect package name dmidecoded to dmidecode 2015-03-11 01:04:37 +00:00
iso UEFI secure boot support for iso element. 2015-03-10 00:39:14 -07:00
local-config Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
manifests Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
mellanox Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
modprobe-blacklist Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
opensuse openSUSE update 2015-04-14 21:53:38 +02:00
package-installs Update packages earlier 2015-04-13 21:50:10 +00:00
pip-cache Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
pkg-map CentOS 6 Element 2015-03-03 23:09:45 -08:00
pypi Merge "Allow setting DIB_PIP_RETRIES" 2015-04-23 03:51:57 +00:00
ramdisk Merge "Fix dhclient in Fedora ramdisks" 2015-04-23 03:58:33 +00:00
ramdisk-base Refactor deploy ramdisk to allow use of targetcli 2015-03-18 11:42:00 -05:00
rax-nova-agent Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
redhat-common Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02:00
rhel Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02:00
rhel7 Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
rhel-common Merge "Don't trace RHEL Registration scripts" 2015-04-21 14:29:02 +00:00
rpm-distro Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
select-boot-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
selinux-permissive Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
simple-init Add element to process config-drive network info 2015-04-14 13:39:18 -04:00
source-repositories Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
stable-interface-names Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
svc-map Run svc-map tests 2015-03-29 04:11:41 +00:00
uboot Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ubuntu Set DIB_RELEASE in ubuntu element 2015-03-04 23:11:27 +00:00
ubuntu-core Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02:00
ubuntu-minimal Add element to process config-drive network info 2015-04-14 13:39:18 -04:00
vm Merge "Add no_timer_check to vm grub cmdline" 2015-03-20 13:05:03 +00:00
yum Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
yum-minimal Add a yum-minimal element that just uses yum 2015-04-14 13:39:18 -04:00
zypper Standarise tracing for scripts 2015-02-12 10:41:32 +11:00