Sha256: ef9bd600c1c61b7fa77b45303c9ad53816347609f87e8012ae7364e0707008c8
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
module Bootdisk::HostExt extend ActiveSupport::Concerns def bootdisk_template ConfigTemplate.find_by_name(Setting[:bootdisk_host_template]) || raise(::Foreman::Exception.new(N_('Unable to find template specified by %s setting'), 'bootdisk_host_template')) end def bootdisk_template_render # Waiting on additional whitelisted items, #2948 Setting[:safemode_render] && raise(::Foreman::Exception.new(N_('Bootdisk is not supported with safemode rendering, please disable safemode_render under Adminster>Settings'))) @host = self pxe_render(bootdisk_template.template) end end
Version data entries
3 entries across 3 versions & 1 rubygems