lib/packer/builders/vmware_iso.rb in packer-config-1.3.1 vs lib/packer/builders/vmware_iso.rb in packer-config-1.4.0
- old
+ new
@@ -10,12 +10,13 @@
self.data['type'] = VMWARE_ISO
self.add_required(
'iso_checksum',
'iso_checksum_type',
'iso_url',
- 'ssh_username'
+ 'communicator'
)
+ self.communicators = %w(none ssh winrm)
end
def iso_checksum(checksum)
self.__add_string('iso_checksum', checksum)
end
@@ -30,14 +31,10 @@
def iso_urls(urls)
self.__add_array_of_strings('iso_urls', urls, %[iso_url])
end
- def ssh_username(username)
- self.__add_string('ssh_username', username)
- end
-
def boot_command(commands)
self.__add_array_of_strings('boot_command', commands)
end
def boot_wait(time)
@@ -126,41 +123,9 @@
self.__add_string('shutdown_timeout', time)
end
def skip_compaction(bool)
self.__add_boolean('skip_compaction', bool)
- end
-
- def ssh_host(host)
- self.__add_string('ssh_host', host)
- end
-
- def ssh_host_port_min(port_number)
- self.__add_integer('ssh_host_port_min', port_number)
- end
-
- def ssh_host_port_max(port_number)
- self.__add_integer('ssh_host_port_max', port_number)
- end
-
- def ssh_key_path(path)
- self.__add_string('ssh_key_path', path)
- end
-
- def ssh_password(password)
- self.__add_string('ssh_password', password)
- end
-
- def ssh_port(port_number)
- self.__add_integer('ssh_port', port_number)
- end
-
- def ssh_skip_request_pty(bool)
- self.__add_boolean('ssh_skip_request_pty', bool)
- end
-
- def ssh_wait_timeout(time)
- self.__add_string('ssh_wait_timeout', time)
end
def tools_upload_flavor(flavor)
self.__add_string('tools_upload_flavor', flavor)
end