Commit Graph

7759 Commits

Author SHA1 Message Date
Seth Vargo 5f383b546c Use sudo for read_ip_address capability
Fixes #4868
2015-07-10 13:25:11 -06:00
Seth Vargo 00f1e46777 Update docs to support VirtualBox 5 2015-07-10 13:17:36 -06:00
Mitchell Hashimoto 3f7f85c076 v1.7.3 2015-07-10 12:47:42 -06:00
Seth Vargo beb5bce698 Update CHANGELOG 2015-07-10 11:54:20 -06:00
Mitchell Hashimoto f6bf8b4789 Merge pull request #5924 from mitchellh/sethvargo/docker_check_args
Save docker args to check if running containers have changed in the Vagrantfile
2015-07-10 11:52:20 -06:00
Mitchell Hashimoto 66b1ac7f05 Merge pull request #5922 from mitchellh/sethvargo/docker_space_args
Add a space before args
2015-07-10 11:50:07 -06:00
Seth Vargo 516d475f16 Checksum args to each docker container in local data
This allows Vagrant to calculate if a container's arguments (such as the run
arguments) have changed in the Vagrantfile since the original run.

Fixes GH-3055
2015-07-10 11:32:02 -06:00
Seth Vargo 3e3037f313 Add a space before args 2015-07-10 10:49:21 -06:00
Gilles Cornu 247fe72068 docs: update ansible provisioner guide [GH-5765]
[ci skip]
2015-07-10 17:36:05 +02:00
Mitchell Hashimoto c846f3f22a Merge pull request #5919 from mitchellh/gildegoma/fix-broken-rspec-tests
core: plugin management requires bundler
2015-07-10 08:58:52 -06:00
Gilles Cornu faeb8a9440 core: plugin management requires bundler
With this change, the `Vagrant::plugins_enabled?` is now false when the
embedded Bundler is not available.

Resolve the broken RSpec unit tests after
479323f1e8.
2015-07-10 13:37:33 +02:00
Gilles Cornu 8f951291be Merge pull request #5765 from mitchellh/gildegoma/key-in-ansible-inventory
Store the first SSH private key in generated Ansible inventory
2015-07-10 09:04:59 +02:00
Gilles Cornu e932bc405e Update CHANGELOG [GH-5765]
[ci skip]
2015-07-10 08:51:17 +02:00
Gilles Cornu df4b74ee54 provisioners/ansible: update doc for GH-5765 (wip) 2015-07-10 08:51:17 +02:00
Gilles Cornu 3842a1f710 provisioners/ansible: provide ssh identities via ANSIBLE_SSH_ARGS (when necessary)
When provisioning multiple machines in sequence (the default vagrant
behaviour), it doesn't make sense to require to provide the private ssh
key(s) via the custom ansible inventory script/file.

To align with the handling of multiple ssh keys per machine, we won't
rely any longer on `--private-key` command line argument, but only pass
the keys via `ANSIBLE_SSH_ARGS` environment variable.

Note that when vagrant generates the ansible inventory and that only one
key is associated to a VM, this step would be redundant, and therefore
won't be applied.

This change fixes the breaking change introduced by 3d62a91.
2015-07-10 08:51:17 +02:00
Luis Pabón 76651a413d provisioners/ansible: Update unit tests
Signed-off-by: Luis Pabón <lpabon@redhat.com>
2015-07-10 08:51:17 +02:00
Luis Pabón f0718d620d provisioners/ansible: Put ssh key in the inventory
Vagrant 1.7.1 creates and injects new ssh keys for each virtual machine.
When it started ansible with the "parallel provisioning trick",
it would only send the ssh key of the targeted virtual machine.
With this change, vagrant now stores the ssh key for each virtual
machines directly in the generated ansible inventory, and thus allow
ansible parallelism.

Note that this change is not sufficient, as it would break vagrant
configuration based on a custom inventory (file or script). This issue
will be addressed in a next commit.

