Commit Graph

12534 Commits

Author SHA1 Message Date
Brian Cain 5cc06bde64
Merge pull request #11341 from hjung4/spell
Fix spelling errors
2020-01-27 15:29:24 -08:00
comet fa43afb57b
update 2020-01-27 17:04:23 -06:00
Chris Roberts b231abe114 Update version and changelog for new development 2020-01-27 12:31:15 -08:00
Chris Roberts ac268e2638 Release v2.2.7 2020-01-27 12:29:18 -08:00
Jeff Bonhag db316a396f
Lock closed issues after 30 days (#11332)
This commit adds Hashibot support to lock closed issues after 30 days.
It also will automatically remove the `waiting-reply` tag if a user
replies to an issue with that tag.
2020-01-27 09:58:50 -05:00
Jeff Bonhag a1abc177bd
Merge pull request #11328 from Lin-Buo-Ren/patch-1
Fix missing quoting for `VagrantFile`
2020-01-21 09:27:16 -05:00
林博仁(Buo-ren Lin) 8ac6403bcc
Fix missing quoting for `VagrantFile`
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
2020-01-21 16:56:14 +08:00
Chris Roberts 02c157e427 Fix environment variable value 2020-01-16 14:46:50 -08:00
Chris Roberts d8d24f4d6e
Merge pull request #11320 from chrisroberts/e-ci-updates
Add CI scripts and configuration
2020-01-16 14:24:50 -08:00
Chris Roberts ee302f3a9b Add CI scripts and configuration
Provides scripts for building, storing, and releasing Vagrant
via builders. Includes updates for testing and removal of
deprecated CI configuration.
2020-01-15 17:16:54 -08:00
Brian Cain 054f4def5c
Merge pull request #11319 from briancain/fix/typo-on-website-docs
Fix typo in CLI upload docs
2020-01-13 12:56:14 -08:00
Brian Cain 0077d7955d
Fix typo in CLI upload docs 2020-01-13 11:23:06 -08:00
Brian Cain f886184011
Merge pull request #11314 from imechemi/patch-1
Minor doc update
2020-01-13 09:32:50 -08:00
Tenzin Chemi e864605879
Update public_network.html.md 2020-01-11 23:21:30 +05:30
Brian Cain 7f09202571
Merge pull request #11300 from briancain/bug/check-respond-to-for-name-option
Check name config option with respond_to?
2020-01-09 14:59:41 -08:00
Brian Cain 2ae6b37c9a
Merge pull request #11304 from nepella/fix-typo
Ansible docs: Fix misplaced brace in example.
2020-01-08 14:21:30 -08:00
Renee Margaret McConahy 1c6ac924c5
Ansible docs: Fix misplaced brace in example. 2020-01-08 16:42:42 -05:00
Brian Cain 6855dd8c74
Check name config option with respond_to?
Prior to this commit, the check used to look for the config option
`name` in a provisioner config would accidentally create a "DummyConfig"
based on how vagrant handles missing config options. This commit fixes
that by instead using the `respond_to?` method to check for the
existance of the config option name.
2020-01-07 11:10:02 -08:00
Brian Cain dd5d73e8a9
Update CHANGELOG 2020-01-07 09:19:30 -08:00
Brian Cain 3d1f1d2422
Merge pull request #11295 from briancain/fixup/provision-with-name-shell
Fixes #11287: Set top level provisioner name if set in provisioner config
2020-01-07 09:18:19 -08:00
Brian Cain ee8b38d47a
Set provisioner names to symbol
Because Vagrant is handling provisioner names to be symbols more
uniformly now, update the mocked tests to reflect this change. Otherwise
these provisioners will be ignored and not run.
2020-01-06 13:25:31 -08:00
Brian Cain b4c302a74c
Set shell provisioner name in provision_test 2020-01-06 12:48:33 -08:00
Brian Cain 711270b90a
Fixes #11287: Set top level provisioner name if set in provisioner
config

Prior to this commit, if a user had configured a provisioner that had a
config with a `name` option, it would not properly set the top level
provisioner classes name config option which would lead to some
understanibly confusing results when trying to `--provision-with`. This
commit fixes that by checking to see if the top level name isn't set,
look to see if that provisioners config defines a name, and use that
instead.
2020-01-06 11:10:28 -08:00
Jeff Bonhag 58687e6c44
Update CHANGELOG 2019-12-20 13:14:46 -05:00
Jeff Bonhag 7fb7dd8608
Enable WinSSH shell for `vagrant ssh -c` (#11258)
This commit changes the behavior of the builtin SSHRun action to use a Windows
shell if the WinSSH communicator is active.  This allows for running one-off SSH
commands with Windows Command Prompt or PowerShell.  By default, this will not
allocate a TTY for any SSH commands.

Example usage:

```
vagrant ssh -c 'dir "c:\program files"'
```

Updates docs to reflect a change made in
a55a53e6a4.
2019-12-20 13:10:11 -05:00
Jeff Bonhag f0b8c0737f
Fixes #11269: enable_checkpoints default is true (#11272)
Update docs to reflect change made in
8aa74a03a0.
2019-12-20 12:59:51 -05:00
Jeff Bonhag 88d2077cb8
Update CHANGELOG 2019-12-19 14:49:30 -05:00
Jeff Bonhag ade076cabb
Fixes #11236: Windows port detection (#11244)
This reverts commit 81553263ab.

This fixes a regression with Windows port detection which led to port
collisions not being fixed on `vagrant up`.

PR #8517 changed `IsPortOpen#is_port_open?` to rescue
Errno::EADDRNOTAVAIL, but when we merged it into master, there was code
in `HandleForwardedPortCollisions#port_check` that depended on that
error bubbling up.
2019-12-19 14:46:13 -05:00
Chris Roberts 85065c3746 Update CHANGELOG 2019-12-18 16:50:24 -08:00
Chris Roberts 923ecc0943
Merge pull request #11267 from chrisroberts/e-catalina-synced-folders
Update synced folder setup in darwin cap for vmware
2019-12-18 16:48:05 -08:00
Chris Roberts 25659a6f6b Support properly setting up synced folders on Catalina
Since the root file system is marked as read-only, attempting to
link the shared directory to `/vagrant` will fail. If the guest
path is on the root file system and APFS is used, create the
link as a firmlink instead.
2019-12-18 13:11:30 -08:00
Chris Roberts 80c05460ab Call hooks before and after each action if they are available 2019-12-18 13:11:30 -08:00
Brian Cain 8c137e2bba
Update CHANGELOG 2019-12-18 08:24:22 -08:00
Brian Cain 4e58dfed2b
Merge pull request #11265 from briancain/LOCAL-ANSIBLE-BUG-PLUS-RSPEC
Fixup: ansible_local: Add `cap` bug fixes and related RSpec coverage
2019-12-18 08:20:59 -08:00
Brian Cain 61ee42976b
Merge pull request #11262 from briancain/return-if-no-disk-config
Return if no disk config
2019-12-17 13:55:08 -08:00
Brian Cain 7d667c9dea
Update ansible install tests 2019-12-17 13:34:52 -08:00
Jose Luis Duran 582f46231b
FreeBSD: Update Ansible's package name
The Ansible package in FreeBSD is now `py36-ansible`.

If `pkg` itself needs updating, passing only one 'yes' is not enough to
confirm the installation of the package.  Use the `-y` option,
specifically made for this purpose.  Also add `-q` to force a quiet
output, inline with other guests.

References:

- [`pkg-install(8)`](https://www.freebsd.org/cgi/man.cgi?query=pkg-install&sektion=8)
- freebsd/freebsd-ports@cbf5576945
2019-12-17 12:53:24 -08:00
Brian Cain 0c0352201d
Update ansible_install_test.rb
Remove extra whitespace
2019-12-17 12:51:39 -08:00
Gilles Cornu bcdda99dfa
ansible_local: Fix pip setup on Arch Linux guest
Add 'python' package requirement. Tested against `archlinux/archlinux`
box, at version "2019.11.24".
2019-12-17 12:51:39 -08:00
Gilles Cornu 069122f42c
[minor] Align Ruby formatting across ansible_local files
GH-11148: Remove unwanted formatting changes proposed in 920361150f.
2019-12-17 12:51:39 -08:00
Gilles Cornu a2b87eace4
Fix broken 'ansible_install' methods signature
- By the way: Trim the generate 'pip install' command in Ansible::Cap::Guest::Pip::pip_install
- GH-11048: Fix same regression for FreeBSD and SuSE guests.
- GH-6633:  Add RSpec examples to cover ansible_local 'cap' code.

Note: RedHat/Fedora guests are not covered yet by unit tests.
2019-12-17 12:51:39 -08:00
Gilles Cornu 113a0a7aaa
[minor] Use the correct "pip_install_cmd" name
There is no such thing like 'pip_install_command' option in the
Ansible Local provision, so let's avoid any misunderstanding ;-)
2019-12-17 12:51:39 -08:00
Stefan Koenen 04aeff4cc6
FIX #11048, add parameter `pip_install_cmd` to `ansible_install.rb` for arch guest.
ADD: Handling of `pip_install_cmd` in `ansible_install.rb` for arch guest.
2019-12-17 12:51:39 -08:00
Brian Cain 11c667a81d
Update CHANGELOG 2019-12-17 11:31:32 -08:00
Brian Cain aecd354c57
Merge pull request #11191 from samdbmg/fix-10914-ansible_local-hang
Don't prompt for input when installing Ansible
2019-12-17 11:30:48 -08:00
Brian Cain 9f2261a6fc
Add test for builtin disk action 2019-12-17 10:56:48 -08:00
Brian Cain de61b307aa
Only run disk action if disk config present 2019-12-17 10:45:33 -08:00
Jeff Bonhag 320b166c31
Update CHANGELOG 2019-12-17 12:43:53 -05:00
Jeff Bonhag d7a5f74897
Fixes #11128: Error if machine folder inaccessible (#11239)
This commit catches the Errno::EPERM raised by the operating system if
the machine folder is inaccessible and displays it as a more friendly
error message.

This can be an issue on macOS Catalina if virtual machine files are kept
in a special directory (Documents/Downloads/Desktop) that Vagrant's
embedded Ruby is not allowed to access.
2019-12-17 12:41:12 -05:00
Jeff Bonhag 4059758e00
Update CHANGELOG 2019-12-17 12:36:38 -05:00