Commit Graph

8931 Commits

Author SHA1 Message Date
Seth Vargo 3d2390fc94
Give a unique, prefixed name to all tempfiles
This commit basically grepped the code base for all uses of Dir.mktmpdir
and Tempfile.new/open and ensures the value is unique within the
code base and also prefixed with `vagrant-`.

Previously, most invocations of these commands simply used "vagrant",
thus making them indistinguishable when trying to identify leaks.
2016-05-28 23:22:34 -04:00
Seth Vargo fb7c4033a9
Do not create a tempfile when downloading box metadata
The only reason we were using Tempfile was to generate the path. This
commit switches to using `Dir::Tmpname.create`, which accomplishes the
same thing without the overhead of creating and removing a tempfile.
2016-05-28 23:22:34 -04:00
Seth Vargo fb60d34236
Add unique names to all tmpdir and tempfile calls in tests + cleanup
This commit attempts to uniquely identify the temporary files and
directories that are created during test runs. Where it was a quick
fix, this commit also removes the temporary files and directories.

There are still a ton of temporary files due to calls to
.isolated_environment in the tests without an easy API an easy way
to provide a closer to that function.
2016-05-28 23:22:34 -04:00
Seth Vargo 3a27c29577
Add a new util for generating tempfiles 2016-05-28 23:22:33 -04:00
Seth Vargo 453fdb02d0
Update CHANGELOG 2016-05-28 17:11:32 -04:00
Seth Vargo 11ed254708 Merge pull request #7354 from mitchellh/sethvargo/bundler_leak
Fix file leaking in bundler
2016-05-28 17:10:06 -04:00
Seth Vargo cee6e6c7bc
Fix file leaking in bundler 2016-05-28 17:01:59 -04:00
Seth Vargo 61f4128003
Update CHANGELOG 2016-05-27 19:09:38 -04:00
Seth Vargo fc8e97cd89
Style 2016-05-27 19:08:49 -04:00
Seth Vargo 01369342db Merge pull request #5670 from agdula/master
add RDP auto login with password
2016-05-27 19:08:10 -04:00
Seth Vargo 4250fb5514
Update CHANGELOG 2016-05-27 19:03:23 -04:00
Ray Ruvinskiy e42f346b1d
Make `start` action run provisioners if VM is running
Previously, there was no one gesture that would start a VM if it was not
running and run the appropriate provisioners regardless of its original
state. `vagrant up` did nothing if the VM was running, while
`vagrant provision` did nothing if the VM was not running.

Change the semantics of `vagrant up`, via the start actions of the providers,
to go through the provisioning logic even if the VM is already running.
The semantics of `run: "once"` vs `run: "always"` are respected.

Tested with the VirtualBox provider but not the others.

Resolves #4421
2016-05-27 19:00:33 -04:00
Seth Vargo 9baa5baff6
Update CHANGELOG 2016-05-27 18:39:23 -04:00
Seth Vargo 68329817ad Merge pull request #7290 from phyber/fix/master/prepare_nfs_settings_machine_ip_fix
prepare_nfs_settings: Try harder to get all machine IPs.
2016-05-27 18:38:03 -04:00
Seth Vargo ef22149e9c
Update CHANGELOG 2016-05-27 17:39:06 -04:00
Seth Vargo 8c11b537ba
Allow Mac/Windows users to use Docker native 2016-05-27 17:36:07 -04:00
Seth Vargo db1f98ffd6 Merge pull request #7298 from till/t/docker-for-mac-beta
Change: disable the linux switch (Docker for Mac/Windows, etc.)
2016-05-27 17:25:13 -04:00
Christian Hofstaedtler ba77d4b533
Allow Vagrant to work with newer Rubygems
Fixes GH-7073
2016-05-27 17:19:33 -04:00
Seth Vargo a4803c0869
Update CHANGELOG 2016-05-27 17:17:29 -04:00
Seth Vargo 171434bbf9 Merge pull request #7353 from mitchellh/sethvargo/package_preflight
Move pre-flight package validation to middleware
2016-05-27 17:16:40 -04:00
Seth Vargo a92d841e2a
Update CHANGELOG 2016-05-27 17:08:46 -04:00
Seth Vargo f313c89d74 Merge pull request #7059 from markpeek/markpeek-no-provision-on-resume
Do not ignore the sentinal file when running resume
2016-05-27 17:07:41 -04:00
Seth Vargo efdb148f61
Move pre-flight package validation to middleware
This commit separates the scratch and output directory creation from the
main package middleware into its own PackageSetupFolders middleware.
Additionally, the validation that ensures an output file does not exist
is moved into a validation function that can be shared across multiple
methods.

