class Packer::Builder::VMWareISO

Public Class Methods

new() click to toggle source
Calls superclass method Packer::Builder::new
# File lib/packer/builders/vmware_iso.rb, line 8
def initialize
  super
  self.data['type'] = VMWARE_ISO
  self.add_required(
    'iso_checksum',
    'iso_checksum_type',
    'iso_url',
    'communicator'
  )
  self.communicators = %w(none ssh winrm)
end

Public Instance Methods

boot_command(commands) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 36
def boot_command(commands)
  self.__add_array_of_strings('boot_command', commands)
end
boot_wait(time) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 40
def boot_wait(time)
  self.__add_string('boot_wait',time)
end
disk_size(megabytes) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 44
def disk_size(megabytes)
  self.__add_integer('disk_size', megabytes)
end
disk_type_id(tid) click to toggle source

0 - create a growable virtual disk contained in a single file (monolithic sparse). 1 - create a growable virtual disk split into 2GB files (split sparse). 2 - create a preallocated virtual disk contained in a single file (monolithic flat). 3 - create a preallocated virtual disk split into 2GB files (split flat). 4 - create a preallocated virtual disk compatible with ESX server (VMFS flat). 5 - create a compressed disk optimized for streaming.

# File lib/packer/builders/vmware_iso.rb, line 54
def disk_type_id(tid)
  self.__add_string('disk_type_id',tid)
end
floppy_files(files) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 58
def floppy_files(files)
  self.__add_array_of_strings('floppy_files', files)
end
fusion_app_path(app_path) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 62
def fusion_app_path(app_path)
  self.__add_string('fusion_app_path',app_path)
end
guest_os_type(ostype) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 66
def guest_os_type(ostype)
  self.__add_string('guest_os_type', ostype)
end
headless(bool) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 70
def headless(bool)
  self.__add_boolean('headless', bool)
end
http_directory(directory) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 74
def http_directory(directory)
  self.__add_string('http_directory', directory)
end
http_port_max(port_number) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 82
def http_port_max(port_number)
  self.__add_integer('http_port_max', port_number)
end
http_port_min(port_number) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 78
def http_port_min(port_number)
  self.__add_integer('http_port_min', port_number)
end
iso_checksum(checksum) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 20
def iso_checksum(checksum)
  self.__add_string('iso_checksum', checksum)
end
iso_checksum_type(type) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 24
def iso_checksum_type(type)
  self.__add_string('iso_checksum_type', type)
end
iso_url(url) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 28
def iso_url(url)
  self.__add_string('iso_url', url, %w[iso_urls])
end
iso_urls(urls) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 32
def iso_urls(urls)
  self.__add_array_of_strings('iso_urls', urls, %[iso_url])
end
output_directory(directory) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 86
def output_directory(directory)
  self.__add_string('output_directory', directory)
end
remote_cache_datastore(cache) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 90
def remote_cache_datastore(cache)
  self.__add_string('remote_cache_datastore', cache)
end
remote_cache_directory(cache_directory) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 94
def remote_cache_directory(cache_directory)
  self.__add_string('remote_cache_directory', cache_directory)
end
remote_datastore(datastore) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 98
def remote_datastore(datastore)
  self.__add_string('remote_datastore', datastore)
end
remote_host(host) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 102
def remote_host(host)
  self.__add_string('remote_host', host)
end
remote_password(passwd) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 106
def remote_password(passwd)
  self.__add_string('remote_password', passwd)
end
remote_type(typ) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 110
def remote_type(typ)
  self.__add_string('remote_type', typ)
end
remote_username(username) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 114
def remote_username(username)
  self.__add_string('remote_username', username)
end
shutdown_command(command) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 118
def shutdown_command(command)
  self.__add_string('shutdown_command', command)
end
shutdown_timeout(time) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 122
def shutdown_timeout(time)
  self.__add_string('shutdown_timeout', time)
end
skip_compaction(bool) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 126
def skip_compaction(bool)
  self.__add_boolean('skip_compaction', bool)
end
tools_upload_flavor(flavor) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 130
def tools_upload_flavor(flavor)
  self.__add_string('tools_upload_flavor', flavor)
end
tools_upload_path(path) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 134
def tools_upload_path(path)
  self.__add_string('tools_upload_path', path)
end
version(version) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 138
def version(version)
  self.__add_string('version', version)
end
vm_name(name) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 142
def vm_name(name)
  self.__add_string('vm_name', name)
end
vmdk_name(name) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 146
def vmdk_name(name)
  self.__add_string('vmdk_name', name)
end
vmx_data(data) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 150
def vmx_data(data)
  self.__add_hash('vmx_data', data)
end
vmx_data_post(data) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 154
def vmx_data_post(data)
  self.__add_hash('vmx_data_post', data)
end
vmx_template_path(path) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 158
def vmx_template_path(path)
  self.__add_string('vmx_template_path', path)
end
vnc_port_max(port) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 166
def vnc_port_max(port)
  self.__add_integer('vnc_port_max', port)
end
vnc_port_min(port) click to toggle source
# File lib/packer/builders/vmware_iso.rb, line 162
def vnc_port_min(port)
  self.__add_integer('vnc_port_min', port)
end