Commit Graph

7911 Commits

Author SHA1 Message Date
Seth Vargo ff95fc5c1e Only append access_token the first time
This fixes GH-6395 by only appending the access_token once. It also fixes a
bug that was never reported. If a user supplied an access_token for a box URL,
Vagrant would silently overwrite it.

After this commit, Vagrant only appends an access_token to the URL if no
value exists at the key.
2015-11-18 10:44:35 -08:00
Mitchell Hashimoto 8bbf6f56f4 Merge pull request #4400 from mwrock/ps-cmd
Add a ps command to vagrant that drops the user into a remote powershell shell
2015-11-18 10:41:36 -08:00
Jack Pearkes f24250ae9a Merge pull request #6527 from mitchellh/debian-logo
website: fix debian logo
2015-11-17 11:39:52 -08:00
Jack Pearkes cd08ab93a3 website: fix debian logo 2015-11-17 10:51:04 -08:00
Seth Vargo 988787dec6 Merge pull request #6525 from ReadmeCritic/master
Update README URLs based on HTTP redirects
2015-11-16 12:20:09 -05:00
ReadmeCritic 8c070df2b5 Update README URLs based on HTTP redirects 2015-11-16 09:15:58 -08:00
Gilles Cornu 75cc6ef8d3 provisioners/ansible_local: fix a str-to-sym bug
Without this change `ansible.version = "latest"` is not considered as
equivalent to `ansible.version = :latest`.
2015-11-12 09:14:35 +01:00
Gilles Cornu c6ef73a6fa Merge 'gildegoma/2103-ansible-local-v2'
Resolve conflict in CHANGELOG.md
2015-11-10 23:05:29 +01:00
Seth Vargo cfa0658cef Update CHANGELOG 2015-11-09 09:40:49 +00:00
Seth Vargo a8afb40173 Allow users to remove all versions of a box with --all 2015-11-09 09:37:07 +00:00
Seth Vargo a115928d98 Update output message to include --all 2015-11-09 09:36:27 +00:00
Christian Berendt 3f4a372d57 Remove all available versions of a box
This patch introduces a new parameter --all for the remove
command of the box plugin. Setting this parameter will remove
all available versions of a specific box.

Example usage:

```
$ vagrant box list
ubuntu/trusty64 (virtualbox, 20150427.0.0)
ubuntu/trusty64 (virtualbox, 20150430.0.0)
ubuntu/trusty64 (virtualbox, 20150506.0.0)
```

```
$ vagrant box remove ubuntu/trusty64
You requested to remove the box 'ubuntu/trusty64' with provider
'virtualbox'. This box has multiple versions. You must
explicitly specify which version you want to remove with
the `--box-version` flag. The available versions for this
box are:

 * 20150427.0.0
 * 20150430.0.0
 * 20150506.0.0
```

With the --all parameter it is possible to remove all versions at once.

```
$ vagrant box remove --all ubuntu/trusty64
Removing box 'ubuntu/trusty64' (v20150506.0.0) with provider 'virtualbox'...
Removing box 'ubuntu/trusty64' (v20150430.0.0) with provider 'virtualbox'...
Removing box 'ubuntu/trusty64' (v20150427.0.0) with provider 'virtualbox'...
```
2015-11-09 09:32:18 +00:00
Gilles Cornu 3e1e66a76b Update CHANGELOG.md
Close #2103
Close #5292
2015-11-08 14:15:51 +01:00
Gilles Cornu a3c077cbe0 Merge branch 'gildegoma/ansible-force-ssh-user'
Resolved conflicts in
  plugins/provisioners/ansible/config.rb
  plugins/provisioners/ansible/provisioner.rb
  test/unit/plugins/provisioners/ansible/provisioner_test.rb
  website/docs/source/v2/provisioning/ansible.html.md

ref #6348
2015-11-08 14:01:23 +01:00
Gilles Cornu 9bfdaf7e75 provisioners/ansible: introduce ansible_local
With this change, the existing host-based Ansible provisioner is
refactored to share a maximum of code with this new guest-based Ansible
provisioner.

At this stage of development, the existing unit tests are intentionally
modified as little as possible, to keep safe the existing funtionalities.

Other issues resolved by this changeset:
 - Display a warning when running from a Windows host [GH-5292]
 - Do not run `ansible-playbook` in verbose mode when the `verbose` option
   is set to an empty string.
2015-11-08 10:42:48 +01:00
Seth Vargo 4df01da457 Merge pull request #6166 from cbednarski/docs-checkpoint
Change docs for checkpoint environment variable
2015-11-06 19:08:26 -05:00
Mitchell Hashimoto 20e3bdc1d7 Merge pull request #6490 from mitchellh/f-provider-install
Add provider install to `vagrant up`
2015-11-05 14:07:30 -08:00
Mitchell Hashimoto c017340f69 website: update docs for --install-provider flag 2015-11-05 13:59:08 -08:00
Mitchell Hashimoto baea923e9c commands/up: automatically install providers 2015-11-05 13:58:15 -08:00
Mitchell Hashimoto 69d9bc0fe8 Environment can_install_provider and install_provider 2015-11-05 11:50:10 -08:00
Mitchell Hashimoto f45c5c4536 Merge pull request #6485 from mitchellh/f-provider-cmd
command/provider: non-primary command to check and install providers
2015-11-04 19:38:47 -08:00
Mitchell Hashimoto abb1030f10 hosts/windows: install VirtualBox 2015-11-04 19:37:55 -08:00
Mitchell Hashimoto dad5962ebb hosts/darwin: support virtualbox install 2015-11-04 15:47:56 -08:00
Mitchell Hashimoto 72e13ee9ef test: add tests for provider command 2015-11-04 14:26:22 -08:00
Mitchell Hashimoto d4ddb3c2f3 commands/provider 2015-11-04 14:20:48 -08:00
Gilles Cornu dde94a3ce7 provisioners/ansible: add force_remote_user option
The benefits of the following "breaking change" are the following:
- default behaviour naturally fits with most common usage (i.e. always
  connect with Vagrant SSH settings)
