Merge pull request #13085 from soapy1/misc-docs-updates
Misc docs updates
This commit is contained in:
commit
8cc21d048d
@ -54,6 +54,13 @@ Vagrant.configure("2") do |config|
|
||||
# argument is a set of non-required options.
|
||||
# config.vm.synced_folder "../data", "/vagrant_data"
|
||||
|
||||
# Disable the default share of the current code directory. Doing this
|
||||
# provides improved isolation between the vagrant box and your host
|
||||
# by making sure your Vagrantfile isn't accessable to the vagrant box.
|
||||
# If you use this you may want to enable additional shared subfolders as
|
||||
# shown above.
|
||||
# config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
|
||||
# Provider-specific configuration so you can fine-tune various
|
||||
# backing providers for Vagrant. These expose provider-specific options.
|
||||
# Example for VirtualBox:
|
||||
|
||||
@ -116,10 +116,11 @@ users, passwords, private keys, etc.).
|
||||
By default, Vagrant expects a "vagrant" user to SSH into the machine as.
|
||||
This user should be setup with the
|
||||
[insecure keypair](https://github.com/hashicorp/vagrant/tree/main/keys)
|
||||
that Vagrant uses as a default to attempt to SSH. Also, even though
|
||||
Vagrant uses key-based authentication by default, it is a general convention
|
||||
to set the password for the "vagrant" user to "vagrant". This lets people
|
||||
login as that user manually if they need to.
|
||||
that Vagrant uses as a default to attempt to SSH. It should belong to a
|
||||
group named "vagrant". Also, even though Vagrant uses key-based
|
||||
authentication by default, it is a general convention to set the
|
||||
password for the "vagrant" user to "vagrant". This lets people login as
|
||||
that user manually if they need to.
|
||||
|
||||
To configure SSH access with the insecure keypair, place the public
|
||||
key into the `~/.ssh/authorized_keys` file for the "vagrant" user. Note
|
||||
|
||||
@ -20,7 +20,9 @@ and if the provider supports it.
|
||||
- `--base NAME` - Instead of packaging a VirtualBox machine that Vagrant
|
||||
manages, this will package a VirtualBox machine that VirtualBox manages.
|
||||
`NAME` should be the name or UUID of the machine from the VirtualBox GUI.
|
||||
Currently this option is only available for VirtualBox.
|
||||
Currently this option is only available for VirtualBox.
|
||||
**In a multi-machine environment, the UUID is required.** This info can be
|
||||
gathered in two different ways `ls -l ~/VirtualBox\ VMs` or `vboxmanage list vms`.
|
||||
|
||||
- `--output NAME` - The resulting package will be saved as `NAME`. By default,
|
||||
it will be saved as `package.box`.
|
||||
|
||||
@ -40,7 +40,7 @@ end
|
||||
This will automatically assign an IP address from the reserved address space.
|
||||
The IP address can be determined by using `vagrant ssh` to SSH into the
|
||||
machine and using the appropriate command line tool to find the IP,
|
||||
such as `ifconfig`.
|
||||
such as `ifconfig` or `ip addr show`.
|
||||
|
||||
## Static IP
|
||||
|
||||
|
||||
@ -27,10 +27,11 @@ end
|
||||
```
|
||||
|
||||
If you want to upload a folder to your guest system, it can be accomplished by
|
||||
using a file provisioner seen below. When copied, the resulting folder on the guest will
|
||||
replace `folder` as `newfolder` and place its on the guest machine. Note that if
|
||||
you'd like the same folder name on your guest machine, make sure that the destination
|
||||
path has the same name as the folder on your host.
|
||||
using a file provisioner seen below. This will copy the your local `folder`
|
||||
(specified as the `source`) to the the `newfolder` on the guest machine
|
||||
(specified as the `destination`). Note that if you'd like the same folder name
|
||||
on your guest machine, make sure that the destination path has the same name as
|
||||
the folder on your host.
|
||||
|
||||
```ruby
|
||||
Vagrant.configure("2") do |config|
|
||||
|
||||
@ -76,7 +76,9 @@ the name of the synced folder plugin.
|
||||
to pass to the downloader. For example, a path to a key that the downloader
|
||||
should use could be specified as `{key: "<path/to/key>"}`. The keys should
|
||||
be options supported by `curl` using the unshortened form of the flag. For
|
||||
example, use `append` instead of `a`.
|
||||
example, use `append` instead of `a`. To pass a curl option that does not
|
||||
accept a value, include the option in the map with the value `true`. For
|
||||
example specify the `--fail` flag as `{fail: true}`.
|
||||
|
||||
- `config.vm.box_download_insecure` (boolean) - If true, then SSL certificates
|
||||
from the server will not be verified. By default, if the URL is an HTTPS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user