This refactor permits a pre-flight check to ensure box packaging would
be successful before actually stopping the VM.

Fixes GH-7351
2016-05-27 17:07:04 -04:00
Seth Vargo a735608787
Update CHANGELOG 2016-05-27 16:06:56 -04:00
Seth Vargo d9a4736e1c Merge pull request #7352 from mitchellh/sethvargo/24
Bump box resume delay to 24h
2016-05-27 16:05:27 -04:00
Seth Vargo 2a02ceb870
Bump box resume delay to 24h
This commit bumps the box resume delay time to 24h and makes it a
constant because I had a bugger of a time actually finding this in the
code :frowny:.

Fixes GH-7272
2016-05-27 15:18:50 -04:00
Seth Vargo f8439869e7 Merge pull request #7349 from kcvajgf/synced-folder-id
Documentation for synced_folder's 'id' argument
2016-05-27 09:57:07 -04:00
kcvajgf 368db4e933 Add documentation for synced_folder's 'id' argument 2016-05-27 20:43:01 +08:00
Seth Vargo 06135e3d6e Merge pull request #7347 from dmerrick/patch-1
Fixing second paragraph indentation and link.
2016-05-26 15:35:01 -04:00
Dana Merrick f7fa88fe8b Fixing second paragraph indentation and link. 2016-05-26 11:32:21 -07:00
Seth Vargo d35e7c43f0 Merge pull request #7339 from Apophenia/patch-1
Fix typo in list of action hooks
2016-05-23 19:43:31 -04:00
Lyndsey M c6bfb19e24 Fix typo in list of action hooks
Fixes misspelled word in `machine_action_up` description: 'caled' to 'called'
2016-05-23 19:12:58 -04:00
Seth Vargo a26742fc27 Merge pull request #7334 from annag42/patch-1
Update up.html.md
2016-05-21 10:24:53 -04:00
annag 87fd8beef8 Update up.html.md
s/created and interacting with/created and interacted with/
for grammatical correctness (parallel construction).
2016-05-20 18:58:43 -07:00
Seth Vargo ee492629ac
Update CHANGELOG 2016-05-20 10:46:49 -04:00
Seth Vargo 08550b6888 Merge pull request #7108 from jtopper/fix_hyperv_status_exception
HyperV: Reinstate compatibility with PowerShell 4
2016-05-20 10:46:01 -04:00
Seth Vargo b384ff98a5
Trailing comma 2016-05-19 11:35:53 -04:00
Seth Vargo 1571879a4b
Update CHANGELOG 2016-05-19 11:34:50 -04:00
Seth Vargo 4bdeeee793 Merge pull request #7327 from thommay/support_solo_legacy
Support Chef Solo local + legacy modes
2016-05-19 11:34:15 -04:00
Thom May 693d4dd5f1
Support Chef Solo local + legacy modes
Signed-off-by: Thom May <thom@may.lt>
2016-05-19 15:27:17 +01:00
Seth Vargo f6db93d4be
Update CHANGELOG 2016-05-16 12:07:41 -04:00
Seth Vargo 938f8f384d Merge pull request #7110 from jtopper/hyperv_snapshots
Add snapshot support to Hyper-V provider
2016-05-16 12:06:51 -04:00
Seth Vargo e3c327b977
Fix typo
Fixes GH-7315
2016-05-14 11:28:36 -04:00
Jon Topper 0a7c20a93a Determine status behaviour based on PS version 2016-05-13 17:50:24 +01:00
Jon Topper 82438da8a7 Add docs detailing the rollback limitations. 2016-05-13 17:28:33 +01:00
Jon Topper df4caf0757 Add snapshots to Hyper-V driver 2016-05-13 16:58:08 +01:00
Eric Pulvino ffb866ac7f Updated the error message for too many adapters. 2016-05-12 21:58:05 -04:00
David Siefert 3706eef791 Adding example of using the preserve_order flag
I couldn't really understand how to use this feature.... I might be dumb, didn't rtfm, I dunno.  Here is a PR anyway to help clarify by example.
2016-05-11 16:58:01 -05:00
David O'Rourke c5f975838d prepare_nfs_settings: Add spec test for static/dynamic IP combo 2016-05-10 11:40:16 +01:00
David O'Rourke 985f1d4dda prepare_nfs_settings: Fix add_ips_to_env!, spec test passes again. 2016-05-10 11:16:21 +01:00