577 Commits

Author SHA1 Message Date
Jeff Bonhag
df7c11a3a7 Fix issues with Windows SSH provisioner
Windows commands that run over SSH are wrapped in a script that writes a
special marker to the two output streams (stdout and stderr).  This
allows Vagrant to consume the output streams.

Unfortunately, this leads to a sort of chicken-and-egg problem where no
commands can be run before a wrapper script exists. For example, you
can't make a destination directory to upload the wrapper script without
first creating a wrapper script to make the directory. :)

This commit changes the behavior of the WinSSH communicator to assume
that the destination directory already exists for provisioning scripts.

It also moves the default `upload_path` from the shell provisioner
config so we can have OS-specific defaults.

Finally, it introduces a Windows-specific #upload method which will
properly use a Windows path separator on a non-Windows host.
2020-03-04 15:08:03 -08:00
Mike
2d7b959136
Missed comma in configuration file
Vagrant throws this error
syntax error, unexpected tIDENTIFIER, expecting keyword_endate_network, type: "dhcp" name: "hap-network"
2020-03-03 21:24:06 +02:00
Brian Cain
3d2eafc414
Merge pull request #11349 from briancain/feature/virtualbox-disk-mgmt
[FEATURE] Disk management with the VirtualBox provider
2020-02-14 08:33:51 -08:00
Brian Cain
dafb60ad4f
Update experimental feature flag for disk 2020-02-12 15:38:34 -08:00
Meitar M
1548bcf80e
Detail other valid values for config.ssh.verify_host_key.
This commit adds more detail to the documentation for `config.ssh.verify_host_key`. Currently, the documentation only mentions the default value but does not provide any hints as to what valid values exist, or where this value is being passed to. As I'm sure you know, this is ultimately passed to the `net-ssh` library. It would have saved me some time doing searches to have read this fact in the Vagrant docs directly.

