Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
foreman_wds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LiU IT - Infrastructure
foreman_wds
Commits
36851e50
Verified
Commit
36851e50
authored
5 years ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Fix pxe issues with modern Foreman
parent
71a09c0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/models/concerns/foreman_wds/host_extensions.rb
+8
-0
8 additions, 0 deletions
app/models/concerns/foreman_wds/host_extensions.rb
app/models/concerns/foreman_wds/nic_extensions.rb
+3
-1
3 additions, 1 deletion
app/models/concerns/foreman_wds/nic_extensions.rb
with
11 additions
and
1 deletion
app/models/concerns/foreman_wds/host_extensions.rb
+
8
−
0
View file @
36851e50
...
...
@@ -41,11 +41,13 @@ module ForemanWds
def
capabilities
return
super
+
[
:wds
]
if
compute_resource
&&
(
os
.
nil?
||
os
.
family
==
'Windows'
)
super
end
def
bare_metal_capabilities
return
super
+
[
:wds
]
if
os
.
nil?
||
os
.
family
==
'Windows'
super
end
...
...
@@ -57,6 +59,12 @@ module ForemanWds
provision_method
==
'wds'
end
def
pxe_build?
return
true
if
wds_build?
super
end
def
wds?
managed?
&&
wds_build?
&&
SETTINGS
[
:unattended
]
end
...
...
This diff is collapsed.
Click to expand it.
app/models/concerns/foreman_wds/nic_extensions.rb
+
3
−
1
View file @
36851e50
...
...
@@ -10,7 +10,9 @@ module ForemanWds
def
boot_server
return
super
if
host
.
nil?
||
!
host
.
wds?
||
host
.
wds_facet
.
nil?
host
.
wds_server
.
next_server_ip
if
host
.
build?
# TODO: Support choosing local boot method
return
host
.
wds_server
.
next_server_ip
if
host
.
build?
# TODO: Support choosing local boot method
super
end
def
dhcp_records
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment