Commit Graph

11642 Commits

Author SHA1 Message Date
Brian Cain e8c6916ebc
Restart each interface if systemd-networkd or networkmanager is not used
This commit is a workaround due to how older debian and ubuntu systems
fail to properly restart networking. Instead of relying on the init
scripts or ifup/down tools to restart each interface, this commit
instead restarts each interface individually
2018-10-24 11:34:38 -07:00
Brian Cain 1761e65f26
Fixes #9763 #10300: Fall back on ifdown/ifup tools for network restart
This commit adds some additional logic that falls back to using the
ifdown/ifup tools to restart networking. On Ubuntu 14.04, the init
script was designed to always fail to restart newtorking, so it needs
to use the ifdown/up tools instead. This commit will use the networking
init script as a last resort to restart networking, assuming other
commands haven't broken networking already.

https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1301015
2018-10-23 14:47:12 -07:00
Brian Cain 6b34f3655a
Update CHANGELOG 2018-10-23 09:25:33 -07:00
Brian Cain 238a46299b
Merge pull request #10326 from briancain/add-automount-vbox
Fixes #10016: Add `automount` flag if specified with synced_folder
2018-10-23 09:24:49 -07:00
Brian Cain 7c06950e43
Ensure true or false for automount option 2018-10-23 09:00:55 -07:00
Brian Cain 6d0dfb2690
Fixes #10016: Add `automount` flag if specified with synced_folder
This commit adds a new option to virtualbox synced_folders called
`automount`, where if set to true, will supply the `--automount` flag to
virtualbox.
2018-10-22 15:45:32 -07:00
Chris Roberts 5ac79d2821 Update CHANGELOG 2018-10-19 16:00:39 -07:00
Chris Roberts b0fc33e9b7
Merge pull request #10321 from chrisroberts/f-ssh-comm-output
Prevent overly verbose output from SSH communicator
2018-10-19 15:59:01 -07:00
Chris Roberts 8562daf85e Prevent overly verbose output from SSH communicator
If the type of error changes on retry the messages will effectively
spam the user display with alternating messages. Log each message
sent and only re-display each message once within 10 seconds.
2018-10-19 15:18:03 -07:00
Brian Cain 5f5d874997
Update CHANGELOG 2018-10-19 14:11:06 -07:00
Brian Cain 9fab454bd5
Merge pull request #10319 from briancain/username-prompt-smb
Fixes #9591: Allow for 'default' smb_username if set
2018-10-19 14:09:48 -07:00
Brian Cain 65651178cd
Fixes #9591: Allow for 'default' smb_username if set
Prior to this commit, Vagrant would prompt for smb username and password
every time, even if only smb_username was defined. This commit changes
that by allowing a "default" username from the Vagrantfile, with the
option of overriding it.
2018-10-19 13:26:18 -07:00
Brian Cain 28c4940969
Update CHANGELOG 2018-10-18 09:02:52 -07:00
Brian Cain e54c9b22ef
Merge pull request #10301 from briancain/debian-fixup-hostname-change
Fixes #9763, #10300: Split out how hostname is set with Debian hosts
2018-10-18 08:57:29 -07:00
Brian Cain a1fa319f7e
Merge pull request #10315 from briancain/update-ruby-again
Bump ruby to 2.5.3
2018-10-18 08:49:32 -07:00
Brian Cain 4489b80931
Bump ruby to 2.5.3 2018-10-18 08:17:02 -07:00
Lukas Lösche 73cb4b5b42
Fix WSL detection for customized roots 2018-10-18 15:13:18 +02:00
Brian Cain 94bb50fa7e
Add test for syncing folders with docker provider 2018-10-17 14:14:27 -07:00
Brian Cain 52c04909d5
Merge pull request #10310 from briancain/update-ruby-for-travis
Update ruby to latest for travis tests
2018-10-17 12:42:42 -07:00
Brian Cain 31fabc94f7
Update ruby to latest for travis tests 2018-10-17 12:27:20 -07:00
Martin Jonas 238338d803
Deterministic host VM synced folder location for Docker provider to prevent broken sync after host VM shutdown
Fix for #10282
2018-10-17 11:28:24 -07:00
Brian Cain 2ce62cad65
Merge pull request #10308 from 5uper5hoot/patch-1
Small typo fix
2018-10-17 08:19:24 -07:00
Peter Schutt 78c7549b1b
Small typo fix 2018-10-17 22:12:27 +10:00
Chris Roberts ae7d2bed9d Update version for dev 2018-10-16 15:45:30 -07:00
Chris Roberts 6e37e49708 Update website version 2.2.0 2018-10-16 15:42:23 -07:00
Chris Roberts 9c835d823f Release v2.2.0 2018-10-16 15:39:34 -07:00
Brian Cain f20ab1ab39
Update CHANGELOG 2018-10-16 15:20:35 -07:00
Brian Cain 23de7f0898
Merge pull request #10148 from briancain/add-cloud-command
Introduce `vagrant cloud` subcommand to Vagrant
2018-10-16 15:19:58 -07:00
Brian Cain 15fb2b729d
Remove #Hash.compact for ruby 2.3 compatibility 2018-10-16 14:41:31 -07:00
Chris Roberts e595403419
Merge pull request #10304 from chrisroberts/f-hyperv-config
Add missing hyperv provider configuration option
2018-10-16 14:19:53 -07:00
Chris Roberts 2b157fc9be Add missing hyperv provider configuration option 2018-10-16 13:47:32 -07:00
Brian Cain 6443fe7109
Merge pull request #10302 from nqb/patch-1
Add details and fix typo for run: "never" option
2018-10-16 13:23:34 -07:00
Nicolas Quiniou-Briand 8293b763bd
Add details and fix typo for run: "never" 2018-10-16 15:36:40 -04:00
Brian Cain 0c5d55e69c
Fixes #9763, #10300: Split out how hostname is set with Debian hosts
Prior to this commit, the hostname was set with one big bash script and
attempted to determine what tools are available. This commit changes
that by splitting out that tool check on the Vagrant side of things with
the GuestInspection class, and adds back restarting networking to get a
DHCP lease with the change rather than using `dhclient`. This pattern
matches how hostnames are set in the redhat capability.
2018-10-16 12:00:25 -07:00
Brian Cain b92b1ba0bb
Add `cloud` command to bash completion 2018-10-12 09:49:49 -07:00
Brian Cain b1b829f69d
Fix missing `end` in errors class 2018-10-12 09:16:36 -07:00
Brian Cain 5225b48e00
Fixup cloud cli website documentation 2018-10-12 09:07:12 -07:00
Brian Cain 42c01f241c
Mark password as sensitive in logs 2018-10-12 09:07:12 -07:00
Brian Cain f1bae9f1eb
Remove level conditional for RestClient logging 2018-10-12 09:07:12 -07:00
Brian Cain adefbbaf6e
Scrub Vagrant Cloud tokens from RestClient logger 2018-10-12 09:07:12 -07:00
Brian Cain e8115a4389
Update based on second round of feedback 2018-10-12 09:07:12 -07:00
Brian Cain d8ec19faa8
Fixup: Update vagrant cloud command PR with feedback 2018-10-12 09:07:12 -07:00
Brian Cain e67dac0dbb
Alias `vagrant login` command 2018-10-12 09:07:12 -07:00
Brian Cain 9b385df4ec
Fix comment formatting 2018-10-12 09:07:12 -07:00
Brian Cain 3c45acc35f
Continue if entity already exists with publish command 2018-10-12 09:07:12 -07:00
Brian Cain 83bd592e30
Introduce curl helper and uploader classes
This commit introduces a new uploader class for uploading files and
splits up some commonly used functionality between it and the downloader
class into a curl helper library.
2018-10-12 09:07:10 -07:00
Brian Cain e70b871660
Introduce `cloud` command
This commit adds a new command to Vagrant called `cloud`. It handles any
and all interactions with the external service Vagrant Cloud.
2018-10-12 09:06:00 -07:00
Chris Roberts dd3d6c7cf2 Extend assert retries to allow for slow setup 2018-10-11 13:00:44 -07:00
Chris Roberts 9e4a3ee9d0 Update CHANGELOG 2018-10-11 10:49:40 -07:00
Chris Roberts 95fad3a8e3
Merge pull request #10259 from hoatle/bugs/#10258-vagrant_ansible_local_inventory
@ #10258 | BUG: should not create /tmp/vagrant-ansible/inventory/vagrant_ansible_local_inventory/vagrant_ansible_local_inventory
2018-10-11 10:48:27 -07:00