module UnattendedHelper
  include Foreman::Renderer

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

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

  def root_pass
    @host.root_pass
  end
end
