class HammerCLIForeman::ComputeResources::VMware::HostHelpExtenstion

Constants

INTERFACE_TYPES

Public Instance Methods

host_create_help(h) click to toggle source
# File lib/hammer_cli_foreman/compute_resources/vmware/host_help_extenstion.rb, line 14
def host_create_help(h)
  h.section '--compute-attributes' do |h|
    h.list([
      ['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')],
      ['start',                _("Must be a 1 or 0, whether to start the machine or not")],
      ['annotation',           _("Annotation Notes")]
    ])
  end
  h.section '--interface' do |h|
    h.list([
      ['compute_type', interface_type_description(h)],
      ['compute_network', _('Network ID from VMware')]
    ])
  end
  h.section '--volume' do |h|
    h.list([
      ['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
end
name() click to toggle source
# File lib/hammer_cli_foreman/compute_resources/vmware/host_help_extenstion.rb, line 10
def name
  _('VMware')
end

Private Instance Methods

interface_type_description(h) click to toggle source
# File lib/hammer_cli_foreman/compute_resources/vmware/host_help_extenstion.rb, line 55
def interface_type_description(h)
  [
    _('Type of the network adapter, for example one of:'),
    h.indent(INTERFACE_TYPES),
    _("See documentation center for your version of vSphere to find more details about available adapter types:"),
    h.indent('https://www.vmware.com/support/pubs/')
  ].join("\n")
end