Skip to content

Commit

Permalink
Fixes #37692 - Add firmware option for Libvirt hosts creation
Browse files Browse the repository at this point in the history
New `firmware` option for creating new hosts in Libvirt,
allowing users to specify the VM firmware type, including Secure Boot.
  • Loading branch information
nofaralfasi committed Jul 28, 2024
1 parent 02a38bb commit d1d3ffc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/hammer_cli_foreman/compute_resource/libvirt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def compute_attributes
['cpus', _('Number of CPUs'), { bold: true }],
['memory', _('String, amount of memory, value in bytes'), { bold: true }],
['cpu_mode', _('Possible values: %{modes}') % { modes: 'default, host-model, host-passthrough' }],
['boot_order', _('Device names to specify the boot order')]
['boot_order', _('Device names to specify the boot order')],
['firmware', _('automatic/bios/efi/uefi_sb (EFI with Secure Boot enabled)')]
]
end

Expand Down Expand Up @@ -50,7 +51,8 @@ def provider_vm_specific_fields
Fields::Field.new(:label => _('OS Type'), :path => [:os_type]),
Fields::Field.new(:label => _('Domain Type'), :path => [:domain_type]),
Fields::Field.new(:label => _('Persistent'), :path => [:persistent]),
Fields::List.new(:label => _('Boot order'), :path => [:boot_order])
Fields::List.new(:label => _('Boot order'), :path => [:boot_order]),
Fields::Field.new(:label => _('Secure Boot'), :path => [:secure_boot])
]
end

Expand Down

0 comments on commit d1d3ffc

Please sign in to comment.