8762 Commits

Author SHA1 Message Date
Seth Vargo
b95e5d80f5
Allow users to force color
Fixes GH-5390
2016-05-30 15:56:09 -04:00
Seth Vargo
4236ddc021
Update CHANGELOG 2016-05-30 15:38:37 -04:00
Seth Vargo
3e3f19a548 Merge pull request #7363 from mitchellh/sethvargo/init_box_version
Add --box-version to `vagrant init`
2016-05-30 15:37:18 -04:00
Seth Vargo
bba1cbc72f
Add --box-version to vagrant init
This also adds a test suite for that particular command, updates the
documentation, and adds some examples.

Fixes GH-5004
2016-05-30 15:33:58 -04:00
Seth Vargo
f7ffec3589
Update CHANGELOG 2016-05-29 18:48:21 -04:00
Seth Vargo
c79594f5d1 Merge pull request #7360 from mitchellh/sethvargo/custom_ssh
Allow customization of keys_only & paranoid SSH
2016-05-29 18:47:15 -04:00
Seth Vargo
d44fcf2d52
Allow customization of keys_only & paranoid SSH
This adds two new SSH configuration options:

- `keys_only`
- `paranoid`

These values were previously hard-coded, but can now be user-specified.

Fixes GH-4275
2016-05-29 18:03:03 -04:00
Seth Vargo
791ad7ac8e
Update CHANGELOG 2016-05-29 14:48:56 -04:00
Seth Vargo
7301ce5de3 Merge pull request #7358 from mitchellh/sethvargo/pr-6620
Restart container if newer build is available
2016-05-29 14:47:42 -04:00
Seth Vargo
aaef5da41d
Use a different info message when image changed 2016-05-29 14:38:18 -04:00
Luca Invernizzi
d8c56be510
Restart docker container if newer image build is available. 2016-05-29 14:38:18 -04:00
Gilles Cornu
8190fba872 provisoners/ansible: improve config test coverage
Changes:

- Add "config" unit tests for `ansible_local` (guest)
- Share some "config" examples between both ansible provisioners
- Move `config_host.rb` specific examples to `config/host.rb`
- Add a requirement to "../helpers" in `config/guest.rb` in order to be
  able to run the related unit tests

References:

- This is the first part of GH-6633 resolution
- This change is a handy prerequisite for GH-6570

Not addressed yet:

- FIXME (guest.rb): Some test-double stubs are currently not working as
  expected, and the related checks are commented out for the moment
  (no idea why, but this is not urgent to be fixed because of GH-7335
  rejection. See also GH-6984)
- FIXME (shared.rb): The guest-based config should actually NOT return
  an error when the extra_vars file cannot be found, but only display a
  a warning (similarly to the changes done for GH-6763, see 4e451c6)
2016-05-29 17:01:37 +02:00
Seth Vargo
9b30557716 Merge pull request #7009 from daks/patch-1
puppet_apply doc: small typo fix
2016-05-29 01:22:15 -04:00
Seth Vargo
131c8c811e
Update CHANGELOG 2016-05-29 01:20:56 -04:00
Seth Vargo
e2fadbcf08
Add a log message when the VM master is missing 2016-05-29 01:19:56 -04:00
Seth Vargo
1e7c8e8d6c
Use LF instead of CRLF 2016-05-29 01:18:24 -04:00
Seth Vargo
d3d88f5d91 Merge pull request #7126 from jjulien/iss_6742
Fixed linked clone failure when master VM is missing
2016-05-29 01:14:04 -04:00
Seth Vargo
62a407771f
Style 2016-05-29 01:13:13 -04:00
Seth Vargo
f03904f4d0 Merge pull request #7179 from c0state/master
Add section to NFS sync folder docs for non-standard system utility locations
2016-05-29 01:12:13 -04:00
Seth Vargo
7713a52f01
Update CHANGELOG 2016-05-29 01:11:53 -04:00
Seth Vargo
426b4bf394 Merge pull request #7356 from mitchellh/sethvargo/pr-7228
Make it clear that you can run commands on machine IDs too
2016-05-29 01:11:28 -04:00
Seth Vargo
07389ffc04
Update command help to show id too 2016-05-29 01:06:51 -04:00
Kammy
ce33b3d114
update cmd format 2016-05-29 01:06:30 -04:00
Seth Vargo
71dad1d7a4
Update CHANGELOG 2016-05-29 00:59:04 -04:00
Seth Vargo
61adbf77d4 Merge pull request #7287 from KierranM/win-ssh-forward
[#7202] Always forward SSH on Windows
2016-05-29 00:58:18 -04:00
Seth Vargo
2f3973ef69
Update CHANGELOG 2016-05-29 00:56:47 -04:00
Seth Vargo
b11f8cbd1b Merge pull request #7293 from ericpulvino/master
Set max_network_adapters to 36 for Virtualbox
2016-05-29 00:55:44 -04:00
Seth Vargo
981b2a807d
Formatting 2016-05-29 00:55:04 -04:00
Seth Vargo
34777fb575 Merge pull request #7308 from davidsiefert/patch-1
Adding example of using the preserve_order flag
2016-05-29 00:54:09 -04:00
Seth Vargo
d9a9a7dd1b
Update CHANGELOG 2016-05-29 00:47:37 -04:00
Seth Vargo
9a2f6bd63d Merge pull request #7355 from mitchellh/sethvargo/tmpfile
Identify and cleanup tempfiles and temporary directories
2016-05-29 00:46:37 -04:00
Seth Vargo
159e1ec1f1
Use a real file for bundler 2016-05-29 00:41:59 -04:00
Seth Vargo
b993699af6
Cleanup more files in tests 2016-05-29 00:34:00 -04:00
Seth Vargo
1b414d3d9e
That file has to exist 2016-05-29 00:18:33 -04:00
Seth Vargo
982af05178
Add a note about why we will always leak RDP tmpfiles 2016-05-28 23:53:20 -04:00
Seth Vargo
ca337122dc
Fix test issues 2016-05-28 23:44:11 -04:00
Seth Vargo
f95eb124d5
Use Util::Tempfile in Chef provisioner
This also fixes some Windowsisms
2016-05-28 23:22:35 -04:00
Seth Vargo
5a4f345363
Use Util::Tempfile when configuring networks
This fixes a fairly large tempfile leak. Vagrant uses a template
renderer to write network configuration files locally to disk. Then,
that temporarily file is uploaded to the remote host and moved into
place. Since Vagrant is such a short-lived process, GC never came along
and cleaned up those tempfiles, resulting in many temporary files being
created through regular Vagrant usage.

The Util::Tempfile class uses a block to ensure the temporary file is
deleted when the block finishes. This API required small tweaks to the
usage, but provides more safety to ensure the files are deleted.
2016-05-28 23:22:34 -04:00
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