Sha256: 9503a71548909146be248046533ebc4318082409edb7afae55adeff66bcc7ad4

Contents?: true

Size: 1.2 KB

Versions: 15

Compression:

Stored size: 1.2 KB

Contents

module HammerCLIForeman
  module ComputeResources
    module Libvirt
      class HostHelpExtenstion
        def name
          _('Libvirt')
        end

        def host_create_help(h)
          h.section '--compute-attributes' do |h|
            h.list([
              ['cpus',   _('Number of CPUs')],
              ['memory', _('String, amount of memory, value in bytes')],
              ['start',  _('Boolean (expressed as 0 or 1), whether to start the machine or not')]
            ])
          end
          h.section '--interface' do |h|
            h.list([
              ['compute_type',                     _('Possible values: %s') % 'bridge, network'],
              ['compute_network / compute_bridge', _('Name of interface according to type')],
              ['compute_model',                    _('Possible values: %s') % 'virtio, rtl8139, ne2k_pci, pcnet, e1000']
            ])
          end
          h.section '--volume' do |h|
            h.list([
              ['pool_name',   _('One of available storage pools')],
              ['capacity',    _('String value, eg. 10G')],
              ['format_type', _('Possible values: %s') % 'raw, qcow2']
            ])
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hammer_cli_foreman-0.15.2 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.16.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.15.1 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.15.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.14.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.13.2 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.13.1 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.13.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.12.1 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.12.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.11.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.10.2 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.10.1 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.10.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb
hammer_cli_foreman-0.9.0 lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb