puppet-infracloud/templates/bifrost/inventory.json.erb
Ricardo Carrillo Cruz cff7cf98dc Remove per-region handling
Since vanilla and chocolate are on the same VLAN, we don't have
two different bifrost machines, just one to handle both.
Therefore, the per-region split logic is not needed anymore and makes
it impossible to have on the current baremetal machine in prod
having both inventories at the same time.

Note: I'm leaving the 'region' parameter on purpose, otherwise
the apply tests fail.
Will remove it in a subsequent patch.

Change-Id: I433cdb8675c3acd2e699272aaf6a0e67eb9200b0
2016-09-12 15:13:09 +02:00

4 lines
294 B
Plaintext

<% @ironic_deployed_inventory = @ironic_inventory.reject { |k,v| v['disabled'] } -%>
<% @ironic_deployed_inventory.each { |k,v| v['driver_info']['power']['ipmi_password'] = @ipmi_passwords[v['driver_info']['power']['ipmi_address']] } -%>
<%= JSON.pretty_generate(@ironic_deployed_inventory) %>