Chris Roberts
623a1815ae
Allow use of subnet option when defining private network with dhcp type
2019-03-19 14:35:40 -07:00
Chris Roberts
670bef6596
Allow custom subnet to be provided when private network type is dhcp
2019-03-19 14:20:14 -07:00
Chris Roberts
afb6c20581
Fix option mask to be expected netmask
2019-03-19 14:03:03 -07:00
Chris Roberts
a1c7eec441
Include synchronization as the environment lock is per process only
2019-03-19 13:46:14 -07:00
Chris Roberts
a645ce3c25
Docker provider networking support updates
...
Use `mask` option for defining subnet on network configuration. Allow
options to be passed through using hash scoping and docker_network and
docker_connect prefixes. Enable public networks. Allow configuration
to define pre-existing networks by name.
2019-03-19 11:44:33 -07:00
Chris Roberts
1224622387
Remove container inspection caching and Exception rescue
...
Container inspection is caching data on first lookup. This will
result in incorrect data being returned on subsequent lookups if
a different `cid` value is provided. Also removed rescue of
the `Exception` class as this generally should never happen; rescue
of StandardError will be enough.
2019-03-19 11:44:22 -07:00
Chris Roberts
c251e090b3
Remove Mutex for synchronization. Environment#lock satisfies requirement.
2019-03-19 11:44:02 -07:00
Brian Cain
4e4e03d7fd
Merge pull request #10742 from rockhopper72/fix-typo-in-wsl
...
Fix formatting issues on WSL docs
2019-03-19 09:05:06 -07:00
rockhopper72
9678e93a27
Fix formatting issues on WSL docs
...
- Insert underline to fix **bold** formatting
- Remove grave accent to fix `code` highlighting
2019-03-19 09:03:24 -04:00
Brian Cain
6664936c0b
Make ignored vagrant network options a constant
2019-03-12 10:40:58 -07:00
Brian Cain
5ed5868067
Inspect networks before creating new ones
...
This commit updates the behavior of how the docker provider creates new
docker networks. It looks at each existing network to see if the
requested subnet has already been configured in the docker engine. If
so, Vagrant will use that network rather than creating a new one. This
includes networks not created by Vagrant. Vagrant will not clean up
these networks if created outside of Vagrant.
2019-03-12 10:36:57 -07:00
Chris Roberts
1c650a7fb8
Remove whitespace from id file on load
...
If the id file includes whitespace, remove it. If the content of
the id file is empty, do not set the machine id.
Fixes : #10722
2019-03-11 17:08:13 -07:00
Brian Cain
1e1c398de5
Update CHANGELOG
2019-03-11 15:08:26 -07:00
Brian Cain
e399aeaf70
Merge pull request #10717 from briancain/add-vbox-share-folders-bsd
...
Add proper VirtualBox share folders support for FreeBSD guests
2019-03-11 15:07:17 -07:00
Brian Cain
b4a21617d1
Update CHANGELOG
2019-03-11 15:05:55 -07:00
Brian Cain
11e6ea3a76
Merge pull request #10726 from briancain/improve-cloud-cli-doc-strings
...
Fixes #10723 : Fix bug instance var in Vagrant Cloud CLI optparse
2019-03-11 15:04:55 -07:00
Brian Cain
5b3c6b8ad4
Fixes #10723 : Fix bug instance var in Vagrant Cloud CLI optparse
...
This commit uses the correct instance variable for the optparse library
when reading in the command line flags for various Vagrant Cloud CLI
commands.
2019-03-11 14:21:55 -07:00
Brian Cain
2f0c66f832
Only enable shared folder mounts on freebsd guests
...
Since the virtualbox guest additions seem to only be available for
freeBSD, move the shared folder functionality over to freebsd guests
rather than all BSD guests.
2019-03-08 11:03:23 -08:00
Brian Cain
b2251d5bec
Update logger to display vboxvfs module rather than vboxsf
...
Ensure the logger displays the right vbox module used for mounting
shared folders
2019-03-07 10:49:38 -08:00
Brian Cain
fe002b7e48
Add unit tests for virtualbox shared folders
2019-03-07 10:35:37 -08:00
Brian Cain
0bfca8293a
Update from vboxsf to vboxvfs
...
BSD guests use vboxvfs module for mounting share folders
2019-03-07 10:35:37 -08:00
Brian Cain
554b096961
Fixes #8884 : Introduce proper VirtualBox shared folders for BSD
...
This commit adds proper VirtualBox shared folder support for BSD guests.
It is essentially a copy of the linux capability.
2019-03-07 10:35:37 -08:00
Brian Cain
2c25cf8d01
Add note about network creation in docker provider
2019-03-05 13:46:05 -08:00
Brian Cain
cedf5aff17
Add note about link legacy flag in connect
2019-03-05 11:23:23 -08:00
Brian Cain
93f833d2b3
Add docs page about networking with the docker provider
2019-03-05 11:18:35 -08:00
Brian Cain
b78dada2c7
Fix docker driver handling cli flags
...
Make opts argument set to nil instead of splat to make Travis Ruby 2.3
happy
2019-03-05 10:57:05 -08:00
Renato Aguiar
4de7716ffb
Fix NFS capability detection on Void Linux
2019-03-05 10:03:52 -08:00
Brian Cain
2be0bc2d81
Add unit tests for docker network actions
2019-03-05 09:49:15 -08:00
Brian Cain
cccbedf4ce
Update how docker network handles processing options to cli arguments
...
Add an "ignored option" array rather than a big if-statement expression
2019-03-04 14:19:40 -08:00
Brian Cain
953a380371
Fix how Vagrant assigns cli arguments for the create command
...
This commit inlines the flag assignments so that arguments are properly
assigned to flags rather than arguments to the subcommand.
2019-03-04 13:44:21 -08:00
Brian Cain
efb9fd7b65
Move strings into locales file
2019-03-04 13:33:08 -08:00
Brian Cain
a1b48ed1bb
Raise proper class if invalid options given for docker network
2019-03-04 13:17:14 -08:00
Chris Roberts
fbe44f1f48
Update CHANGELOG
2019-03-04 13:07:07 -08:00
Chris Roberts
5dc504b12c
Merge pull request #10706 from chrisroberts/e-package-metadata
...
Write metadata file to box contents during package
2019-03-04 13:06:24 -08:00
Chris Roberts
5660d078a8
Update CHANGELOG
2019-03-04 13:05:50 -08:00
Chris Roberts
a941ff40c4
Merge pull request #10707 from steve-simpson/bsdtar_fix_issue_10705
...
Added --no-same-owner & --no-same-permissions flags to bsdtar in box_…
2019-03-04 13:04:47 -08:00
Brian Cain
0b28580105
Move out cli argument generation to own function
2019-03-04 10:33:24 -08:00
Brian Cain
81fa7036be
Rename cli argument method
2019-03-04 10:28:49 -08:00
Brian Cain
6c7c74be5a
Fix if statement from `=` to `==`
2019-03-04 10:28:05 -08:00
Brian Cain
4080f9e64d
Log warning if docker network inspect fails to return json
2019-03-04 10:25:10 -08:00
Brian Cain
5adffb608d
Only allow private_network for docker network provider
2019-03-01 16:34:43 -08:00
Brian Cain
29696b0f73
Allow for ipv6 networks in docker
2019-03-01 16:20:16 -08:00
Brian Cain
000457a012
Update how docker network provider creates networks
...
This commit updates the docker network provider to only create networks
by subnet rather than per-container.
2019-03-01 16:07:53 -08:00
steve-simpson
7b3ca04a6e
Added --no-same-owner & --no-same-permissions flags to bsdtar in box_collection.rb
2019-03-01 18:02:37 +00:00
Brian Cain
c20de9044d
Log information if unsupported docker network option is provided
2019-03-01 08:34:43 -08:00
Brian Cain
4a0f1a0a33
Update docker network action to auto-generate cli flags
...
This commit updates the docker network behavior to auto-generate the
docker network command flags from Vagrants network config option.
2019-03-01 08:34:43 -08:00
Brian Cain
b5a092397f
Add new function for handling vagrant options to docker network cli
...
flags
2019-03-01 08:34:43 -08:00
Brian Cain
ba2a1224e0
Update driver to include network tests
2019-03-01 08:34:43 -08:00
Brian Cain
dc5f8c66f2
Add todo comment for future fixup
2019-03-01 08:34:43 -08:00
Brian Cain
4dc5f7c330
Add basic ability to configure some networks for containers
2019-03-01 08:34:43 -08:00