lib/packer/builders/virtualbox.rb in packer-config-1.3.1 vs lib/packer/builders/virtualbox.rb in packer-config-1.4.0

- old
+ new

@@ -10,12 +10,13 @@ self.data['type'] = VIRTUALBOX_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) @@ -108,33 +105,9 @@ self.__add_string('shutdown_command', command) end def shutdown_timeout(time) self.__add_string('shutdown_timeout', time) - 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_wait_timeout(time) - self.__add_string('ssh_wait_timeout', time) end def vboxmanage(array_of_commands) self.__add_array_of_array_of_strings('vboxmanage', array_of_commands) end