Emits a different hostname for each network the node is on
authorGiulio Fidente <gfidente@redhat.com>
Wed, 20 Jan 2016 13:36:55 +0000 (14:36 +0100)
committerGiulio Fidente <gfidente@redhat.com>
Wed, 24 Feb 2016 17:56:25 +0000 (17:56 +0000)
commitd6c1173120ad2efc98e5e8d67cf6d8d34aa0f458
tree091b8bf9c214d43a7e5a190f8a51f78485c8c227
parent9e473e4b54197811ede59b07bfb3d0e79475e2e1
Emits a different hostname for each network the node is on

Populates /etc/hosts with an entry for each IP address the node
is on, which will be useful to migrate services configuration from
using IPs into using hostnames.

This is how the lines look like on a host which doesn't have all ports:

  172.16.2.6 overcloud-novacompute-0.localdomain overcloud-novacompute-0
  192.0.2.9 overcloud-novacompute-0-external
  172.16.2.6 overcloud-novacompute-0-internalapi
  172.16.1.6 overcloud-novacompute-0-storage
  192.0.2.9 overcloud-novacompute-0-storagemgmt
  172.16.0.4 overcloud-novacompute-0-tenant
  192.0.2.9 overcloud-novacompute-0-management

the network against which the default (or primary) name is resolved
can be configured (for computes) via ComputeHostnameResolveNetwork

Change-Id: Id480207c68e5d68967d67e2091cd081c17ab5dd7
puppet/ceph-storage.yaml
puppet/cinder-storage.yaml
puppet/compute.yaml
puppet/controller.yaml
puppet/swift-storage.yaml