- the autogenerated inventory is more consistent by providing both the
  SSH username and private key.
- no longer needed to explain how to override Ansible `remote_user` parameters

Important: With the `force_remote_user` option, people still can fall
back to the former behavior (prior to Vagrant 1.8.0), which means that
Vagrant integration capabilities are still quite open and flexible.
2015-11-02 09:03:15 +01:00
Seth Vargo 73edde7356 Merge pull request #6467 from karthequian/master
fixed simple spelling errors
2015-10-31 17:53:08 -04:00
Karthik Gaekwad 2124b85b92 fixes simple spelling errors 2015-10-31 16:47:31 -05:00
Seth Vargo 36d6c430d2 Link to releases 2015-10-29 16:10:22 -04:00
Mitchell Hashimoto e4f29e61ca Merge pull request #6440 from mitchellh/f-machine-readable-ui
core: machine-readable output should include standard UI output
2015-10-26 22:31:35 -07:00
Mitchell Hashimoto 32e981ce7c core: machine-readable output should include standard UI output
As a "ui" type
2015-10-26 18:10:26 -07:00
Seth Vargo d5a5172357 Merge pull request #6438 from mitchellh/sethvargo/releases
Use releases for releases
2015-10-26 17:00:00 -04:00
Seth Vargo 23990e34e9 Use releases for releases 2015-10-26 11:44:14 -04:00
Seth Vargo d142640d85 Fix SHASUM file name 2015-10-22 12:18:43 -04:00
Mitchell Hashimoto efa01abb12 providers/virtualbox: if no box, don't import the master 2015-10-16 10:30:04 -07:00
Mitchell Hashimoto c17efbed75 core: ignore VAGRANT_DOTFILE_PATH if a child environment
This causes issues since the child environment almost certainly doesn't
share data with the parent. In a larger scope, we should find a way to
encode the data path somehow on `vagrant up`.
2015-10-16 10:28:30 -07:00
Seth Vargo c88d52082a Merge pull request #6296 from tomfanning/master
Hyper-V set mac address
2015-10-14 13:02:53 -04:00
Mitchell Hashimoto 8c8a70798d Update CHANGELOG.md 2015-10-12 15:50:47 -04:00
Mitchell Hashimoto 5e48d35911 Merge pull request #6229 from mitchellh/b-winrm-info-respect-timeout
communicators/winrm: respect boot_timeout when fetching winrm_info
2015-10-12 15:50:05 -04:00
Seth Vargo 8ee97d5f81 Update CHANGELOG 2015-10-12 13:16:19 -04:00
Seth Vargo ac05ce2431 Merge pull request #6139 from tjanez/fedora-no-biosdevname
Fixes Fedora network issues when biosdevname command is not present.
2015-10-12 13:15:03 -04:00
Tadej Janež 29e60882ca Fixes Fedora network issues when biosdevname command is not present.
Previously, configuring and enabling network interfaces failed with:

"The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/usr/sbin/biosdevname --policy=all_ethN -i bash: /usr/sbin/biosdevname:
No such file or directory

Stdout from the command:

bash: /usr/sbin/biosdevname: No such file or directory"

The previous attempt to fix this (ccc4162) doesn't work since it doesn't
properly parse the 'bash: /usr/sbin/biosdevname: No such file or
directory' error message.

This patch works around that problem and adds a comment explaining the
meaning of the return codes.
2015-10-11 23:10:26 +02:00
Seth Vargo e6bb09831b Merge pull request #6391 from hexdoll/patch-1
Fix typo
2015-10-11 13:44:51 -04:00
Gemma Peter 07a42daf90 Fix typo 2015-10-11 16:11:33 +01:00
Mitchell Hashimoto 36cfc77167 providers/virtualbox: make prepare clone a core thing 2015-10-08 16:02:37 -04:00
Mitchell Hashimoto be58cc0589 Merge pull request #6379 from mitchellh/sethvargo/shopt
Add shopt globs to include hidden files
2015-10-08 15:16:20 -04:00
Seth Vargo 681b50060e Add shopt globs to include hidden files 2015-10-08 13:52:21 -04:00
Mitchell Hashimoto d8b8eb7a6d Merge pull request #6378 from mitchellh/f-clone
Clone another Vagrant environment
2015-10-08 13:19:27 -04:00
Mitchell Hashimoto 5ea24e39d0 providers/virtualbox: unify import/clone 2015-10-08 13:07:05 -04:00
Mitchell Hashimoto 4908cd9cd9 providers/virtualbox: copy SSH key 2015-10-08 12:58:06 -04:00