Commit ad418aec authored by Jérémie Gaidamour's avatar Jérémie Gaidamour
Browse files

[lille] Update ref api for the new generators

parent 2fe1ae93
# Use bmc network_address $i-ipmi.lille.grid5000.fr instead of $i-bmc.lille.grid5000.fr
nodes:
<% (1..20).each { |i| %>
chimint-<%= i %>:
network_adapters:
bmc:
network_address: chimint-<%= i %>-ipmi.lille.grid5000.fr
<% } %>
---
chimint-13:
bios:
version: 1.5.3
version: 1.5
release_date: 10/22/2010
vendor: Dell Inc.
network_adapters:
......
# Use bmc network_address $i-ipmi.lille.grid5000.fr instead of $i-bmc.lille.grid5000.fr
# Also add myri0 network_address.
nodes:
<% (1..46).each { |i| %>
chinqchint-<%= i %>:
network_adapters:
myri0:
network_address: chinqchint-<%= i %>-myri0.lille.grid5000.fr
bmc:
network_address: chinqchint-<%= i %>-ipmi.lille.grid5000.fr
<% } %>
# Use bmc network_address $i-ipmi.lille.grid5000.fr instead of $i-bmc.lille.grid5000.fr
nodes:
<% (1..8).each { |i| %>
chirloute-<%= i %>:
network_adapters:
eth0:
network_address: chirloute-<%= i %>-eth0.lille.grid5000.fr # why do we need that ?
bmc:
network_address: chirloute-<%= i %>-ipmi.lille.grid5000.fr
<% } %>
......@@ -111,7 +111,7 @@ global_hash["sites"].each do |site_uid, site|
if network_adapter["management"]
# Management network_adapter (bmc)
network_adapter["network_address"] = "#{node_uid}-bmc.#{site_uid}.grid5000.fr"
network_adapter["network_address"] = "#{node_uid}-bmc.#{site_uid}.grid5000.fr" unless network_adapter.key?("network_address")
elsif network_adapter["mounted"] and /^eth[0-9]$/.match(network_adapter["device"])
# Primary network_adapter
network_adapter["network_address"] = "#{node_uid}.#{site_uid}.grid5000.fr" if network_adapter["enabled"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment