Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3252f497 authored by Jérémie Gaidamour's avatar Jérémie Gaidamour
Browse files

[dev] Added group in dhcp configuration

parent cf0ee8d2
Branches
Tags
No related merge requests found
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
site_uid = data.fetch('site_uid') site_uid = data.fetch('site_uid')
data.fetch('network_interfaces').each { |network_interface| 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| 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' network_interface != 'bmc' ? node_uid_net = node_uid : node_uid_net = node_uid + '-bmc'
...@@ -19,9 +22,10 @@ ...@@ -19,9 +22,10 @@
end end
%> %>
host <%= node_uid_net %>.<%= site_uid %>.grid5000.fr { host <%= node_uid_net %>.<%= site_uid %>.grid5000.fr {
hardware ethernet <%= node_mac.upcase %>; hardware ethernet <%= node_mac.upcase %>;
fixed-address <%= node_ip %>; fixed-address <%= node_ip %>;
} }
<% } %> <% } %>
}
<% } %> <% } %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment