Convert AllNodesExtraConfig to support composable roles
authorSteven Hardy <shardy@redhat.com>
Thu, 8 Sep 2016 11:14:09 +0000 (12:14 +0100)
committerEmilien Macchi <emilien@redhat.com>
Fri, 16 Sep 2016 00:24:44 +0000 (00:24 +0000)
commitb738e9ca7839772065f3db3ea29b057a7152eed5
tree5d7d23590963a77bb10cef9ae76e8f1f55574728
parent3a8d20a63dccc61c958e09a7fcbbaab6690551b4
Convert AllNodesExtraConfig to support composable roles

This adjusts the interface to OS::TripleO::AllNodesExtraConfig so
it supports custom/composable/optional roles.

Note this does break backwards compatibility, and I can't see any way
to avoid that.  I've converted the in-tree templates, and we'll have
to document carefully and or provide a script (or automated conversion
via mistral perhaps?) to allow folks to easily adjust any out of tree
templates to the new format.

Basically you just have to:

1. Remove all the *_servers parameters, replace with one "servers"
   json parameter

2. Replace references to e.g "controller_servers" with "servers, Controller"
   which does a path-based lookup into the json map provided by overcloud.yaml

Change-Id: I5eebf853646b2f6300d6b542fcd4f43e82d3b413
Partially-Implements: blueprint custom-roles
extraconfig/all_nodes/mac_hostname.j2.yaml [moved from extraconfig/all_nodes/mac_hostname.yaml with 65% similarity]
extraconfig/all_nodes/random_string.j2.yaml [moved from extraconfig/all_nodes/random_string.yaml with 84% similarity]
extraconfig/all_nodes/swap-partition.j2.yaml [new file with mode: 0644]
extraconfig/all_nodes/swap-partition.yaml [deleted file]
extraconfig/all_nodes/swap.j2.yaml [new file with mode: 0644]
extraconfig/all_nodes/swap.yaml [deleted file]
overcloud.j2.yaml
puppet/extraconfig/all_nodes/neutron-midonet-all-nodes.yaml
puppet/extraconfig/all_nodes/neutron-ml2-cisco-nexus-ucsm.yaml