Skip to content
Snippets Groups Projects
Commit 8f0c563d authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add helper methods for image information

parent f462d189
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment