Commit Graph

8342 Commits

Author SHA1 Message Date
Timur Alperovich bcf61d001b Only consider the VM interfaces in the IPv6 fixup.
Vagrant should only consider the host-only interfaces used by the
virtual machine in the IPv6 fixup code. There may be other interfaces
present on the system with IPv6 addresses that for various reasons
would fail the routing check (for example, an interface with no
machines attached).

The patch changes the behavior to not scan all of the host-only
interfaces and adds a unit test for the behavior (that the correct IP
is validated).

Lastly, there is a small fix here that may not be an issue for most
people where the IPv6 prefix was asummed to be a multiple of 16 for
the purposes of constructing the UDP probe datagram. This assumption
has been removed.

Fixes #6586
2015-12-08 10:44:07 -05:00
Gilles Cornu a8d0c225c6 Merge pull request #6649 from rickard-von-essen:issue-6636
Close #6636

Note that there is no CHANGELOG entry for this bug fix, since the
`ansible_local` provisioner [#2103] has not been released yet.
2015-12-07 22:41:06 +01:00
Gilles Cornu a0980aa8be provisioners/ansible: minor code formatting change
[ci skip]
2015-12-07 22:30:13 +01:00
Gilles Cornu 850716b220 provisioners/ansible: remove erroneous comment
[ci skip]
2015-12-07 22:28:23 +01:00
Seth Vargo c60a71861f Update CHANGELOG 2015-12-07 10:58:46 -05:00
Seth Vargo 36b87bb32b Merge pull request #6650 from mitchellh/sethvargo/checksum_case
Ignore case when comparing checksums
2015-12-07 10:57:29 -05:00
Seth Vargo 5c09e94f1a Clarify that support might be in a later Vagrant version 2015-12-07 10:57:26 -05:00
Seth Vargo 4e21dd78e4 Ignore case when comparing checksums
Fixes GH-6648
2015-12-07 10:30:46 -05:00
Rickard von Essen 9f3ebef810 Support ansible install on RedHat derivates and Fedora.
Fixes #6636
2015-12-07 15:44:20 +01:00
Seth Vargo 44eac3c819 Merge pull request #6643 from mkuzmin/util-powershell
Fix `uninitialized constant` error in `vagrant powershell` command
2015-12-05 12:24:33 -05:00
Michael Kuzmin 546649fb9e Fix `uninitialized constant` error in `vagrant powershell` command 2015-12-05 17:24:58 +03:00
Gilles Cornu c20e1bb594 provisioners/ansible: support host pattern ranges
Introduction of "unsafe" numeric or alphabetic patterns in the generated inventory

Close #3539
2015-12-05 07:11:27 +01:00
Gilles Cornu 3a793a2721 provisioners/ansible(both): minor tweak in en.yml
Related to #3539.
2015-12-05 07:10:11 +01:00
Gilles Cornu c901e81e37 docs (ansible): update and fixes for [GH-3539]
- clearly mention that this feature is available since Vagrant 1.8.0
- reorganize the special notes
- update the examples to be more focused, and mention that a host range
  is not coherent with `Vagrantfile` machine definitions.
2015-12-05 06:59:29 +01:00
Kamjar Gerami b7e9437a77
#3539 - Fixed syntax, language and logic according to comments made by reviewer in PR #6639 2015-12-04 10:05:07 +01:00
Kamjar Gerami f5f568b66b
Added plain Symbol group name for unit test 2015-12-04 02:16:01 +01:00
Kamjar Gerami 5cbbbb5e28 #3539 - Can't use alphanumeric patterns for box names in ansible.groups: Changed iteration logic for warning message and fixed regex typo 2015-12-04 01:29:22 +01:00
Kamjar Gerami af6a80472e #3539 - Can't use alphanumeric patterns for box names in ansible.groups: added unit test for host range patterns 2015-12-04 01:26:04 +01:00
Kamjar Gerami 934bcf9419 #3539 - Can't use alphanumeric patterns for box names in ansible.groups: Host Range Pattern Regex, notification and updates to provisioning web source 2015-12-04 01:13:59 +01:00
Gilles Cornu dde7f4697f Merge branch 'gildegoma/review-6626'
Related to #6619, #6626 and #6627
2015-12-03 21:52:34 +01:00
Gilles Cornu cc2d11b497 provisioners/ansible+ansible_local: inventory vars
Add support for group and host variables in the generated inventory.

Close #6619
2015-12-03 21:50:53 +01:00
Gilles Cornu 8517014a99 provisioners/ansible: update inventory groups tests
With the introduction of inventory variables, group members provided as
String are not splitted (by ' ') into an array (instead of
auto-conversion to a single-item array).
2015-12-03 09:39:12 +01:00
Gilles Cornu 4c137a9b6b provisioners/ansible: fix comment indentation
[ci skip]
2015-12-03 09:36:57 +01:00
Gilles Cornu 9867281971 provisioners/ansible: allow symbol in `groups` key
After c49a146467, it makes even more sense
to support Symbol datatypes in `groups` option handling.
2015-12-03 09:34:53 +01:00
Gilles Cornu 06e772a241 docs (ansible): update inventory host vars example
Better reflect the true generated inventory output.

[ci skip]
2015-12-03 08:14:47 +01:00
Mitchell Hashimoto 7caaffbf38 website/docs: update machine readable output options 2015-12-02 18:07:00 -08:00
Mitchell Hashimoto 30d9e243bb fix failing tests 2015-12-02 18:03:08 -08:00
Mitchell Hashimoto 350da6e1d5 commands/ssh_config: output machine readable output 2015-12-02 17:53:08 -08:00
Mitchell Hashimoto 5c4e71e317 core: machine output provider info for the machine 2015-12-02 13:06:07 -08:00
Mitchell Hashimoto cee517d963 core: fix machine readable UI to contain target and have proper format 2015-12-02 13:06:07 -08:00
Gilles Cornu c99de13893 ansible docs: inventory variables support in 1.8+
Ref #6619
2015-12-02 08:47:58 +01:00
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
Seth Vargo a87dec60ad Merge pull request #6606 from rubenv/patch-1
Document missing sudoers item
2015-11-27 19:31:46 -05:00
Ruben Vermeersch 3c1c553789 Document missing sudoers item 2015-11-27 09:49:38 +01: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