diff --git a/doc/host_create.md b/doc/host_create.md index 31ffe16d..67517432 100644 --- a/doc/host_create.md +++ b/doc/host_create.md @@ -195,6 +195,7 @@ Available keys for `--compute-attributes`: cpus # number of CPUs memory # string, amount of memory, value in bytes start # Must be a 1 or 0, whether to start the machine or not +firmware # automatic/bios/uefi/uefi_secure_boot (UEFI with Secure Boot enabled) ``` Available keys for `--interface`: diff --git a/lib/hammer_cli_foreman/compute_resource/libvirt.rb b/lib/hammer_cli_foreman/compute_resource/libvirt.rb index bf04a86e..dfd8d2a6 100644 --- a/lib/hammer_cli_foreman/compute_resource/libvirt.rb +++ b/lib/hammer_cli_foreman/compute_resource/libvirt.rb @@ -9,7 +9,8 @@ def compute_attributes [ ['cpus', _('Number of CPUs'), { bold: true }], ['memory', _('String, amount of memory, value in bytes'), { bold: true }], - ['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 (UEFI with Secure Boot enabled)')] ] end @@ -49,7 +50,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