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 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')] ] end
host_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 18 def host_attributes [ ['start', _('Boolean (expressed as 0 or 1), whether to start the machine or not')] ] end
interface_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 24 def interface_attributes [ ['compute_name', _('Compute name, e.g. eth0')], ['compute_network', _('Select one of available networks for a cluster, must be an ID')], ['compute_interface', _('Interface type')] ] 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 48 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
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 42 def provider_specific_fields [ Fields::Field.new(:label => _('Datacenter'), :path => [:datacenter]) ] end
volume_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ovirt.rb, line 32 def volume_attributes [ ['size_gb', _('Volume size in GB, integer value')], ['storage_domain', _('ID of storage domain')], ['bootable', _('Boolean, only one volume can be bootable')], ['preallocate', _('Boolean, set %s to preallocate') % 'true'], ['wipe_after_delete', _('Boolean, set %s to wipe disk after delete') % 'true'] ] end