class HammerCLIForeman::ComputeResources::Ovirt
Public Instance Methods
compute_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 8 def compute_attributes [ ['cluster', _('ID or name of cluster to use')], ['template', _('Hardware profile to use')], ['cores', _('Integer value, number of cores')], ['sockets', _('Integer value, number of sockets')], ['memory', _('Amount of memory, integer value in bytes')], ['ha', _('Boolean, set 1 to high availability')], ['display_type', _('Possible values: %s') % 'VNC, SPICE'], ['keyboard_layout', _('Possible values: %s. Not usable if display type is SPICE.') % 'ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr'] ] end
host_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 21 def host_attributes [ ['start', _('Boolean, set 1 to start the vm')] ] end
interface_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 27 def interface_attributes [ ['compute_name', _('Compute name, e.g. eth0')], ['compute_network', _('Select one of available networks for a cluster, must be an ID or a name')], ['compute_interface', _('Interface type')], ['compute_vnic_profile', _('Vnic Profile')] ] end
mandatory_resource_options()
click to toggle source
Calls superclass method
HammerCLIForeman::ComputeResources::Base#mandatory_resource_options
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 63 def mandatory_resource_options super + %i[url user password datacenter] end
name()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 4 def name 'oVirt' end
provider_specific_fields()
click to toggle source
Calls superclass method
HammerCLIForeman::ComputeResources::Base#provider_specific_fields
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 47 def provider_specific_fields super + [ Fields::Field.new(:label => _('Datacenter'), :path => [:datacenter]) ] end
provider_vm_specific_fields()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 53 def provider_vm_specific_fields [ Fields::Field.new(:label => _('CPUs'), :path => [:cpu]), Fields::Field.new(:label => _('Memory'), :path => [:memory]), Fields::Field.new(:label => _('Status'), :path => [:status]), Fields::Field.new(:label => _('Cores'), :path => [:cores]), Fields::Field.new(:label => _('Type'), :path => [:type]) ] end
volume_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 36 def volume_attributes [ ['size_gb', _('Volume size in GB, integer value')], ['storage_domain', _('ID or name of storage domain')], ['bootable', _('Boolean, set 1 for bootable, only one volume can be bootable')], ['preallocate', _('Boolean, set 1 to preallocate')], ['wipe_after_delete', _('Boolean, set 1 to wipe disk after delete')], ['interface', _('Disk interface name, must be ide, virto or virto_scsi')] ] end