Commit Graph

8937 Commits

Author SHA1 Message Date
Seth Vargo 7d98dd2526 Merge pull request #7184 from mitchellh/sethvargo/rescue_conn
Rescue Errno::ENOTCONN
2016-04-05 10:40:38 -04:00
Seth Vargo 45cc01e6a9 Merge pull request #7204 from johnmccabe/fix/osxuninstall
fix path in OSX vagrant uninstallation steps
2016-04-05 10:07:03 -04:00
John McCabe c5159e178c fix path in OSX vagrant uninstallation steps 2016-04-05 11:52:09 +01:00
Seth Vargo 88fd100011 Merge pull request #7203 from coddingtonbear/master
Minor grammar/spelling error in Environment Variables.
2016-04-04 22:14:54 -04:00
Adam Coddington c0ddf346c8 Minor grammar/spelling error in Environment Variables. 2016-04-04 17:55:59 -07:00
Seth Vargo 7df3e1bfb1 Merge pull request #7191 from ondine/patch-1
Exit the SSH session before vagrant destroy
2016-04-01 00:18:24 +02:00
ondine 8de78f5c5f Exit the SSH session before vagrant destroy
How to exit the session: http://superuser.com/questions/704032/how-to-exit-ssh-of-vagrant-in-terminal
2016-03-31 11:36:16 -07:00
Darragh Bailey cae0bfdf9d provisioners/ansible: Replace inventory file instead of modify
When updating the inventory, write to a temp file and replace the
original once writing is complete, to allow for an atomic replacement
of the contents.

Ensures that ansible reading an inventory file will get either the old
or new contents, but never the truncated version of the file that
appears should you open it with 'w' mode set to replace the contents.

Solves the 'provided hosts list is empty' error, which is emitted by
ansible should it manage to be reading the inventory file just as it
was truncated, but before the new contents were flushed to disk.

Partially-Fixes: #6526
2016-03-31 17:44:20 +01:00
Darragh Bailey 36ad4d53cf core: Multi machine use of active_machines requires locking of index
Ensure multi machine access of other machine state information through
iterating `active_machines` and retrieval of cached machines cannot
have multiple threads update the state of machines simultaneously as
this triggers a Machine Lock exception.

Machine state information retrieved from the index, returns a locked
object. Since iteration of active_machine, and retrieval of each
machine from the cache can be triggered by any plugin, it is possible
for another machine to inadvertently access the state and trigger an
update, which the thread owning the machine is currently in the process
of updating it already. This results in a Machine Locked exception
occurring if the attempt to retrieve the cached state from the index
occurs before the other thread calls release.

Partially-Fixes: #6526
2016-03-31 17:27:36 +01:00
Seth Vargo 3305764f71 Rescue Errno::ENOTCONN
Fixes GH-7182
2016-03-31 17:02:50 +02:00
Seth Vargo 4641aa767b Update CHANGELOG 2016-03-31 17:02:28 +02:00
Seth Vargo b2cd865a55 Merge pull request #7159 from mitchellh/sethvargo/down_ubuntu
Do not return an error if ifdown fails
2016-03-31 17:01:13 +02:00
c0state eeaacbe82d Add section to NFS sync folder documentation for setting sudoers file
entries to not require password prompt in the case of non standard
system utility locations
2016-03-26 23:56:46 -04:00
Seth Vargo b0aec1d162 Merge pull request #7162 from vdloo/fix-dead-link-in-plugins-documentation
fix dead link in plugins/providers documentation
2016-03-21 21:00:56 +02:00
Rick van de Loo eb9ec2cc7d fix dead link in plugins/providers documentation 2016-03-21 12:04:56 +01:00
Seth Vargo 0505771481 Do not return an error if ifdown fails
Ubuntu versions prior to 16.04 always returned a successful exit status,
even if one tried to down an interface that does not exist. This
behavior changed in Ubuntu 16.04 to return an error. This commit
preserves the old behavior.