Thanks for considering this expansion.
2020-02-10 22:22:29 -05:00
Brian Cain
567351a2af
Disk doc updates 2020-02-10 12:58:11 -08:00
Brian Cain
4394962f56
Include default disk_ext option in docs 2020-02-10 12:58:11 -08:00
Brian Cain
0aa8a517c4
Add note about resizing VMDK disks 2020-02-10 12:58:11 -08:00
Brian Cain
bb8f04f18a
Add docs note about disk_meta file 2020-02-10 12:58:11 -08:00
Brian Cain
fe6be8c886
Disk doc updates 2020-02-10 12:58:11 -08:00
Brian Cain
a15016931a
Add more docs for disk feature 2020-02-10 12:58:11 -08:00
Brian Cain
90461014db
Website updates for disk management feature 2020-02-10 12:58:11 -08:00
Brian Cain
edd9ec89cb
Begin to add docs for the virtualbox disk feature 2020-02-10 12:58:11 -08:00
Brian Cain
54f17929b5
Add note about vbox gui for troubleshooting 2020-02-10 12:58:11 -08:00
Brian Cain
a9e678327b
Update docs for disk name 2020-02-10 12:58:11 -08:00
Brian Cain
b41147237e
Begin to add docs for disk configuration with virtualbox 2020-02-10 12:58:11 -08:00
Brian Cain
8cd04db602
Update configuration with disk_ext option 2020-02-10 12:58:11 -08:00
Brian Cain
2150c3f4b3
Include important Ansible docs in side navbar
This commit adds some extra nav links for important Ansible
documentation that was burried in the other doc pages.
2020-01-29 11:44:26 -08:00
comet
fa43afb57b
update 2020-01-27 17:04:23 -06: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
Brian Cain
0077d7955d
Fix typo in CLI upload docs 2020-01-13 11:23:06 -08:00
Tenzin Chemi
e864605879
Update public_network.html.md 2020-01-11 23:21:30 +05:30
Renee Margaret McConahy
1c6ac924c5
Ansible docs: Fix misplaced brace in example. 2020-01-08 16:42:42 -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
a55a53e6a46438d5093487f83248f01ddece4534.
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
8aa74a03a09bfab203d1866fc5f3e4476bb1657f.
2019-12-20 12:59:51 -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
df9df5c250
Wrap all environment variables headers with <code> (#11261)
This commit adds the <code> backticks to a few headers that didn't have
them.
2019-12-17 11:43:30 -05:00
Brian Cain
0b71991902
Merge pull request #11231 from briancain/add-force-option-for-box-outdated
Fixes #11228: Allow to force check for box updates
2019-12-17 08:42:51 -08:00
Brian Cain
fb4e6985e1
Fixes #11249: Add VirtualBox provider support for version 6.1.x
This commit adds support for VirtualBox version 6.1.x. It simply
inherits from the base 6.0.x provider class.
2019-12-11 13:25:11 -08:00
Brian Cain
bcf4d5a210
Fixes #11228: Allow to force check for box updates
Prior to this commit, if a user had recently checked for updates, there
was no way to force Vagrant to re-check without manually deleting a
state file in the local `.vagrant` data dir. This commit fixes that by
giving users the ability to force check for updates for a given box with
a flag to the `vagrant box outdated` command.
2019-12-03 11:42:55 -08:00
Brian Cain
3e177d380f
Update disk docs in website for experimental feature banner 2019-11-22 14:40:23 -08:00
Brian Cain
8031ebe9d1
Add some todos for the disk website docs 2019-11-22 14:40:23 -08:00
Brian Cain
17f8fbe65e
Fix how double underscore options are shown in docs 2019-11-22 14:40:23 -08:00
Brian Cain
63b35ad909
Begin to add short guide for plugin authors and the disk config object 2019-11-22 14:40:23 -08:00
Brian Cain
b0f4d43663
Add docs around various ways to define provider specific options for disk configs 2019-11-22 14:40:23 -08:00
Brian Cain
f51805e910
Add list of examples to write up for disk feature 2019-11-22 14:40:23 -08:00
Brian Cain
9190f4b2e6
Fix nav sidebar view for disk page 2019-11-22 14:40:23 -08:00
Brian Cain
97db5d5da3
Add todo for disk management overview 2019-11-22 14:40:23 -08:00
Brian Cain
1a02c52852
Add beginning of disk management docs for vagrant website 2019-11-22 14:40:23 -08:00
Brian Cain
601118059c
Fix typo for vagrant 2019-11-22 10:03:25 -08:00
Brian Cain
3ee7b3801f
Add more details for removing user data when uninstalling Vagrant 2019-11-21 15:24:09 -08:00
Brian Cain
a8a9f54fab
Update docs to use quotes around terms 2019-11-15 13:18:03 -08:00
Brian Cain
28812fb880
Highlight here document terms instead of indent 2019-11-15 10:27:59 -08:00
Brian Cain
2adda6861e
Fixes #11196: Add more examples for ruby heredoc shell scripts
This commit adds an additional example for how to preserve quotes in a
script that uses heredocs.
2019-11-15 09:26:39 -08:00
Jeff Bonhag
0e68f02dc9
Fixes #11163: Get latest version for provider (#11192)
This commit changes the behavior of `vagrant box outdated --global` so
it gets the latest version for the current machine's provider, rather
than the latest version for any provider.
2019-11-13 17:33:15 -05:00
Brian Cain
72496d5f5d
Fixes #8058: Improve wording for config.ssh.insert_key docs 2019-11-06 16:55:04 -08:00
Michael C
670cadae9f docs: Add clarification about ansible.limit in static inventory usecase 2019-10-11 08:57:20 +02:00
Chris Roberts
67270a2d64
Merge pull request #11084 from chrisroberts/doc-update
Update docs page for Vagrant Cloud catalog
2019-10-10 10:02:23 -07:00
Chris Roberts
7fb81bcea1 Add support for other checksum types 2019-10-08 11:23:48 -07:00
Brian Cain
07a5190676
Merge pull request #10548 from mykaul/patch-1
ansible_ssh_host in the example is deprecated
2019-10-02 14:54:17 -07:00