Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
reference-repository
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
grid5000
reference-repository
Commits
4b37ac5f
Commit
4b37ac5f
authored
Dec 02, 2019
by
Samir Noir
🧀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[gen/puppet/kavlang5k] Remove a dhcpd warning by declaring host globally (bug 10158)
parent
47261a8d
Pipeline
#109005
passed with stages
in 2 minutes and 55 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
lib/refrepo/gen/puppet/templates/kavlan-dhcp.conf.erb
lib/refrepo/gen/puppet/templates/kavlan-dhcp.conf.erb
+11
-11
No files found.
lib/refrepo/gen/puppet/templates/kavlan-dhcp.conf.erb
View file @
4b37ac5f
...
...
@@ -25,6 +25,7 @@ subnet <%= kavlan_ip.network %> netmask <%= kavlan_ip.netmask %> {
option broadcast-address
<%=
kavlan_ip
.
broadcast
%>
;
filename "pxelinux.0";
next-server
<%=
"kadeploy.
#{
site_uid
}
.grid5000.fr"
%>
;
}
<%
refapi
[
'sites'
].
sort
.
to_h
.
each_key
do
|
site
|
...
...
@@ -43,16 +44,16 @@ refapi['sites'].sort.to_h.each_key do |site|
next
end
-%>
host
<%=
node_uid
%><%=
interface
[
'mounted'
]?
""
:
"-"
+
interface
[
'device'
]
%>
-kavlan-
<%=
kavlan_id
%>
.
<%=
site
%>
.grid5000.fr {
hardware ethernet
<%=
interface
[
'mac'
].
downcase
()
%>
;
option host-name "
<%=
node_uid
%><%=
interface
[
'mounted'
]?
""
:
"-"
+
interface
[
'device'
]
%>
-kavlan-
<%=
kavlan_id
%>
";
option domain-name "
<%=
site
%>
.grid5000.fr";
option domain-search "
<%=
site
%>
.grid5000.fr", "grid5000.fr";
fixed-address
<%=
node
[
'kavlan'
][
interface
[
'device'
]][
"kavlan-
#{
kavlan_id
}
"
]
%>
;
<%
if
kavlan_id
.
to_i
>
9
-%>
next-server kadeploy.
<%=
site
%>
.grid5000.fr;
<%
end
-%>
}
host
<%=
node_uid
%><%=
interface
[
'mounted'
]?
""
:
"-"
+
interface
[
'device'
]
%>
-kavlan-
<%=
kavlan_id
%>
.
<%=
site
%>
.grid5000.fr {
hardware ethernet
<%=
interface
[
'mac'
].
downcase
()
%>
;
option host-name "
<%=
node_uid
%><%=
interface
[
'mounted'
]?
""
:
"-"
+
interface
[
'device'
]
%>
-kavlan-
<%=
kavlan_id
%>
";
option domain-name "
<%=
site
%>
.grid5000.fr";
option domain-search "
<%=
site
%>
.grid5000.fr", "grid5000.fr";
fixed-address
<%=
node
[
'kavlan'
][
interface
[
'device'
]][
"kavlan-
#{
kavlan_id
}
"
]
%>
;
<%
if
kavlan_id
.
to_i
>
9
-%>
next-server kadeploy.
<%=
site
%>
.grid5000.fr;
<%
end
-%>
}
<%
end
end
...
...
@@ -60,4 +61,3 @@ refapi['sites'].sort.to_h.each_key do |site|
end
end
-%>
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment