Tony Arkles
795a7a3d23
Fix for problem where the host_info.ps1 script returns a string instead of a list of IPs
2015-12-17 14:40:50 -06:00
Mitchell Hashimoto
811f21938a
Merge pull request #6675 from michaa76/master
...
#6674 CFEngine Provisioner Broken on Debian (http > https)
2015-12-16 10:46:21 -08:00
michaa76
37d7239803
#6674 CFEngine Provisioner Broken on Debian (http > https)
2015-12-16 14:25:23 +01:00
Gilles Cornu
ddbd2a4cfc
provisioners/ansible: prefer ssh '-i' argument
...
In cd93721
, I relied on a suprising combination of quotes to protect ssh
execution to strip the quoted path to the private key file.
Since any ssh command line argument can be passed via
`ANSIBLE_SSH_ARGS`, it is quite more readable and easy to rely on the
`-i` argument, which is not affected like `-o IdentityFile=...` and also
supports multiple occurences.
See also http://sourceforge.net/p/fuse/mailman/message/30498048/
Finally fix #6671
Note that I decided to not squash both commits for better
documentation and traceability.
2015-12-16 10:29:13 +01:00
Gilles Cornu
cd93721f8f
provisioners/ansible: use quotes for the IdentityFile OpenSSH command line arguments
...
Surprisingly (to me at least), a simple quote enclosure was not enough
to fix the problem.
Caveat: the stringified ansible-playbook command logged in verbose mode
is wrongly formatted (no quotes are escaped).
Fix #6671
2015-12-16 09:54:53 +01:00
Mitchell Hashimoto
06a1461081
Merge pull request #6662 from lukebakken/fixes/lrb/gh-4503-hyper-v-admin-privs
...
Fix for 4503
2015-12-14 15:56:55 -08:00
Mitchell Hashimoto
739d29e8fa
Merge pull request #6612 from reedloden/virtualbox-checksum
...
Add checksum validation for the VirtualBox installs on Windows and OS X
2015-12-14 15:39:46 -08:00
Mitchell Hashimoto
d47c7c74d7
Merge pull request #6659 from swiftstack/change_ipv6_adapter_address
...
Use <prefix>::1 as the IPv6 adapter IP.
2015-12-14 15:37:28 -08:00
Luke Bakken
57187c9f88
Add method to detect if a Windows user is a member of the "Hyper-V Administrators" group.
...
Modify Hyper-V provider to require a user to either be an Administrator or a member of "Hyper-V Administrators"
2015-12-10 07:04:39 -08:00
Hasyimi Bahrudin
77031a79b7
pushes/local-exec: add args config
2015-12-10 17:00:35 +08:00
Timur Alperovich
a56e118b16
Use <prefix>::1 as the IPv6 adapter IP.
...
Set the IPv6 adapter IP to be <prefix>::1. Otherwise, guest to host
communication over IPv6 is not routed correctly. This means that
consumers should not specify <prefix>::1 IP addresses to VirtualBox,
which should be a reasonable restriction.
Fixes #6658
2015-12-09 17:22:02 -08:00
Gilles Cornu
25ff027b08
provisioners/ansible_local: use the inventory directory
...
Like in the (remote) `ansible` provisioner, it is preferred to pass the
directory that contains the generated inventory file. This way, advanced
inventory usages can be achieved by adding more inventory files into the
same directory.
Related to #2103 and #6500
[ci skip]
2015-12-08 23:02:58 +01:00
Seth Vargo
aca1e041f6
Rename network to interface
2015-12-08 11:05:39 -05:00
Seth Vargo
9ba8cfcd50
Separate logic into other functions for readability
2015-12-08 10:52:54 -05:00
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
Rickard von Essen
9f3ebef810
Support ansible install on RedHat derivates and Fedora.
...
Fixes #6636
2015-12-07 15:44:20 +01:00
Michael Kuzmin
546649fb9e
Fix `uninitialized constant` error in `vagrant powershell` command
2015-12-05 17:24:58 +03: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
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
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
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
Mitchell Hashimoto
350da6e1d5
commands/ssh_config: output machine readable output
2015-12-02 17:53:08 -08: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
dd4ae1a51c
Parse and insert group variables into the generated inventory.
2015-12-01 18:56:28 +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
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
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
eaf918ec35
Merge branch 'gildegoma/5086-ansible-winrm' into master
2015-11-25 22:46:08 +01: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
Mitchell Hashimoto
7a1d17042d
install VB 5.0.10
2015-11-23 22:54:31 -08:00
Seth Vargo
bd48d24825
Respect proxy envvars for login command
2015-11-23 20:19:45 -05:00
Seth Vargo
930e166b47
Add :env option to shell provisioner
2015-11-23 19:29:35 -05:00
Seth Vargo
8c3f833e8e
Use the new presence helpers in the Chef provisioner
2015-11-23 18:33:47 -05:00
Seth Vargo
844cca9013
Skip nil IP addresses in ipv6 fix
...
Fixes GH-6558
2015-11-23 17:20:20 -05:00
Seth Vargo
de1bd061f1
Merge pull request #6582 from LalatenduMohanty/fedora-guest-detection
...
Making the Fedora guest detection search string generic
2015-11-23 17:04:03 -05:00
Seth Vargo
7b89ecc230
Add public_address cap for VirtualBox
...
Fixes GH-5978
2015-11-23 16:23:22 -05:00
Lalatendu Mohanty
7bb57c6f83
Making the Fedora guest detection search string generic
...
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
2015-11-24 01:36:17 +05:30
Mitchell Hashimoto
24799575c3
providers/hyperv: fix error
2015-11-23 12:06:11 -08:00
Mitchell Hashimoto
b23b48a614
providers/hyper-v: support more than one NIC [GH-4346]
2015-11-23 12:05:37 -08:00
Mitchell Hashimoto
55e872eda4
Merge pull request #6118 from mjaverto/patch-1
...
Fix Win 10 Enterprise Vagrant Error
2015-11-23 11:45:23 -08:00
Mitchell Hashimoto
601f7d41e5
synced_folders/smb: use cred files [GH-4230]
2015-11-23 11:11:50 -08:00
Mitchell Hashimoto
dbf419abad
providers/virtualbox: ignore unknown status interfaces [GH-6061]
2015-11-23 10:15:32 -08:00
Shawn Neal
c1acbec55e
Merge pull request #6581 from mitchellh/gildegoma/fix-winrm-ssl-portforwarding-overrides
...
"Split" the handling of WinRM port forwarding rules (plaintext, ssl)
2015-11-23 10:13:23 -08:00
Gilles Cornu
68d9708ca7
kernel/v2: fix a bug in WinRM port forwarding
...
Without this change a custom "winrm-ssl" port forwarding rule
could be wrongly shadowed in absence of a "winrm" custom rule.
2015-11-23 18:51:12 +01:00
Mikhail Zholobov
4e4029a076
Fix permissions on "~/.ssh/authorized_keys"
2015-11-22 19:24:33 +02:00
Gilles Cornu
ee55379736
provisioner/ansible: support winrm connection mode
...
This is a first cut to resolve #5086 .
2015-11-21 05:34:50 +01:00
Gilles Cornu
2789ce61e0
Merge branch 'gildegoma/2718-ansible-galaxy' into master
2015-11-21 05:21:41 +01:00
Mitchell Hashimoto
3c2fab9d0d
providers/virtualbox: more robust lookup for VBoxManage on Win
2015-11-20 15:56:14 -08:00
Mitchell Hashimoto
45a8a5907f
synced_folders/rsync: SSH control for faster rsync
2015-11-20 10:48:59 -08:00
Mitchell Hashimoto
32f6accb25
commands/box: don't halt on metadata download failure [GH-6453]
2015-11-19 18:50:50 -08:00
Seth Vargo
1b08cfcd09
Do not fail if uninstalling lxc/docker-io fails
2015-11-19 18:37:57 -08:00
Seth Vargo
bad4c2103d
Only install Docker if it is not already installed
2015-11-19 18:37:57 -08:00
Seth Vargo
f5a0c3ed5b
Deprecate docker.version
2015-11-19 18:37:57 -08:00
Jason Casden
7076d192c9
Quiet package commands
2015-11-19 18:37:57 -08:00
Jason Casden
d2983d4fe4
Use official Docker installer and upgrade for :latest installs
2015-11-19 18:37:57 -08:00
Mitchell Hashimoto
f5cadc93fa
guests/linux: POSIX sed [GH-6104]
2015-11-19 18:35:18 -08:00
Seth Vargo
40336016e1
Use the correct option for sending the environment
2015-11-19 18:08:47 -08:00
Seth Vargo
20940d1a2f
Use subprocess as a poor-man's exec for local-exec
...
Fixes GH-5307
2015-11-19 17:03:39 -08:00
Seth Vargo
02a351841e
Use an array instead of map
2015-11-19 16:32:43 -08:00
Eli Skeggs
2b9173e15a
Support environment variable forwarding, fixes #4131
...
Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>
2015-11-19 16:25:54 -08:00
Seth Vargo
ec85548bd6
Support arrays for data_bags_path
...
Fixes GH-5988
2015-11-19 16:17:42 -08:00
Mitchell Hashimoto
1ccd91aada
Merge pull request #4473 from rtkrruvinskiy/https_metadata
...
Add HTTPS download options to `box update` and `box outdated`
2015-11-19 16:16:48 -08:00
Seth Vargo
1fd9aec493
Only append folder suffixes if we are sharing host folder paths
...
Fixes GH-6472
2015-11-19 16:08:32 -08:00
Seth Vargo
76f3dce5db
Remove deprecated options
2015-11-19 15:52:27 -08:00
Seth Vargo
df207d2637
Require nodes_path for Chef Zero provisioning
...
Fixes GH-6110
2015-11-19 15:52:26 -08:00
Gilles Cornu
2384032446
provisioners/ansible: freeze a constant value
...
Kudos @sethvargo :)
[skip ci]
2015-11-20 00:21:41 +01:00
Gilles Cornu
6dbc74d814
provisioners/ansible: fix code indentation
2015-11-20 00:13:01 +01:00
Gilles Cornu
c9fe02cea5
provisioners/ansible_local: remove repetitions
2015-11-20 00:11:44 +01:00
Gilles Cornu
74eb3109cf
provisioners/ansible_local: fix a lame bug
...
I missed to rename the refactored exceptions as AnsibleCommandFailed in
the guest-based parts. The lack of unit tests for these parts hurts...
on my agenda, I swear!
See c1f3d114f5
2015-11-20 00:07:34 +01:00
Seth Vargo
c30467a6f9
Allow Chef to install on Windows
2015-11-19 15:01:09 -08:00
Seth Vargo
a90e6cfe4c
Use the new Chef installation channel and options
...
This deprecates "prerelease", which will be removed in the next release.
2015-11-19 14:57:01 -08:00
Seth Vargo
43ef927628
Latest will have the formatter option
2015-11-19 14:56:18 -08:00
Seth Vargo
2dbd24129f
Remove deprecated method
2015-11-19 14:56:03 -08:00
Seth Vargo
609ff9f7b2
Allow provisioner cleanup task to exit on failure
2015-11-19 14:55:46 -08:00
Gilles Cornu
5659c3f2a0
provisioners/ansible: apply @sethvargo comments
...
Follow-up of code review of PR #6529
2015-11-19 23:42:01 +01:00
Seth Vargo
b8f200a4c1
Only force the formatter if we are on Chef 11 or higher
...
Fixes GH-6278
2015-11-19 11:48:04 -08:00
Seth Vargo
c0a58fe5bd
Merge pull request #6555 from mitchellh/sethvargo/chef_delete
...
Automatically generate a node_name for Chef
2015-11-19 11:41:31 -08:00
Mitchell Hashimoto
4988298b0b
guests/arch: configure networks should enable device [GH-5737]
2015-11-19 11:39:04 -08:00
Seth Vargo
9559fc549c
Automatically generate a node_name for Chef
...
This is required because the Chef Server almost always needs a node name to
interact. This will default to the hostname, but that's always going to be
`vagrant.vm`, which will collide easily.
This generates a random hostname with `vagrant-` as the prefix and stores the
result in the machine's data directory.
2015-11-19 11:38:33 -08:00
Mitchell Hashimoto
97021ceedd
Merge pull request #6554 from mitchellh/b-heroku-branch
...
push/heroku: use correct current branch [GH-6123]
2015-11-19 11:22:06 -08:00
Mitchell Hashimoto
270c0726df
Merge pull request #6552 from mitchellh/f-cache-vbox
...
providers/virtualbox: cache VirtualBox version [GH-6468]
2015-11-19 11:20:09 -08:00
Mitchell Hashimoto
a75b14b769
providers/virtualbox: wrap version set in mutex
2015-11-19 11:19:56 -08:00
Mitchell Hashimoto
f5273c5409
push/heroku: use correct current branch [GH-6123]
2015-11-19 11:17:48 -08:00
Seth Vargo
825bd6d5ef
Run provisioner cleanup tasks before destroying the VM
2015-11-19 11:14:31 -08:00
Mitchell Hashimoto
fb511a43d9
providers/virtualbox: store version on instance as well
2015-11-19 11:02:00 -08:00
Mitchell Hashimoto
d56c8fda18
providers/virtualbox: cache VirtualBox version [GH-6468]
2015-11-19 11:00:02 -08:00
Seth Miller
c8a18fda26
Fixing the Salt bootstrap script for Windows
...
The URL for the download has changed as per issue #6274
2015-11-18 21:55:32 -06:00
Seth Vargo
f999218c53
Perform Chef delete operations on the guest instead of the host
2015-11-18 18:28:42 -08:00
Mitchell Hashimoto
eb5a6fc7c3
communicators/ssh: more nil guards [GH-6225]
2015-11-18 17:32:40 -08:00