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 Sep 15, 2024
1 parent 02a38bb commit 660f091
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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/uefi/uefi_secure_boot (EFI with Secure Boot enabled)')]
]
end

Expand Down Expand Up @@ -50,7 +51,9 @@ 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 => _('Firmware'), :path => [:firmware]),
Fields::Field.new(:label => _('Secure Boot'), :path => [:secure_boot])
]
end

Expand Down

0 comments on commit 660f091

Please sign in to comment.