Oleksiy Protas
de6a1794c7
Config, validation and test
2018-09-19 10:24:09 -07:00
Oleksiy Protas
8d1b5fc1c9
Docu changes for building Docker images from git
2018-09-19 10:24:05 -07:00
Brian Cain
c3c7ad4ea2
Merge pull request #10218 from briancain/fix-env-vars-puppet-windows
...
Fixes #8315 : Properly set env variables for puppet provisioner
2018-09-19 09:04:01 -07:00
John Rizzo
b7d702ab5f
Update mount_shared_folder.rb
...
This change allows special characters in the password such as ) which will cause cmdkey to fail without the quotes.
2018-09-18 13:34:32 -07:00
Brian Cain
06b3268b6f
Fixes #8315 : Properly set env variables for puppet provisioner
...
Prior to this commit, the puppet provisioner would not properly set its
environment variables, if any were configured in the Vagrantfile. This
commit separates those properly with semicolons when calling out to
puppet apply.
2018-09-18 10:09:01 -07:00
mtkennerly
5c50c50d73
Fix #8328 : Use special quote and backslash formatting for Windows when setting Salt pillar.
2018-09-17 14:20:31 -07:00
Brian Cain
9ad04ada6c
Merge pull request #9431 from blueyed/options-without-leading-space
...
salt: remove leading space with bootstrap_options
2018-09-17 11:26:54 -07:00
Brian Cain
4fd9d522f6
Merge pull request #9432 from blueyed/curl-s
...
salt: bootstrap-salt.sh: use -s with curl
2018-09-17 11:13:21 -07:00
Brian Cain
13b09bedac
( #9802 ) Allow non-windows hosts to pass along version
...
The salt bootstrap can now accept version arguments on non-windows
hosts, so this commit allows the Vagrant provisinoer to specify a
version.
2018-09-07 13:39:36 -07:00
Brian Cain
4f42da15de
Merge pull request #10171 from eigengrau/default-template
...
vagrant init: Support VAGRANT_DEFAULT_TEMPLATE
2018-09-07 11:17:46 -07:00
Brian Cain
6c8d997053
Merge pull request #10181 from chrisroberts/f-auto-checkpoints
...
Check for automatic checkpoint support before configuring
2018-09-07 10:44:26 -07:00
Chris Roberts
1f74aedeaa
Check for automatic checkpoint support before configuring
...
The AutomaticCheckpointsEnabled option may not always be available
depending on the version in use. Check for support before applying
the configured value. If automatic checkpoints are to be enabled
and support is not available, force an error.
2018-09-05 13:37:45 -07:00
Brian Cain
c3c65a3793
Fixup docs and website wording for command
2018-09-05 13:26:22 -07:00
Brian Cain
b1a0fa628f
Add subcommand docstring to powershell
2018-09-05 12:56:17 -07:00
Brian Cain
d6e43d3197
Include winrm locales
2018-09-05 11:00:45 -07:00
Sebastian Reuße
3efdc8960c
vagrant init: Support VAGRANT_DEFAULT_TEMPLATE
2018-09-04 10:48:16 +02:00
Brian Cain
f51176a101
Merge pull request #10140 from berney/fix-ansible-perm-issue
...
Fix ansible_local provisioner permission bug
2018-08-31 11:02:47 -07:00
Brian Cain
11c619bff6
Merge pull request #10092 from jmaness/patch-1
...
[#10098 ] Filter out empty strings and loopback interfaces when constructing the list of network interfaces
2018-08-31 10:03:49 -07:00
Chris Roberts
c4084a6387
Extract smblist information based on position
...
Since we are no longer extracting information based on key value due
to localization issues, use start and end locations to extract data.
This prevents errors when extra information is included like Scope.
2018-08-30 10:58:56 -07:00
Chris Roberts
d48b95ffaf
Check :verify_host_key value for :never or if falsey
2018-08-24 14:11:30 -07:00
Berne Campbell
b036032cb0
fix typo
2018-08-23 13:07:56 +10:00
Berne Campbell
0d23724a1f
Fix ansible provisioner permission bug
2018-08-22 20:32:40 +10:00
Brian Cain
b1357a2f60
Merge pull request #10123 from briancain/add-force-flag-reload
...
Add `--force` flag to reload command
2018-08-17 15:18:36 -07:00
Brian Cain
c2cff0dc07
Merge pull request #10100 from briancain/DOCKER-TOOLBOX
...
Convert windows paths for volume mounts on docker driver
2018-08-17 15:08:59 -07:00
Brian Cain
e5364e7798
Only write box metadata if guest has box object
...
Prior to this commit, providers like docker would fail to be brought up
because they do not store box objects like virtualbox or vmware
provider guests. This commit fixes that by making sure the box object
exists before writing the metadata file to disk.
2018-08-17 09:58:24 -07:00
Brian Cain
c65a0a9054
( #9677 ) Add `--force` flag to reload command
...
This commit introduces the `--force` flag to the reload command. This
change means that if the flag is included, the halt step of the reload
will forcefully shutdown the virtual machine rather than a graceful
halt.
2018-08-16 13:57:13 -07:00
Brian Cain
5d2d784ae7
( #9085 ) - Add test for converting windows paths
...
This commit adds a test for checking that a windows path for mounting a
volume in a container is properly converted into something that's
usable.
2018-08-08 10:30:04 -07:00
Chris Roberts
2c4c14c57c
Merge pull request #10084 from chrisroberts/f-host-nfs-sudo
...
Fix sudo usage in exports write within linux host cap
2018-08-08 08:28:49 -07:00
Chris Roberts
8ec7963968
Merge pull request #10083 from chrisroberts/f-box-ver-up
...
Store box metadata of active guest
2018-08-08 08:25:47 -07:00
Brian Cain
9ec2eae5c9
Merge pull request #9976 from Biteable/fix-cmd-command
...
Allow shared folders to be mounted after installing MSYS2
2018-08-07 13:13:05 -07:00
Jeremy Maness
a73fb9c139
- Filter out empty strings when constructing the list of network interfaces
...
- Sort interfaces properly whose name does not contain a numeric suffix (e.g. lo)
- Filter out loopback interfaces
2018-08-04 21:16:51 -04:00
Chris Roberts
ceb7a0b5ac
When doing box lookup, use explicit provider, machine provider, then default
2018-08-02 16:41:28 -07:00
Chris Roberts
00b783a6a5
Lookup latest available installed box if required on update
...
When performing a box update and the box version has been updated
to be different than the installed version, perform a lookup for
the latest available installed box to allow the update command to
continue successfully
2018-08-02 16:12:10 -07:00
Chris Roberts
051c7a7823
Fix sudo usage in exports write within linux host cap
...
Only move new exports file to destination without sudo when the
file has write access and the directory has write access. Always
use sudo when changing file ownership.
2018-08-02 15:13:27 -07:00
Chris Roberts
6c1a9dc58e
Store box metadata of active guest
...
When a guest is created, the box metadata information is stored in the
machine data directory. This allows modifications to happen to the
Vagrantfile definition of the box in use (box name change, box version
change, etc) while still allowing the Machine instance of an active
guest successfully load the box currently backing it.
2018-08-02 11:01:36 -07:00
Brian Cain
b3da2bd21f
( #9614 ) Add back check for Solaris derived guests
...
This commit adds back the `uname` test 93c571adbf
removed to catch any solaris 11 derived guests like openindiana
2018-08-01 14:25:04 -07:00
Chris Roberts
de284a9056
Merge pull request #10079 from chrisroberts/f-win-virt-ext
...
Enable ExposeVirtualizationExtensions only when available
2018-07-31 13:54:55 -07:00
Chris Roberts
09c8e2800c
Merge pull request #10077 from chrisroberts/e-ipv6-link-local
...
Skip link-local addresses when fixing IPv6 route
2018-07-31 13:52:50 -07:00
Chris Roberts
e3e68c9b51
Merge pull request #10076 from chrisroberts/e-winrm-warn
...
Add warning when vagrant-winrm is found
2018-07-31 13:51:23 -07:00
Chris Roberts
fa9bda9554
Merge pull request #10066 from chrisroberts/e-net-ssh-update
...
Update net-ssh constraint
2018-07-31 13:48:49 -07:00
Chris Roberts
9c149ba8b1
Only enable ExposeVirtualizationExtensions if available within Hyper-V version
2018-07-31 13:33:41 -07:00
Cédric Félizard
f53238d253
Skip link-local addresses when fixing IPv6 route
...
This occurs with a Linux host when a link-local address is configured
for vboxnet0 (which is the default for VirtualBox 5.2.6).
`connect': Invalid argument - connect(2) for "fe80::ffff:ffff:ffff:ffff" port 80 (Errno::EINVAL)
2018-07-30 15:00:35 -07:00
Chris Roberts
dcfb84893d
Only reset the _init on testing cleanup
2018-07-30 14:44:36 -07:00
Chris Roberts
cd7215ab13
Add warning when vagrant-winrm is found
2018-07-30 13:27:20 -07:00
Chris Roberts
57e0bb5105
Update net-ssh constraint
...
Also includes mapping of verify_host_key value to new values
introduced in 5.0.0
2018-07-27 16:30:06 -07:00
Matthew Olenik
428eb3ed93
Support Docker volume consistency for synced folders
...
Adds the `docker_consistency` option, which sets the Docker volume
consistency level. This can be used to greatly improved synced folder
performance, especially on macOS.
See for details: moby/moby#31047
2018-07-27 15:16:39 -07:00
Brian Cain
72f3a7be14
Ensure the SecureRandom library is loaded
2018-07-27 13:44:24 -07:00
Chris Roberts
8ff29d5c05
Merge pull request #10043 from chrisroberts/f-smb-localization
...
Remove localization dependency from SMB list generation
2018-07-27 10:27:54 -07:00
Chris Roberts
584b288b8f
Merge pull request #9935 from whitel/fix-for-#9878
...
Fixes the change in packaging for nfs in f28 (#9878 )
2018-07-27 10:22:42 -07:00
Chris Roberts
a993cbce4e
Merge pull request #10037 from chrisroberts/e-vagrant-plugins-local
...
Define project specific plugins
2018-07-27 09:57:41 -07:00
Chris Roberts
4d4e707b73
Merge pull request #9889 from treytabner/debian-systemd-networkd
...
Increase priority and support multiple networks for Debian with systemd-networkd
2018-07-19 14:13:46 -07:00
Chris Roberts
2096bce36f
Remove localization dependency from SMB list generation
2018-07-19 13:40:54 -07:00
Chris Roberts
27a441f0bd
Merge pull request #10001 from chrisroberts/e-wsl-valid-sync
...
Disable synced folders on non-DrvFs
2018-07-18 16:41:16 -07:00
Chris Roberts
110600970a
Merge pull request #10000 from chrisroberts/f-hyperv-access-localized
...
Fix Hyper-V access check
2018-07-18 16:39:54 -07:00
Chris Roberts
10faa599e7
Merge pull request #9999 from chrisroberts/f-hyper-v-snaps
...
Enable checkpoints for snapshots if disabled
2018-07-18 16:38:32 -07:00
Chris Roberts
7c9fb9a5d7
Use availablity of local plugins file instead of option
2018-07-18 15:49:30 -07:00
Chris Roberts
8e0e2fc53a
Add output for local repair
2018-07-18 15:49:30 -07:00
Chris Roberts
8445b496d8
Use consistent terms for describing local flag
2018-07-18 14:19:29 -07:00
Chris Roberts
7a623d2826
Include local flag for plugin update command
2018-07-18 14:02:17 -07:00
Chris Roberts
3fd55dac23
Add local plugin repair support. Update global repair implementation.
2018-07-18 13:46:17 -07:00
Chris Roberts
ef0269c538
Add action method for local plugin repair
2018-07-18 13:45:15 -07:00
Chris Roberts
14edb8f423
Add local only and global only flags to plugin expunge command
2018-07-18 13:43:52 -07:00
Chris Roberts
9d191a2419
Add local option stub to allow Vagrantfile loading
2018-07-17 15:35:25 -07:00
Chris Roberts
8baf7ced38
Use path of state file, not state file itself
2018-07-17 15:35:25 -07:00
Chris Roberts
3223737734
Use env_local consistently internally
2018-07-17 14:49:41 -07:00
Chris Roberts
b71054502e
Update local usage to env_local for clarity
2018-07-17 14:49:41 -07:00
Chris Roberts
84c0aafe71
Support non-interactive local plugin install
2018-07-17 14:49:41 -07:00
Chris Roberts
40f4e6f67e
Vagrant Environment isolated plugins
...
Adds support for plugins isolated to a specific `Vagrant::Environment`
which can be managed by the vagrant plugin command using the the
--local flag.
2018-07-17 14:49:41 -07:00
Chris Roberts
8aa74a03a0
Differentiate checkpoints and automatic checkpoints
...
Provide separate configuration settings for enabling/disabling
checkpoints and automatic checkpoints with Hyper-V provider.
2018-07-13 15:23:09 -07:00
Brian Cain
52c3dcc70e
( #9997 ) Catch and allow for non-standard exit codes
...
Prior to this commit, the run trigger option wouldn't catch for failures
outside of the #Subprocess.execute raising exceptions. This commit fixes
that by inspecting the exit code result of the subprocess and using the
new `exit_codes` option to determine how to move forward with the
trigger.
2018-07-09 15:56:26 -07:00
Chris Roberts
2667de163b
Enable rsync synced folders for non-DrvFs file systems within WSL
2018-07-06 16:58:12 -07:00
Chris Roberts
859d48d5f5
Restrict synced folder access to DrvFs file systems only within WSL
2018-07-06 16:58:12 -07:00
Chris Roberts
cf29085d33
Fix root directory generation on failed access
2018-07-06 16:27:52 -07:00
Chris Roberts
15dacc80c0
Update ACL check to use identifier to prevent localization errors
2018-07-06 16:25:05 -07:00
Chris Roberts
a9bc0bb800
Do not provision and configure when state is saved
2018-07-06 15:49:36 -07:00
Chris Roberts
630bc6540d
Enable standard checkpoint on VM for snapshot if disabled
2018-07-06 15:29:07 -07:00
William Bowling
4ec865b69d
Make sure that the correct cmd is run
...
After installing msys2, there is another `cmd` on the path which prevents shared folders from being mounted. Explicitly calling `cmd.exe` fixes the issue
2018-07-02 13:15:10 +10:00
Chris Roberts
ac8ad59823
Provide custom error when attempting to push too many files with FTP
...
When the configured directory for FTP push has too many files, it will
generate an exception and fail due to a stack overflow. When this happens
just rescue out the exception and re-raise a custom error to provide
some context to the user on the actual problem.
2018-06-26 08:28:01 -07:00
Chris Roberts
101fc447ec
Add Hyper-V access check on data directory
2018-06-18 15:36:45 -07:00
Chris Roberts
941dd77a90
Force string conversion on paths
2018-06-18 09:53:06 -07:00
langdon
f0b9d025e4
Fixes the change in packaging for nfs in f28 ( #9878 ). However, removed part of the unit test which will be very difficult to fix (I expect). The unit test is still doing a good test that nfs and rpcbind work though. If you go far enough back, you need to bury the error out too.
2018-06-18 12:16:23 -04:00
Chris Roberts
fe8fe55d1f
Delete and re-create data directory when destroying guest
2018-06-18 09:09:27 -07:00
Chris Roberts
a8abb6898c
Fix PowerShell cmdlet name for clones
2018-06-18 09:09:01 -07:00
Chris Roberts
1e5c8bf275
Add check for WSL when determining if Hyper-V is usable
2018-06-18 09:08:35 -07:00
Chris Roberts
d84f29f12c
Just provide module path as conversion is done earlier
2018-06-18 09:08:05 -07:00
Chris Roberts
55aaa1d258
Update path usages to support Hyper-V provider access from WSL
2018-06-15 09:03:18 -07:00
Chris Roberts
8fbf27772a
Always ensure full path to configuration file on import
2018-06-15 07:48:14 -07:00
Chris Roberts
694104b005
Attempt to provide helper error message on failed VM import
...
When importing a Hyper-V VM fails, attempt to manually build
a system definition and inspect the result to determine cause
of the failure.
2018-06-14 16:40:37 -07:00
Chris Roberts
3919455f08
Merge pull request #9932 from chrisroberts/e-hyperv-maxmem-chk
...
Validate maxmemory setting within Hyper-V provider
2018-06-13 14:52:09 -07:00
Chris Roberts
4d3f5d33c6
Merge pull request #9925 from chrisroberts/u-powershelling
...
Misc. PowerShell cleanup
2018-06-13 14:51:43 -07:00
Chris Roberts
9482f351fc
Validate maxmemory setting within Hyper-V provider
...
Forces an error if maxmemory value is less than the configured
minimum or startup memory.
Fixes #9477
2018-06-13 13:27:11 -07:00
Trey Tabner
c218267436
Merge branch 'master' into debian-systemd-networkd
2018-06-13 12:49:50 -05:00
Chris Roberts
1554f447f2
Disconnect all configured network adapters
...
When importing a Hyper-V VM ensure all adapters are disconnected from
switches that were used when the box was built.
2018-06-13 07:59:56 -07:00
Chris Roberts
10ac204c29
Prevent SMB output from being wrapped
2018-06-12 16:47:47 -07:00
Chris Roberts
57842d7269
Update powershell messaging functions to not include second `-` character.
2018-06-12 16:47:47 -07:00
Chris Roberts
ee5656da37
Merge pull request #9923 from chrisroberts/f-win-perms
...
Update SSH key file permissions handling
2018-06-12 16:45:39 -07:00
Chris Roberts
4bf8fe1463
Merge pull request #9917 from chrisroberts/f-smb-garbage
...
Fix SMB information generation when using net share
2018-06-12 16:24:54 -07:00
Chris Roberts
e39b3555e6
Disable inherit on key file for parent ACL rules
2018-06-12 16:21:13 -07:00
Chris Roberts
ae8e25aabc
Include key path flag when calling script
2018-06-12 16:20:49 -07:00
Chris Roberts
16bcc1d874
Include scripts directory when building pathname
2018-06-12 16:20:30 -07:00