Cisco Nexus ML2 MD: Need unique key for server level keys in hieradata
authortiswanso <tiswanso@cisco.com>
Tue, 6 Oct 2015 15:33:05 +0000 (11:33 -0400)
committertiswanso <tiswanso@cisco.com>
Thu, 15 Oct 2015 16:15:55 +0000 (12:15 -0400)
commit588430a7f278c9534f8a80cb5d3463867e11760b
tree10edeac67aefde229e8a77afb650fb87469ee5c5
parentd29003ac6d1c61db65b4ca3272ecbde3ea0942be
Cisco Nexus ML2 MD: Need unique key for server level keys in hieradata

Due to a limitation in the puppet version used in RHEL7 there is no simple
way to scope a 2nd level hiera hash key with the create_resources + defined
types pattern.  Lack of the .each method support prior to puppet 4.0 is the
problem here.  This template change works around the problem by explicitly
adding the hostname to the hieradata for a server under a nexus switch.

The duplicate server names under different switches is needed for vPC
config scenarios.

Closes-bug: #1506546
Change-Id: I03b866fb440e968c9f86ae93942b687e7165a065
puppet/extraconfig/all_nodes/neutron-ml2-cisco-nexus-ucsm.yaml