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
8f0c563d
Commit
8f0c563d
authored
6 years ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Add helper methods for image information
parent
f462d189
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
+9
-1
9 additions, 1 deletion
app/models/concerns/foreman_wds/host_extensions.rb
app/views/foreman_wds/unattend_2016.xml.erb
+3
-3
3 additions, 3 deletions
app/views/foreman_wds/unattend_2016.xml.erb
with
12 additions
and
4 deletions
app/models/concerns/foreman_wds/host_extensions.rb
+
9
−
1
View file @
8f0c563d
...
...
@@ -21,6 +21,14 @@ module ForemanWds
ensure_wds_facet
.
install_image
end
def
wds_install_image_file
ensure_wds_facet
.
install_image_file
end
def
wds_install_image_group
ensure_wds_facet
.
install_image_group
end
def
wds_install_image_name
ensure_wds_facet
.
install_image_name
end
...
...
@@ -92,5 +100,5 @@ module ForemanWds
end
class
::
Host
::
Managed
::
Jail
<
Safemode
::
Jail
allow
:unattend_pass
,
:wds_facet
,
:wds_server
allow
:unattend_pass
,
:wds_facet
,
:wds_server
,
:wds_install_image_file
,
:wds_install_image_group
,
:wds_install_image_name
end
This diff is collapsed.
Click to expand it.
app/views/foreman_wds/unattend_2016.xml.erb
+
3
−
3
View file @
8f0c563d
...
...
@@ -50,9 +50,9 @@ end
</Login>
<ImageSelection>
<InstallImage>
<ImageGroup>
<%=
@host
.
wds_
facet
.
install_image_group
%>
</ImageGroup>
<ImageName>
<%=
@host
.
wds_
facet
.
install_image_name
%>
</ImageName>
<Filename>
<%=
@host
.
wds_
facet
.
install_image_file
%>
</Filename>
<ImageGroup>
<%=
@host
.
wds_install_image_group
%>
</ImageGroup>
<ImageName>
<%=
@host
.
wds_install_image_name
%>
</ImageName>
<Filename>
<%=
@host
.
wds_install_image_file
%>
</Filename>
</InstallImage>
<InstallTo>
<DiskID>
0
</DiskID>
...
...
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