Add example of creating per-node os-net-config mappings
authorSteven Hardy <shardy@redhat.com>
Thu, 7 Jan 2016 22:26:28 +0000 (22:26 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 1 Jul 2016 13:34:39 +0000 (14:34 +0100)
commit8a0f5efc1aaff8b3904b73b9b0606bbc4c049815
treeddc1cfbafc38c416c3314ba7284238463612ed64
parent30a11c81b16b6dde9dc80800f8c807421ae1f3fa
Add example of creating per-node os-net-config mappings

Adds an example of proving a mapping file for all nodes, then
extracting the data for each node based on a lookup of the mac address.

Some assumptions are made (e.g the hard-coded reference to eth0), but
it should be easily modified to suit specific environments.

Usage via an enviroment file will look like:

resource_registry:
  OS::TripleO::NodeUserData: os-net-config-mappings.yaml
parameter_defaults:
  NetConfigDataLookup:
    host1:
      nic1: "00:c8:7c:e6:f0:2e"
    host2:
      nic1: "00:18:7d:99:0c:b6"

Note this version requires liberty heat in the undercloud due to the
use of a new str_replace feature to serialize the json parameter.

Change-Id: I7da9c9d8805e676a383e888a7d77f05d3432ab12
firstboot/os-net-config-mappings.yaml [new file with mode: 0644]