Brian Cain
3c45acc35f
Continue if entity already exists with publish command
2018-10-12 09:07:12 -07:00
Brian Cain
83bd592e30
Introduce curl helper and uploader classes
...
This commit introduces a new uploader class for uploading files and
splits up some commonly used functionality between it and the downloader
class into a curl helper library.
2018-10-12 09:07:10 -07:00
Chris Roberts
67bb5d2e6c
Update Hyper-V admin check
2018-10-08 14:39:40 -07:00
Chris Roberts
8fd05fe3c1
Use command -v for checks in all inspection helpers. Fix stubs in tests.
2018-09-21 09:19:40 -07:00
Chris Roberts
fb5fc0e657
Update guest inspection utility module
...
Use sudo option for communicator test command instead of inline sudo
to properly use configured sudo value. Use command for checking
availability of hostnamectl. Use is-active for determining if a
service is being actively managed by systemd.
2018-09-20 16:42:39 -07:00
Maxim Kostrikin
d06cd2f94b
Hardened proc disallow systemd detection
...
If you have a vagrant box with proc mounted with
proc /proc proc defaults,hidepid=2 0 0
ps output will be limited to owned process
sudo should extend output
2018-09-10 18:13:58 +07:00
Brian Cain
e073153728
( #10099 ) Properly join commands from passed in array
...
Prior to this commit, the `Util::Powershell.execute_inline`
method didn't properly join the passed in command and instead attempted
to execute the array of strings. This commit updates that
behavior to join the command array prior to inserting it into the full
powershell command.
2018-08-14 09:30:11 -07:00
Chris Roberts
66566b8c3d
Merge pull request #10078 from chrisroberts/e-appimage-libs
...
Detect AppImage and update executable environment if required
2018-07-31 13:56:35 -07:00
Chris Roberts
6009492e73
Detect AppImage and update executable environment if required
...
If starting a process while running from within AppImage adjust
the LD_LIBRARY_PATH of the subprocess when the executable exists
outside of the AppImage. This prevents issues of invalid dynamic
library lookups when the AppImage contains common named libraries.
2018-07-31 10:39:26 -07:00
Chris Roberts
ba908052ec
Also handle false value for compatibility
2018-07-30 11:58:49 -07:00
Chris Roberts
e3e3a332b3
Include update in ssh util for verify_host_key value
2018-07-30 11:25:29 -07:00
Chris Roberts
c0b871794c
Merge pull request #9926 from Telekom-PD/centos_75_nmcli_hang
...
Fix hang at nmcli call on CentOS 7.5 when ssh.pty is enabled
2018-07-27 12:11:30 -07:00
Chris Roberts
c660643abb
Prevent matching on other Location headers
...
Prevent matching on custom headers that include the Location name
when checking for host redirection.
2018-07-19 09:18:30 -07:00
Chris Roberts
a490a8c587
Merge pull request #9966 from conspicuousClockwork/#9965
...
Added option to add to User-Agent
2018-07-18 16:43:02 -07:00
Chris Roberts
27a441f0bd
Merge pull request #10001 from chrisroberts/e-wsl-valid-sync
...
Disable synced folders on non-DrvFs
2018-07-18 16:41:16 -07:00
Chris Roberts
2ba5c74e1c
Merge pull request #9998 from chrisroberts/f-plat-wsl-pathname
...
Always force string type conversion of path
2018-07-18 16:37:07 -07:00
Chris Roberts
6f81d16691
Remove final #to_s on path
2018-07-12 16:49:22 -07:00
Thomas Röggla
2613d620fd
checking whether the field location_uri.host is nil
2018-07-12 15:49:26 +02:00
Chris Roberts
859d48d5f5
Restrict synced folder access to DrvFs file systems only within WSL
2018-07-06 16:58:12 -07:00
Chris Roberts
6aa5c1a008
Always force string type conversion of path
...
Fixes #9984
2018-07-06 14:29:32 -07:00
Koen Verheyen
7939784d1b
Display current version in version check
2018-06-29 16:41:50 +02:00
Caleb Martinez
447e58dac3
Added option to add to User-Agent
2018-06-28 13:21:34 -04:00
Chris Roberts
69ece0db4e
Always return string value when converting path
2018-06-18 10:02:59 -07:00
Chris Roberts
c5c63d291d
Only expand path if not in windows format
2018-06-18 09:39:30 -07:00
Chris Roberts
97eb459f56
Always expand to full path before converting to Windows path
2018-06-18 09:07:12 -07:00
Chris Roberts
55aaa1d258
Update path usages to support Hyper-V provider access from WSL
2018-06-15 09:03:18 -07:00
Chris Roberts
5357727350
Attempt full path to powershell as last resort in WSL
2018-06-15 09:03:18 -07:00
Simon Baatz
fa34f4d2af
Fix hang at nmcli call on CentOS 7.5 when ssh.pty is enabled
...
`vagrant up` may hang at the "Configuring and enabling network
interfaces..." step when private networks and PTY allocation for SSH
are used.
The newer version of `nmcli` that is part of CentOS now will open a
pager (i.e. `less`) for certain commands if it finds a tty. This
causes the invocations of `nmcli` in `guest_inspection.rb` to hang.
`nmcli` disables the use of a pager in 'terse' (`-t`) output mode,
while still returning enough information for the uses in
`guest_inspection.rb`.
2018-06-13 11:10:18 +02:00
Chris Roberts
ef4d431d36
Remove console resizing on powershell commands
2018-06-12 16:47:47 -07:00
Chris Roberts
5325000fa6
Add helper option for setting custom module path on PowerShell executes
2018-06-12 10:44:12 -07:00
Chris Roberts
5f4e661155
Add automatic console resize and environment support for powershell commands
2018-05-30 15:04:59 -07:00
Chris Roberts
e6457d5061
Overhaul the Hyper-V provider
2018-05-24 14:43:44 -07:00
Chris Roberts
3f3777f03a
Merge pull request #9746 from chrisroberts/e-hyper-v-check
...
Update Windows Hyper-V check
2018-05-02 07:45:26 -07:00
Chris Roberts
3dcc350364
Merge pull request #9696 from D4rkSh1t/fix-rootpath-for-wsl
...
fix rootpath if the vagrantfile is located under the root directory (WSL)
2018-04-27 17:04:23 -07:00
Chris Roberts
a997a27b57
Update Windows Hyper-V check
...
Checks only if the Hyper-V hypervisor is enabled instead of all
Hyper-V features. This will allow detection where Hyper-V is in
use for things like ApplicationGuard.
Uses both Get-WindowsOptionalFeature and Get-WindowsFeature to
support check on server and non-server version.
2018-04-27 14:13:34 -07:00
Brian Cain
67c3f866dd
( #7886 ) Add tests and simplify code for continuing on 416
2018-04-25 14:03:24 -07:00
Alexey Kamenskiy
f1993dfa19
Fixed minor typo in comment
2018-04-25 09:12:08 -07:00
Alexey Kamenskiy
cd3035e5e9
Issue #7885 Don't raise error if response is 416
...
416 means there is no more bytes to download (which works only with `--continue-at -` of curl)
2018-04-25 09:12:08 -07:00
Brian Cain
188fd5d6a6
Split out run methods with Powershell functions
2018-04-20 10:51:38 -07:00
Maximilian Gotter
134060d577
fix rootpath if the vagrantfile is located under the root directory
2018-04-17 07:10:41 +00: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
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
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
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
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