Module: UnattendedHelper

Includes:
Foreman::Renderer
Defined in:
app/helpers/unattended_helper.rb

Instance Method Summary collapse

Methods included from Foreman::Renderer

#foreman_url, #render_safe, #snippet, #snippets, #unattended_render, #unattended_render_to_temp_file

Instance Method Details

#grub_passObject


8
9
10
# File 'app/helpers/unattended_helper.rb', line 8

def grub_pass
  @grub ? "--md5pass=#{@host.root_pass}": ""
end

#ks_consoleObject


4
5
6
# File 'app/helpers/unattended_helper.rb', line 4

def ks_console
  (@port and @baud) ? "console=ttyS#{@port},#{@baud}": ""
end

#root_passObject


12
13
14
# File 'app/helpers/unattended_helper.rb', line 12

def root_pass
  @host.root_pass
end