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

[dev] Added group in dhcp configuration

parent cf0ee8d2
......@@ -6,6 +6,9 @@
site_uid = data.fetch('site_uid')
data.fetch('network_interfaces').each { |network_interface|
%>
group {
<%
data.fetch('nodes').sort_by { |item| item.to_s.split(/(\d+)/).map { |e| [e.to_i, e] } }.each { |node_uid, node_hash|
network_interface != 'bmc' ? node_uid_net = node_uid : node_uid_net = node_uid + '-bmc'
......@@ -19,9 +22,10 @@
end
%>
host <%= node_uid_net %>.<%= site_uid %>.grid5000.fr {
hardware ethernet <%= node_mac.upcase %>;
fixed-address <%= node_ip %>;
}
host <%= node_uid_net %>.<%= site_uid %>.grid5000.fr {
hardware ethernet <%= node_mac.upcase %>;
fixed-address <%= node_ip %>;
}
<% } %>
}
<% } %>
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