Fixes GH-7155
2016-03-20 18:21:03 +02:00
Seth Vargo 42a8ed658e Authenticate metadata box urls 2016-03-19 17:05:43 -04:00
Seth Vargo fa19783a6e Update CHANGELOG 2016-03-17 20:52:57 -05:00
Seth Vargo d9b5e0e97d Merge pull request #7154 from mitchellh/pr-6316
Create parent directories during ftp push
2016-03-17 20:52:46 -05:00
Seth Vargo 76e7a980a8 Use a hash for directory lookups 2016-03-17 20:48:08 -05:00
Phivos Stylianides a27e7e106a push via sftp issue when file parent directory does not exist
Overcomes exception Net::SFTP::StatusException (2, "no such file") when using: "vagrant push" via sftp and a file parent directory does not exist. Function "upload" does not create the directory before uploading a file ('mkdir: true' seems to have no effect as zero directories are created while files are uploaded normally).
2016-03-17 20:46:47 -05:00
Seth Vargo 197a2d8799 Update CHANGELOG 2016-03-17 20:46:26 -05:00
Seth Vargo 74fad20d09 Merge pull request #7153 from mitchellh/sethvargo/chef_node_name
Use hostname if no node_name is set
2016-03-17 20:31:37 -05:00
Seth Vargo 59c809aa85 Remove PR template (it's not as valuable) 2016-03-17 20:16:30 -05:00
Seth Vargo 8319f159b6 Use hostname if no node_name is set
Fixes GH-7063
2016-03-17 20:15:11 -05:00
Seth Vargo cf925813a0 Update docs about security for share 2016-03-17 18:11:50 -04:00
Seth Vargo 01e4a34c9b Merge pull request #7151 from mitchellh/sethvargo/stderr_and_out
Check both stderr and stdout
2016-03-17 10:58:57 -04:00
Seth Vargo d565c2f07e Check both stderr and stdout
Different vbox versions print this to different streams, so check both
just to be sure
2016-03-17 10:52:10 -04:00
Seth Vargo 32c4638ffd Update CHANGELOG 2016-03-17 10:49:16 -04:00
Seth Vargo 5b336949b5 Merge pull request #7050 from md55/snapshots-in-virtualbox41
Adds snapshot commands in VirtualBox 4.1
2016-03-17 10:48:03 -04:00
John Julien e0ecda961c Fixed linked clone failure when master VM is missing
If the master VM is removed, but the master_id file exists, Vagrant
would still attempt to clone using the master_id rather then
importing re-importing first.

Fixes #6742
2016-03-09 19:33:47 -06:00
Jack Pearkes 1f88a97373 Merge pull request #7123 from mitchellh/vagrant-and-atlas
website: add a page to send folks to get to a signup link for atlas
2016-03-08 11:05:21 -08:00
Jack Pearkes 295e396292 website: catch more atlas.hashicorp.com and fix enterprise spelling 2016-03-08 10:57:35 -08:00
Seth Vargo bd1df1332b Update CHANGELOG 2016-03-08 13:56:58 -05:00
Seth Vargo 991fec65f6 Merge pull request #7120 from larsch/restart-network-arch
Restart network after reconfiguration
2016-03-08 13:55:50 -05:00
Jack Pearkes 16ef95e829 website: add a page to send folks to get to a signup link for atlas 2016-03-08 10:53:51 -08:00
Seth Vargo 013b76e92f Merge pull request #7122 from kenorb/patch-1
Fixes #7121: Corrected binary logic description.
2016-03-08 13:53:06 -05:00
Rafal 1b35ba99f6 Corrected binary logic description.
As per http://stackoverflow.com/q/28651275/55075 thread, this seems to be confusing.

> CRLFs are changed to LFs if this is set to true.
2016-03-08 15:52:20 +00:00
Lars Christensen a6565199ff Restart network after reconfiguration
Fixes #7119.
2016-03-08 16:24:24 +01:00
Seth Vargo c6c9942e2e Merge pull request #7104 from altexdim/fix_centos_networks
Fixed centos 7 networks if using more than 3 ethernet adapters.
2016-03-07 11:30:26 -05:00
Altex 9e9909536c fix 2016-03-07 19:25:57 +03:00
Seth Vargo be1421f116 Update CHANGELOG 2016-03-07 11:01:20 -05:00
Seth Vargo 77a090395a Merge pull request #7101 from mwrock/generation
only specify Hyper-V generation if the parameter is supported
2016-03-07 10:57:21 -05:00
Seth Vargo e69d2665ba Merge pull request #7107 from jtopper/docs_for_6879
Update website docs for #6879
2016-03-07 10:53:08 -05:00
Jon Topper ee8361dea1 Update website docs for #6879 2016-03-06 16:14:14 +00:00
Altex e998d6b0f4 Fixed centos 7 networks if using more than 3 ethernet adapters. 2016-03-05 22:25:59 +03:00
Gilles Cornu 47c0833277 ansible_local: use double quotes instead of single quotes
Before this minor change, the '--limit' and '--start-at-task'
ansible-playbook command line arguments were enclosed into single
quotes. Using double quotes adds a bit more flexibility, especially
about the task name referred by `start_at_task` option.

It also aligns with the handling of the '--extra-vars' parameter
(see cb80286).
2016-03-05 17:25:54 +01:00
Gilles Cornu cb80286a4a ansible_local: put json extra-vars in double quotes
Without this change, the JSON string generated from the `extra_vars`
Ruby hash is passed without enclosing quotes and is then not parseable
by the ansible-playbook command when exectuted in a usual shell context.

In this changeset, the ansible (remote) unit test coverage is improved
to cover both usage of `extra_vars` (ansible_local unit tests are still
missing).

Additional Notes:

 - Double quotes are favored to single quotes in order to allow usage of
   any character for the variable values. For this reason additional
   escaping is appended to JSON-inner double quotes and backslashes.

 - This problem was not affecting the `ansible` remote provisioner
   (which is running the ansible-playbook command via the childprocess
   Ruby library). But with this change, the `verbose` output will also
   now be correct for a copy-paste reuse.

 - After this change, all the "--extra-vars" arguments (also a var
   file passed with the @-syntax or anything coming via the
   `raw_arguments` option) are "blindly" and systematically enclosed
   in double quoted and double-escaped.
   This is not optimal and can potentially break with peculiar values
   (e.g. a double quote character (") cannot be used in a json value
   when using `raw_arguments`). That said, I think that the current
   solution is a reasonable trade-off, since the official `extra_vars`
   option should now be able to cover a great majority of use cases.

Fix #6726
2016-03-05 17:24:28 +01:00
Matt Wrock 508492faae fixes #7098 only specifying Hyper-V generation if the parameter is supported 2016-03-04 23:42:17 -08:00
Paul Hinze ffe0ef71ad Update CHANGELOG.md 2016-03-04 11:42:13 -06:00