Signed-off-by: Luis Pabón <lpabon@redhat.com>
2015-07-10 08:39:49 +02:00
Mitchell Hashimoto d29487a2bc Merge pull request #5916 from mitchellh/sethvargo/chef_zero
Refactor Chef provisioners
2015-07-09 22:17:31 -06:00
Mitchell Hashimoto 479323f1e8 for newer versions of Bundler, store the runtime 2015-07-09 22:12:47 -06:00
Seth Vargo d72306b6d5 Fix command builder tests 2015-07-09 21:36:50 -06:00
Seth Vargo 4b1847acf3 Use Chef Client for Chef Zero
Fixes GH-5619
2015-07-09 21:23:42 -06:00
Mitchell Hashimoto 931f0700b3 upping version for dev 2015-07-09 21:22:31 -06:00
Seth Vargo 294812fb13 Merge pull request #5915 from mitchellh/sethvargo/bump
Bump to latest bundler
2015-07-09 17:47:46 -06:00
Seth Vargo f93532ce11 Bump to latest bundler 2015-07-09 17:47:36 -06:00
Seth Vargo 40b94afeb5 Update command builder now that provisioning_path has moved to runtime 2015-07-09 17:46:39 -06:00
Seth Vargo a822bb2aa6 Merge pull request #5914 from mitchellh/sethvargo/travis_docker
Try the container VMs
2015-07-09 17:27:50 -06:00
Seth Vargo 5323a51126 Use color 2015-07-09 17:24:29 -06:00
Seth Vargo b191c302f1 Use bundle exec 2015-07-09 17:20:02 -06:00
Seth Vargo dcd8877b60 Try the container VMs 2015-07-09 17:18:19 -06:00
Seth Vargo 85d2a69f98 Update CHANGELOG 2015-07-09 17:07:15 -06:00
Seth Vargo 60330218fb Merge pull request #5913 from mitchellh/sethvargo/windows_chef_paths
Use windows-specific Chef paths
2015-07-09 17:05:40 -06:00
Seth Vargo e9bcf147f0 Prefix with guest_ 2015-07-09 17:01:36 -06:00
Seth Vargo 06dcd55f57 Fix tests 2015-07-09 16:59:17 -06:00
Gilles Cornu 94e26f45ec Update CHANGELOG
Close #5551
2015-07-10 00:56:12 +02:00
Seth Vargo 0e039159a6 Calculate Chef paths at provision time 2015-07-09 16:55:55 -06:00
Nicholas Randon eb6aa2ac8c Allow Ansible provisioner to run reliably in parallel
The Ansible Vagrant provisioner has a race where the inventory file is
updated every time the provisioner runs unless a file is provided.

Therefore if Ansible attempts to provision two nodes in parallel, you
may see the following race:
   * System A writes the inventory file and calls Ansible.
   * System B starts to provision and truncates the file before
     creating a new one.
   * Ansible on system A now attempts to read the inventory
     file, which is blank. Ansible bombs out with "ERROR: provided
     hosts list is empty".

To fix this, we only allow Vagrant to update the inventory file if
it needs to.
2015-07-10 00:53:59 +02:00
Seth Vargo 04ed8d3d03 Merge pull request #5912 from mitchellh/sethvargo/subprocess_escape
Automatically restore the original environment if we are runnings something outside of the embedded installer
2015-07-09 16:10:33 -06:00
Seth Vargo fafa3fa437 Add another log statement 2015-07-09 16:06:03 -06:00
Seth Vargo 742d47c4cf No longer need subprocess wrapping there :) 2015-07-09 16:06:03 -06:00
Seth Vargo 68ef9676c7 Jailbreak out of the subprocess and restore original environment 2015-07-09 16:06:03 -06:00
Seth Vargo 46563560f4 Update with_clean_env helpers 2015-07-09 16:06:02 -06:00
Seth Vargo 50a64ea30b Add a log statement 2015-07-09 16:06:02 -06:00
Seth Vargo 0a5d37fc8b Reset the original environment if we are running something outside of the installer 2015-07-09 16:06:02 -06:00
Mitchell Hashimoto 790c625bc0 Merge pull request #5884 from dcbw/dcbw/fedora-network-mac-address
[fedora] honor MAC address when configuring networks
2015-07-09 16:01:33 -06:00
Mitchell Hashimoto dd625a9352 update CHANGELOG 2015-07-09 15:18:36 -06:00
Mitchell Hashimoto d36f611e24 Merge branch 'maxlinc-filter_synced_folders' 2015-07-09 15:05:59 -06:00
Mitchell Hashimoto cea44847de Merge branch 'filter_synced_folders' of https://github.com/maxlinc/vagrant into maxlinc-filter_synced_folders 2015-07-09 15:05:52 -06:00
Mitchell Hashimoto d51c5fbc69 Merge pull request #5435 from juiceinc/bugfix/salt-provisioner
Update Salt provisioner to allow more flexibility in passing arguments to the bootstrap script
2015-07-09 15:02:34 -06:00
Mitchell Hashimoto b0b9f67faf Merge pull request #5514 from MiLk/fixes/several-boxes-same-name
Allow to use several boxes with the same name
2015-07-09 15:00:03 -06:00
Mitchell Hashimoto 5fd3ab5bb0 Merge pull request #5706 from jim-minter/master
Remove docker0 from guest network interface enumeration
2015-07-09 14:31:00 -06:00