Ladar Levison
348c267054
Updated support for legacy network adapters on Hyper-V.
2018-12-18 04:59:00 -06:00
Megan Marsh
b95123f457
add new copy_in_compare flag so users can set the copy var to whatever they need in order to get the compatibility report to work.
2018-12-13 09:12:23 -08:00
Anish Bhatt
d5f88b154f
Better fix for #7095
2018-12-11 10:34:07 -08:00
Anish Bhatt
916375183b
Don't run StepCleanupTempKeys when communicator is set to none
2018-12-10 15:33:19 -08:00
Megan Marsh
e69391f28b
save users some bash scripting by exposing IP and port separately as well as together
2018-12-06 09:29:07 -08:00
pgrmega
2d1e3efadb
Fix a problem when calling Hyper-V\Compare-VM PowerShell cmdlet ( #6726 )
2018-11-20 22:10:03 +01:00
Megan Marsh
f9ceaee4f1
fix variable casing convention
2018-10-22 14:34:50 -07:00
Joel Vasallo
5d17b3de84
fix: config validator output
2018-10-19 19:52:11 -05:00
Joel Vasallo
23ad90f2c4
fix: condensed and simplified os check logic and added validate output
2018-10-19 13:48:30 -05:00
Joel Vasallo
d408c9e69c
fix: moved os check to entry of func
2018-10-19 01:38:51 -05:00
Joel Vasallo
0912adea34
fix: converted onlyon param to only_on and added validation step
2018-10-19 00:51:25 -05:00
Joel Vasallo
25c0b98363
feat: ability to specify runtime OSs where shell-local should run
2018-10-18 15:10:04 -05:00
Adrien Delorme
02ba6ccfab
make common/iso_config_test.go invisible to windows
2018-10-16 18:41:27 +02:00
Megan Marsh
847a3b0061
provide useful powershell error
2018-10-09 12:13:07 -07:00
Megan Marsh
3f8407d95f
Revert "Merge pull request #6700 from hashicorp/multi_progressbar"
...
This reverts commit 5470c08345
, reversing
changes made to c427486bca
.
2018-09-20 13:14:17 -07:00
Megan Marsh
5470c08345
Merge pull request #6700 from hashicorp/multi_progressbar
...
Split progressbars per object
2018-09-19 15:22:14 -07:00
Megan Marsh
38cc525ec7
new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
2018-09-14 11:06:38 -07:00
Adrien Delorme
dfeca9f0df
split progressbars per object
2018-09-12 16:21:58 -07:00
Megan Marsh
a0edaf6c46
Going to revert this change for now, becuase of potential issues that arise from calling Prepare() twice
...
Revert "use statebag instead of SetSharedState for winRM password"
This reverts commit b35acbd879
.
2018-09-10 16:48:42 -07:00
Adrien Delorme
32cacad273
remove comment that is not true anymore
2018-09-06 16:50:47 +02:00
Adrien Delorme
bb59a70e8f
progressbar: use int64 instead of uint64
...
* it's what's used for file sizes and used lib
2018-09-06 16:49:15 +02:00
Adrien Delorme
f9c58e2b1f
download: defer progress bar Finish
2018-09-06 16:38:28 +02:00
Adrien Delorme
3842f85eb4
download: remove close calls that are already defered
2018-09-06 16:30:35 +02:00
Adrien Delorme
23762a1810
fix tests for common/download_test.go
2018-09-06 15:53:59 +02:00
Adrien Delorme
7f50228080
remove old/unused progress code
2018-09-06 15:53:59 +02:00
Adrien Delorme
059e14fe42
put back usefull debug
2018-09-06 15:53:59 +02:00
Adrien Delorme
a11f985e3c
revert unecessary check
2018-09-06 15:53:59 +02:00
Adrien Delorme
a9d302def8
removed debug logs
2018-09-06 15:53:59 +02:00
Adrien Delorme
541c68aed5
add StackableProgressBar struct that will refresh/show dl status for multiple files
...
* simplified the downloader interface, and removed the total/current values from them
* downloaders use a proxy reader that will add all read bytes to progress
* removed unused const mtu
* DownloadClient doesn't need a downloader, so I removed it too
2018-09-06 15:53:59 +02:00
Adrien Delorme
fd7cb47adc
use proxy reader for download progress & stop storing total/current in downloaders
2018-09-06 15:53:59 +02:00
Adrien Delorme
ddd96c513b
first draft at self refreshing loading bar centralized/controlled by Ui
2018-09-06 15:53:59 +02:00
Adrien Delorme
5a8af5500b
random: optimize allocation & simplify loop
2018-09-05 10:27:02 +02:00
Adrien Delorme
4682b3a9d2
refactor possible random strings into common/random
2018-09-05 10:26:52 +02:00
Adrien Delorme
170b2f3383
builder/azure/common.RandomString-> common/random.String
...
* to share them
* also removed unused PassworString func & arm.TempPasswordAlphabet package const
2018-09-05 10:24:28 +02:00
Adrien Delorme
9cefd69f0d
change progress bar display rate to 5s to reduce 'spamminess' ( #6640 )
...
#6625
2018-08-30 16:00:30 +02:00
Megan Marsh
8309f36176
Merge pull request #6626 from hashicorp/fix_6620
...
make reasonable tempfile default on windows
2018-08-27 09:43:04 -07:00
Matthew Hooker
7519037562
Merge pull request #6629 from hashicorp/travisbuild
...
travis builds go 1.11. remove 1.9
2018-08-24 20:51:31 -07:00
Matthew Hooker
8a604114ef
remove unused code
2018-08-24 20:43:51 -07:00
Matthew Hooker
3f1a9766f4
formatting verb fixes for go 1.11
2018-08-24 16:18:21 -07:00
Megan Marsh
c5b346b07b
Merge pull request #6393 from DanHam/fix-hyperv-export
...
Various improvements to Hyper-V ISO and VMCX builders
2018-08-24 15:52:49 -07:00
Megan Marsh
b35acbd879
use statebag instead of SetSharedState for winRM password
2018-08-24 13:51:16 -07:00
Megan Marsh
f5355a0693
make reasonable tempfile default on windows
2018-08-24 09:44:50 -07:00
Megan Marsh
340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
...
Merge ssh config funcs from builders
2018-08-23 16:03:36 -07:00
Megan Marsh
1f79b430ee
Merge pull request #6610 from hashicorp/filter_logs
...
Filter logs
2018-08-23 13:30:21 -07:00
Megan Marsh
31d4f8af45
use a time.Duration instead of a hardcoded ms
2018-08-23 13:16:01 -07:00
Megan Marsh
918db58604
added new template variables to replace PACKER_KEY_INTERVAL with tunable key and keygroup intervals depending on driver used
2018-08-22 11:37:56 -07:00
Adrien Delorme
41f6e0334d
refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
...
* still need to append the auth methods into an array for gracefullness
2018-08-22 17:02:23 +02:00
Ali Rizvi-Santiago
cf9bbe3ecf
Incorporated the hack demonstrated by @SwampDragons in order to deal with packer.rpc.Ui not exporting any information about what it's doing to anybody.
2018-08-20 21:55:18 -05:00
Ali Rizvi-Santiago
5726927cba
Moved the progress bar out of packer.Ui and unlinked it out of all the packer.Ui implementations. Split up the terminal-related functions into a separate terminal.go and calculate the progress bar width by traversing through packer.Ui to avoid the issue with github.com/ugorji/go/codec serializing private members (or unsafe pointers) of structs. Shuffled some arguments around in getConsoleScreenBufferInfo in common/terminal_windows.go so that the interface forces the user to correctly declare a _CONSOLE_SCREEN_BUFFER_INFO type.
2018-08-20 21:55:18 -05:00
Ali Rizvi-Santiago
0f10032b3d
Moved the progress bar from common to the packer.UI interface and refactored it so that the terminal width is calculated based on each interface which returns a custom progressbar specific to its ui.
2018-08-20 21:55:18 -05:00