Brian Cain
8b71c24f90
Match properly on guests with trigger filtering
2018-04-20 10:51:38 -07:00
Brian Cain
a4faaa1a4d
Provision run_remote using the shell provisioner
2018-04-20 10:51:38 -07:00
Brian Cain
fd2878309b
Move exception warnings in run function
2018-04-20 10:51:38 -07:00
Brian Cain
e078767b2b
run now supports script files as well as inline scripts
2018-04-20 10:51:38 -07:00
Brian Cain
8b70abd4d0
Send the correct config message to warn
2018-04-20 10:51:38 -07:00
Brian Cain
59965f4fd6
Properly filter triggers
2018-04-20 10:51:38 -07:00
Brian Cain
975b8e774c
Get basic run triggers executing inline scripts
2018-04-20 10:51:38 -07:00
Brian Cain
d750169f6e
Add some logging around run and run_remote
2018-04-20 10:51:38 -07:00
Brian Cain
616b0f9ba6
Preserve returning environment after machine action gets called
2018-04-20 10:51:38 -07:00
Brian Cain
48b7c682ad
Use active machine object
2018-04-20 10:51:38 -07:00
Brian Cain
93af398f9e
Update params for NoStageGiven error
2018-04-20 10:51:38 -07:00
Brian Cain
bbf4e3c521
Reduce fire trigger methods to a single method
2018-04-20 10:51:38 -07:00
Brian Cain
eac2fcf71e
Filter triggers based on only_on restraint
2018-04-20 10:51:38 -07:00
Brian Cain
6373441ab2
Ensure guest name is a string
2018-04-20 10:51:38 -07:00
Brian Cain
76418b9fcd
Simplify trigger selection
2018-04-20 10:51:38 -07:00
Brian Cain
0e5cd900f8
Add missing param
2018-04-20 10:51:38 -07:00
Brian Cain
1462b3f718
Simplify trigger command filtering
2018-04-20 10:51:38 -07:00
Brian Cain
372a6a7911
Initial trigger plugin scaffolding
2018-04-20 10:51:38 -07:00
Brian Cain
4ecf682265
Add basic trigger plugin scaffold
2018-04-20 10:51:38 -07:00
Brian Cain
42419bbd49
Fix rspec tests
2018-04-20 10:51:38 -07:00
Brian Cain
f0ec7c750b
Potential solution for trigger validation when guest is defined
...
Send the defined before and or after triggers in the merge function if
triggers exist already
2018-04-20 10:51:38 -07:00
Brian Cain
51e4118cc2
Debug commit
2018-04-20 10:51:38 -07:00
Chris Roberts
6ae1f4a2f6
Fix require for ffi-win32-extensions
...
Fixes #9698
2018-04-18 12:42:46 -07:00
Chris Roberts
5d7506afe3
Merge pull request #9676 from chrisroberts/e-win-file-perms
...
Update generated ssh private key file permissions on create
2018-04-10 14:56:28 -07:00
Chris Roberts
9731720773
Update generated ssh private key file permissions on create
...
This updates the permissions on the automatically generated private
key file to only be readable by the user. Includes support for file
permission modification on Windows platform.
2018-04-10 14:15:14 -07:00
Chris Roberts
e4399a5724
Check Windows installed Vagrant version using --version
...
Using the --version flag keeps Vagrant from doing a full startup
and prevents the Vagrantfile from being parsed. This makes the
version check faster, and stops things like syntax errors within
a Vagrantfile from causing an unexpected error.
Fixes #9635
2018-04-10 08:05:23 -07:00
Chris Roberts
f3c5e86f28
Merge pull request #9504 from zachflower/feature/vagrant-aliases
...
Vagrant aliases
2018-04-06 15:39:18 -07:00
Chris Roberts
8391abc63a
Properly respect environment variable on checkpoint setup
...
The checkpoint update missed the environment variable check for
disabling the checks so this adds in the check and properly
disables checks when requested.
2018-04-05 10:47:28 -07:00
Chris Roberts
a9223cf443
Add missing action autoloads
...
Fixes #9303
2018-04-04 16:27:06 -07:00
Chris Roberts
ef4318eda2
Merge pull request #9653 from chrisroberts/f-powershell-detection
...
Make powershell version detection timeout configurable
2018-04-04 16:20:23 -07:00
Chris Roberts
8ac0fedbbb
Suppress errors from invalid path encoding and carry on with best effort
...
Fixes #9299
2018-04-04 16:09:46 -07:00
Chris Roberts
dd1d91f2c4
Merge pull request #9503 from chrisroberts/f-win-ssh-control
...
Fix ssh binary selection on windows
2018-04-04 16:05:17 -07:00
Chris Roberts
90fa705a6d
Make powershell version detection timeout configurable
...
Allows custom configuration of the powershell timeout and bumps
the default timeout from 10 seconds to 30 seconds.
Fixes #9629
2018-04-04 16:02:11 -07:00
Chris Roberts
dd438100b8
Merge pull request #9645 from chrisroberts/e-checkpoint-exceptions
...
Prevent exceptions from being raised by checkpoint
2018-04-04 15:58:47 -07:00
Chris Roberts
a1d23b4e97
Allow system binary lookup to be disabled on windows for ssh
...
Fixes #9433
2018-04-04 15:50:52 -07:00
Chris Roberts
0139fe052b
Only modify report_on_exception if the method is available
2018-04-02 12:11:37 -07:00
Chris Roberts
1dafc6b82e
Prevent exceptions from being raised by checkpoint
2018-04-02 12:00:56 -07:00
Chris Roberts
30e7e81eab
Make resolv-replace loading optional not automatic
2018-04-02 11:59:02 -07:00
Josh Soref
1a5ddea9f4
Spelling fixes
...
* account
* addresses
* administrator
* afterwards
* because
* bridgeable
* capabilities
* capability
* checksum
* configuration
* configuration for
* configure
* criteria
* delimited
* delivered
* derivatives
* description
* detect
* directory
* display
* downloading
* during
* electric
* enabling
* encountered
* equivalent
* executable
* executed
* hashicorp
* hypervisor
* hyphens
* implementation
* incorporate
* inheritance
* initialize
* instance
* instead
* interactions
* invocable
* machine
* maximum
* message
* mounting
* overridden
* overwrite
* paramiko
* preparing
* provides
* provisioning
* recursively
* requested
* resetting
* retryable
* running
* satisfied
* searching
* sometimes
* specified
* successfully
* synced folders
* unauthorized
* underlying
* userprofile
* vagrant
* vagrantfile
* variable
* various
* version
* virtual
* windows
2018-03-14 14:41:04 +00:00
Chris Roberts
8b7e501e50
Handle pathing in lxrun generated WSL instances better.
2018-02-28 10:08:01 -08:00
Chris Roberts
5f0d16a0e9
Include support for lxrun generated install
...
Adds compatibility support for legacy lxrun generated WSL installation
which is a single install at a known path location. This allows earlier
versions of Windows 10 to continue working as expected while still
supporting the recent updates allowing for multiple instances.
2018-02-28 10:08:01 -08:00
Sergii Bondarenko
cc82f96618
#9298 : Fix typos in comments to the code
2018-02-28 10:08:01 -08:00
Sergii Bondarenko
47a7f0817c
#9298 : Try to fallback to "powershell.exe" on WSL if "powershell" is not available
2018-02-28 10:08:01 -08:00
Sergii Bondarenko
c5fdd47a56
#9298 : Respect usernames with spaces
2018-02-28 10:08:01 -08:00
Sergii Bondarenko
a1211caa9c
#9298 : Add debugging messages and explanations to the code
2018-02-28 10:08:01 -08:00
Sergii Bondarenko
62740e2240
#9298 : Increase stability of determination of a current WSL instance
2018-02-28 10:08:01 -08:00
Sergii Bondarenko
72664eafec
#9298 : Use a single-word distro name
2018-02-28 10:08:01 -08:00
Sergii Bondarenko
476981874b
#9298 : Compute a correct path to the current WSL instance
2018-02-28 10:08:01 -08:00
Zachary Flower
3dbcdea691
allow the alias file path to be defined via an environment variable
2018-02-25 22:32:13 -07:00
Zachary Flower
42f72e1099
some light changes per PR feedback
2018-02-25 22:21:16 -07:00