Gilles Cornu
3dbcf5083c
provisioners/ansible(both) add more unit tests
...
Improve the test coverage of 'get_inventory_host_vars_string' method.
2015-12-02 08:42:44 +01:00
Gilles Cornu
c49a146467
provisioners/ansible(both): alias String-to-Symbol
...
String and Symbol types are different when used as a Hash key. By
default the Vagrant machine names are set in Symbol format, but users
may write their `host_vars` entries with String keys. This is a very
simple way to ensure smooth experience, without having to coerce the
data types during the config validation (e.g. with a library like
Hashie, which is currently not in the Vagrant dependencies)
See also:
- https://bugs.ruby-lang.org/issues/5964#note-17
- https://github.com/intridea/hashie#keyconversion
2015-12-02 08:37:41 +01:00
Christian Henz
77b11a989c
Implemented host_vars option.
2015-12-01 18:56:28 +01:00
Christian Henz
a5dd61c450
Added test to expect host vars being inserted into inventory.
2015-12-01 18:56:28 +01:00
Christian Henz
78766ded4e
Document host_vars option.
2015-12-01 18:56:28 +01:00
Christian Henz
dd4ae1a51c
Parse and insert group variables into the generated inventory.
2015-12-01 18:56:28 +01:00
Christian Henz
3fbbfeb862
Expect group variables to be inserted in the test.
2015-12-01 18:56:28 +01:00
Christian Henz
a5ff241586
Updated documentation to reflect the possibility of adding group vars.
2015-12-01 16:43:57 +01:00
Reed Loden
7d81728e45
Add checksum validation for the VirtualBox installs on Windows and OS X
...
Use Vagrant::Util::FileChecksum to validate the downloaded VirtualBox
installers.
SHA-256 checksums for VirtualBox files are available at
https://www.virtualbox.org/download/hashes/5.0.10/SHA256SUMS .
Fixes #6611 .
2015-11-28 00:04:41 -08:00
Seth Vargo
a87dec60ad
Merge pull request #6606 from rubenv/patch-1
...
Document missing sudoers item
2015-11-27 19:31:46 -05:00
Joshua Harshman
652b4dac55
Vagrant Issue #6608
...
Refactor and repair regular expression attempting to match present interfaces.
The refactored regular expression will match on enp* ens* eth* variants.
2015-11-27 13:13:44 -08:00
Ruben Vermeersch
3c1c553789
Document missing sudoers item
2015-11-27 09:49:38 +01:00
Seth Vargo
64ff69c64b
Only run cleanup tasks when they are defined on the provisioner
...
This helps with some confusion caused in GH-2538, since the output says:
> Running cleanup tasks for 'shell' provisioner...
But that's actually not true. It is running the cleanup tasks iff the
provisioner defined a cleanup task. This commit changes the
provisioner_cleanup middleware to only run cleanup tasks if the subclass
defines a cleanup task.
The reason we can't just check if the provisioner `respond_to?` the
`cleanup` method is because the parent provisioner base class (which
all provisioners inherit from) defines a blank cleanup method. This is
important because it means we never risk calling an unimplemented
cleanup function, and it also helps define the public API for a
provisioner.
2015-11-26 13:11:51 -05:00
Seth Vargo
b63fdf756f
Merge pull request #6601 from romulodl/update_provision_with_help_message
...
update help message on --provision-with to add by provisioner name
2015-11-26 12:23:36 -05:00
Seth Vargo
2f2c442457
Document that the `shutdown` command must be on the $PATH
...
- Fixes GH-6449
- Closes GH-6450
2015-11-26 12:22:23 -05:00
Romulo De Lazzari
a9e1ef4fe3
update help message on --provision-with to add by provisioner name
2015-11-26 15:17:09 +00:00
Gilles Cornu
32bb316564
Update CHANGELOG.md
...
close #5086
2015-11-25 22:48:56 +01:00
Gilles Cornu
eaf918ec35
Merge branch 'gildegoma/5086-ansible-winrm' into master
2015-11-25 22:46:08 +01:00
Seth Vargo
2221a1dc8f
Merge pull request #6599 from legal90/test-linked-clone
...
Add acceptance test for linked clones
2015-11-25 15:41:22 -05:00
Seth Vargo
6c40a8b66c
Update CHANGELOG
2015-11-25 15:40:54 -05:00
Seth Vargo
c24a44a7c6
Merge pull request #6591 from mitchellh/sethvargo/ports
...
Add `vagrant port` command
2015-11-25 15:39:59 -05:00
Mikhail Zholobov
3d4a133dce
Add acceptance test for linked clones
2015-11-25 00:23:19 +02:00
Seth Vargo
1bb9a48ae7
Fix cap test
2015-11-24 16:41:13 -05:00
Seth Vargo
3502042d96
Lol whitespace [ci skip]
2015-11-24 16:36:36 -05:00
Seth Vargo
b4371725af
Add documentation for port command
2015-11-24 16:33:09 -05:00
Seth Vargo
050f8d4d71
Allow specifying the guest port search
2015-11-24 16:33:09 -05:00
Seth Vargo
4cebe283e8
Remove debug/todo comments
2015-11-24 16:33:09 -05:00
Seth Vargo
f20c08f57f
Return nil if the VM is not running when looking at forwarded ports
2015-11-24 16:33:09 -05:00
Seth Vargo
beb84d3212
Move to I18n
2015-11-24 16:33:09 -05:00
Seth Vargo
958ce8983b
Remove todo comment
2015-11-24 16:33:08 -05:00
Seth Vargo
063f60e593
Add `vagrant port` command
2015-11-24 16:33:08 -05:00
Seth Vargo
4ebf0252a4
Merge pull request #6597 from timuralp/bundler_fix
...
Fix the resolution of SafeEnv.
2015-11-24 15:25:23 -05:00
Timur Alperovich
5b910c186c
Fix the resolution of SafeEnv.
...
Recent change broke bundler.rb due to incorrect scope resolution (the
error is: uninitialized constant Vagrant::Bundler::SafeEnv
(NameError).
2015-11-24 12:18:50 -08:00
Mitchell Hashimoto
7a1d17042d
install VB 5.0.10
2015-11-23 22:54:31 -08:00
Seth Vargo
15ddc1bf9d
Add docs for action hooks
...
Fixes GH-6271
2015-11-23 21:07:00 -05:00
Seth Vargo
c05486b1ad
Update docs on owner/group for docker synced folders
...
Fixes GH-5906
2015-11-23 20:40:30 -05:00
Seth Vargo
3f6b4e2dda
Update docs for sudo for NFS
...
Fixes GH-6022
2015-11-23 20:37:49 -05:00
Seth Vargo
aa4dd7cd0e
Update CHANGELOG
2015-11-23 20:25:09 -05:00
Seth Vargo
5f8f13d0b1
Merge pull request #6590 from mitchellh/sethvargo/login_proxy
...
Respect proxy envvars for login command
2015-11-23 20:23:34 -05:00
Seth Vargo
bd48d24825
Respect proxy envvars for login command
2015-11-23 20:19:45 -05:00
Seth Vargo
1fd3c955b7
Update CHANGELOG
2015-11-23 20:04:30 -05:00
Seth Vargo
db6bd5e824
Merge pull request #6589 from mitchellh/sethvargo/escape_identity_file
...
Escape identify file path
2015-11-23 20:03:25 -05:00
Seth Vargo
8f420837a4
Escape identify file path
2015-11-23 20:00:12 -05:00
Seth Vargo
2a6db90afd
Update CHANGELOG
2015-11-23 19:39:13 -05:00
Seth Vargo
262e3f254e
Merge pull request #6588 from mitchellh/sethvargo/env_shell
...
Add :env option to shell provisioner
2015-11-23 19:38:19 -05:00
Seth Vargo
eaf0aeb210
Fix test
2015-11-23 19:35:03 -05:00
Seth Vargo
930e166b47
Add :env option to shell provisioner
2015-11-23 19:29:35 -05:00
Seth Vargo
977e3f92e4
Merge pull request #6587 from mitchellh/sethvargo/chef_presence
...
Use the new presence helpers in the Chef provisioner
2015-11-23 18:50:05 -05:00
Seth Vargo
8c3f833e8e
Use the new presence helpers in the Chef provisioner
2015-11-23 18:33:47 -05:00
Seth Vargo
0698743724
Merge pull request #6585 from mitchellh/sethvargo/presence
...
Add presence helpers
2015-11-23 18:13:18 -05:00