Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 98f28388 authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[gen/{dhcp,kavlan}] serve pxelinux.0 to troll & gros

parent 01dcb2ee
Branches
No related tags found
1 merge request!213[kadeploy] v3.5.0: kexec from prod & fetch pxefile with http
Pipeline #244807 passed
......@@ -21,6 +21,7 @@
else
uid_net = h['name']
end
if dhcpkind == 'dhcpv6'
if h['ip6']
dhcp_entries.push({ 'uid_net' => uid_net, 'ipv6' => h['ip6'], 'mac' => h['mac'] })
......@@ -50,6 +51,9 @@ group {
fixed-address6 <%= node['ipv6'] %>;
<% else -%>
fixed-address <%= node['ipv4'] %>;
<% end -%>
<% if node['uid_net'] =~ /^(troll|gros)-\d+$/ -%>
filename "/pxelinux.0"
<% end -%>
}
<% } %>
......
......@@ -116,6 +116,9 @@ host <%= node_uid %><%= interface['mounted']? "" : "-"+interface['device'] %>-ka
<% if kavlan_id.to_i > 9 -%>
next-server kadeploy.<%= site %>.grid5000.fr;
<% end -%>
<% if node_uid =~ /^(troll|gros)-\d+$/ -%>
filename "/pxelinux.0"
<% end -%>
}
<%
elsif dhcpkind == 'dhcpd6'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment