class HammerCLIForeman::ComputeResources::VMware
Constants
- INTERFACE_TYPES
Public Instance Methods
compute_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/vmware.rb, line 13 def compute_attributes [ ['cpus', _('CPU count')], ['corespersocket', _('Number of cores per socket (applicable to hardware versions < 10 only)')], ['memory_mb', _('Integer number, amount of memory in MB')], ['firmware', 'automatic/bios/efi'], ['cluster', _('Cluster ID from VMware')], ['resource_pool', _('Resource Pool ID from VMware')], ['path', _('Path to folder')], ['guest_id', _('Guest OS ID form VMware')], ['scsi_controller_type', _('ID of the controller from VMware')], ['hardware_version', _('Hardware version ID from VMware')], ['add_cdrom', _('Must be a 1 or 0, Add a CD-ROM drive to the virtual machine')], ['cpuHotAddEnabled', _('Must be a 1 or 0, lets you add memory resources while the machine is on')], ['memoryHotAddEnabled', _('Must be a 1 or 0, lets you add CPU resources while the machine is on')], ['annotation', _("Annotation Notes")] ] end
host_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/vmware.rb, line 32 def host_attributes [ ['start', _("Must be a 1 or 0, whether to start the machine or not")], ] end
interface_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/vmware.rb, line 38 def interface_attributes [ ['compute_type', [ _('Type of the network adapter, for example one of:'), INTERFACE_TYPES.map { |it| ' ' + it }, _('See documentation center for your version of vSphere to find more details about available adapter types:'), ' https://www.vmware.com/support/pubs/'].flatten(1).join("\n") ] , ['compute_network', _('Network ID from VMware')] ] end
mandatory_resource_options()
click to toggle source
Calls superclass method
HammerCLIForeman::ComputeResources::Base#mandatory_resource_options
# File lib/hammer_cli_foreman/compute_resource/vmware.rb, line 61 def mandatory_resource_options super + [:user, :password, :datacenter, :server] end
name()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/vmware.rb, line 9 def name _('VMware') end
volume_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/vmware.rb, line 49 def volume_attributes; [ ['name'], ['storage_pod', _('Storage Pod ID from VMware')], ['datastore', _('Datastore ID from VMware')], ['size_gb', _('Integer number, volume size in GB')], ['thin', 'true/false'], ['eager_zero', 'true/false'], ['mode', 'persistent/independent_persistent/independent_nonpersistent'] ] end