Commit Graph

388 Commits (f088ab6d44ccf58dfd464e237aa687ded8a897f9)

Author SHA1 Message Date
Megan Marsh 5470c08345
Merge pull request #6700 from hashicorp/multi_progressbar
8 years ago
Megan Marsh 38cc525ec7 new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
8 years ago
Adrien Delorme dfeca9f0df split progressbars per object
8 years ago
Megan Marsh a0edaf6c46 Going to revert this change for now, becuase of potential issues that arise from calling Prepare() twice
8 years ago
Adrien Delorme 32cacad273 remove comment that is not true anymore
8 years ago
Adrien Delorme bb59a70e8f progressbar: use int64 instead of uint64
8 years ago
Adrien Delorme f9c58e2b1f download: defer progress bar Finish
8 years ago
Adrien Delorme 3842f85eb4 download: remove close calls that are already defered
8 years ago
Adrien Delorme 23762a1810 fix tests for common/download_test.go
8 years ago
Adrien Delorme 7f50228080 remove old/unused progress code
8 years ago
Adrien Delorme 059e14fe42 put back usefull debug
8 years ago
Adrien Delorme a11f985e3c revert unecessary check
8 years ago
Adrien Delorme a9d302def8 removed debug logs
8 years ago
Adrien Delorme 541c68aed5 add StackableProgressBar struct that will refresh/show dl status for multiple files
8 years ago
Adrien Delorme fd7cb47adc use proxy reader for download progress & stop storing total/current in downloaders
8 years ago
Adrien Delorme ddd96c513b first draft at self refreshing loading bar centralized/controlled by Ui
8 years ago
Adrien Delorme 5a8af5500b random: optimize allocation & simplify loop
8 years ago
Adrien Delorme 4682b3a9d2 refactor possible random strings into common/random
8 years ago
Adrien Delorme 170b2f3383 builder/azure/common.RandomString-> common/random.String
8 years ago
Adrien Delorme 9cefd69f0d
change progress bar display rate to 5s to reduce 'spamminess' (#6640)
8 years ago
Megan Marsh 8309f36176
Merge pull request #6626 from hashicorp/fix_6620
8 years ago
Matthew Hooker 7519037562
Merge pull request #6629 from hashicorp/travisbuild
8 years ago
Matthew Hooker 8a604114ef
remove unused code
8 years ago
Matthew Hooker 3f1a9766f4
formatting verb fixes for go 1.11
8 years ago
Megan Marsh c5b346b07b
Merge pull request #6393 from DanHam/fix-hyperv-export
8 years ago
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
Megan Marsh f5355a0693 make reasonable tempfile default on windows
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Megan Marsh 1f79b430ee
Merge pull request #6610 from hashicorp/filter_logs
8 years ago
Megan Marsh 31d4f8af45 use a time.Duration instead of a hardcoded ms
8 years ago
Megan Marsh 918db58604 added new template variables to replace PACKER_KEY_INTERVAL with tunable key and keygroup intervals depending on driver used
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
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.
8 years ago
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.
8 years ago
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.
8 years ago
Ali Rizvi-Santiago fd2fef8738 Added support for the progress bar to automatically determine its width using the minimum length from a packer.UI and the terminal dimensions via kernel32.GetConsoleScreenBufferInfo or an ioctl (TIOCGWINSZ) to "/dev/tty".
8 years ago
Ali Rizvi-Santiago 16ecb3ad9a Reverted removal of progress-bar that was done by commit 5d97b105a8 and added some missing arguments that were missed during the rebase. Modified the default progress bar's width to 80 as a result of the conversation on PR #5851.
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Adrien Delorme a5587e30ec log wether the file was transfered or is just being inplace referenced
8 years ago
Adrien Delorme 6b3844a64f
Revert "allow to use ISO images in-place v.s. copying them"
8 years ago
Adrien Delorme c744e8b2bb make download messages less redudant and more simple
8 years ago
Adrien Delorme d7d4aed51c be even more precise
8 years ago
Adrien Delorme 2b3ea29970 show more precise error download/copy/referencing messages
8 years ago
Adrien Delorme fae3db4e58 test inplace linking
8 years ago
Adrien Delorme 17f2949e36 remove stuttering; ISOConfig.InplaceISO -> Inplace
8 years ago
Adrien Delorme 863222b1e2 Also use the terminology Inplace in DownloadConfig for clarity/consistency
8 years ago
Adrien Delorme 82e480a285 allow to use ISO images inplace v.s. copying them
8 years ago
Ali Rizvi-Santiago 71e43d0b7f Updated common/download.go to handle when a connection error happens (response is nil), and reformatted the error that's returned when an HTTP error occurs.
8 years ago
Megan Marsh 5ef8b55559 need log import
8 years ago
Megan Marsh a2f5fbadf6 don't fail if you can't find abs or relative path.
8 years ago