Matt Dainty
|
451709b956
|
Elevated support for chef-client provisioner
Fixes #4661
|
2018-12-13 10:25:12 +00:00 |
|
Megan Marsh
|
d5854a9574
|
add option to test registry for certain keys to make sure windows is done with a reboot cycle
|
2018-12-12 12:52:14 -08:00 |
|
 Adrien DelormeandMatthew Patton
|
b7222d1f56
|
Add tmp package that offers Dir & File funcs
this regroups the calls of tmp func calls into one package.
the tmp pkg allows to store tmp files under a common directory for easier managment
Squashed commit of the following:
commit 74b674c015
Merge: fc94b5714 66001525d
Author: Matthew Patton <[email protected]>
Date: Fri Nov 2 02:02:38 2018 -0400
Merge branch 'remove_TMPDIR_docs' of github.com:tb3088/packer into remove_TMPDIR_docs
commit fc94b57142
Author: Matthew Patton <[email protected]>
Date: Fri Nov 2 01:42:38 2018 -0400
update tests to honor configured temporary directory
commit 5a562359f4
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 18:52:38 2018 -0400
sync straggler to refactor. implement tests at packer/configfile instead of buried in docker.
commit 9d5a4a0935
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 15:39:46 2018 -0400
insert URL to GoLang API for os.TempDir()
commit fbae4c2e05
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 07:41:29 2018 -0400
revise documentation to match code
commit 3590fae8bd
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 07:21:59 2018 -0400
refacter config_file. replace all hard-coded os.TempDir with wrapper
commit d5c5306a97
Author: Matthew Patton <[email protected]>
Date: Wed Oct 31 20:11:36 2018 -0400
close massive file overwrite hole with TempDir
commit 0a72297da8
Author: Matthew Patton <[email protected]>
Date: Wed Oct 31 01:06:00 2018 -0400
adjust var declaration scope
commit 20f68228b6
Author: Matthew Patton <[email protected]>
Date: Wed Oct 31 00:54:35 2018 -0400
use mktemp() equivalent to create temporary directory
commit c73ebe3d83
Author: Matthew Patton <[email protected]>
Date: Tue Oct 30 20:40:58 2018 -0400
remove extraneous variable declaration, fix FOR loop
commit 63549b8bd7
Author: Matthew Patton <[email protected]>
Date: Tue Oct 30 19:30:44 2018 -0400
match styistic convension with rest of docs
commit 9761010749
Author: Matthew Patton <[email protected]>
Date: Tue Oct 30 19:08:39 2018 -0400
revert dangling config file change
commit 95159afbc0
Author: Matthew Patton <[email protected]>
Date: Fri Dec 29 23:53:43 2017 -0500
replace invalid TMPDIR variable wth PACKER_TMP_DIR.
update ConfigTmpDir() to try common temporary paths first and
only write to configDir() as a last resort.
commit 66001525d7
Author: Matthew Patton <[email protected]>
Date: Fri Nov 2 01:42:38 2018 -0400
update tests to honor configured temporary directory
commit e9b6adefea
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 18:52:38 2018 -0400
sync straggler to refactor. implement tests at packer/configfile instead of buried in docker.
commit 852113ed07
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 15:39:46 2018 -0400
insert URL to GoLang API for os.TempDir()
commit 54add38d1d
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 07:41:29 2018 -0400
revise documentation to match code
commit 6b5b8f6d4e
Author: Matthew Patton <[email protected]>
Date: Thu Nov 1 07:21:59 2018 -0400
refacter config_file. replace all hard-coded os.TempDir with wrapper
commit c22092c601
Author: Matthew Patton <[email protected]>
Date: Wed Oct 31 20:11:36 2018 -0400
close massive file overwrite hole with TempDir
commit 7a73045091
Author: Matthew Patton <[email protected]>
Date: Wed Oct 31 01:06:00 2018 -0400
adjust var declaration scope
commit 0f2933adb6
Author: Matthew Patton <[email protected]>
Date: Wed Oct 31 00:54:35 2018 -0400
use mktemp() equivalent to create temporary directory
commit d74839ede0
Author: Matthew Patton <[email protected]>
Date: Tue Oct 30 20:40:58 2018 -0400
remove extraneous variable declaration, fix FOR loop
commit eb65416619
Author: Matthew Patton <[email protected]>
Date: Tue Oct 30 19:30:44 2018 -0400
match styistic convension with rest of docs
commit acaa2b31ed
Author: Matthew Patton <[email protected]>
Date: Tue Oct 30 19:08:39 2018 -0400
revert dangling config file change
commit e573fde668
Author: Matthew Patton <[email protected]>
Date: Fri Dec 29 23:53:43 2017 -0500
replace invalid TMPDIR variable wth PACKER_TMP_DIR.
update ConfigTmpDir() to try common temporary paths first and
only write to configDir() as a last resort.
commit 39a9874afc
Merge: 8a413cfe8 3315812c2
Author: Matthew Patton <[email protected]>
Date: Tue Oct 30 18:19:26 2018 -0400
Merge branch 'master' of https://github.com/hashicorp/packer into prestine
commit 8a413cfe83
Merge: e07491de5 4e14710a6
Author: Matthew Patton <[email protected]>
Date: Mon Oct 1 20:18:10 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit e07491de59
Merge: 42610a35d a1fa35dff
Author: Matthew Patton <[email protected]>
Date: Tue Aug 21 13:26:19 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 42610a35d5
Merge: 5298142da 0d63cf7bc
Author: Matthew Patton <[email protected]>
Date: Tue Jun 19 22:45:05 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 5298142da6
Merge: 7bb110bc7 9d9736552
Author: Matthew Patton <[email protected]>
Date: Mon Jun 11 15:10:09 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 7bb110bc74
Merge: a61c869ca 6189d66e7
Author: Matthew Patton <[email protected]>
Date: Wed May 9 23:41:22 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit a61c869ca7
Merge: 098101dd9 4be5f072c
Author: Matthew Patton <[email protected]>
Date: Fri May 4 10:13:04 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 098101dd99
Merge: fefaf0fa6 554b2b4a5
Author: Matthew Patton <[email protected]>
Date: Tue May 1 20:52:30 2018 -0400
Merge branch 'EOL-handling' into prestine
Co-Authored-By: Matthew Patton <[email protected]>
|
2018-12-12 16:35:57 +01:00 |
|
Matt Dainty
|
19bd28cd72
|
Fix/add tests
|
2018-12-07 16:23:03 +00:00 |
|
Matt Dainty
|
2e4b00f59d
|
Refactor powershell provisioner
Use the common elevated code instead.
|
2018-12-07 15:30:50 +00:00 |
|
Matt Dainty
|
a42f8fac4d
|
Elevated support for puppet-masterless provisioner
This should fix #5478.
|
2018-12-07 11:08:11 +00:00 |
|
Adrien Delorme
|
2283efff79
|
Merge pull request #7071 from aspectcapital/ignore-pending-reboots
Ignore an already-scheduled reboot
|
2018-12-07 11:03:55 +01:00 |
|
Matt Dainty
|
0192289d68
|
Drop exit code 1717
|
2018-12-07 09:45:50 +00:00 |
|
Matt Dainty
|
11be4ffc4b
|
Attempt at generalising elevated support
Refactor puppet-server provisioner to use it.
|
2018-12-06 18:00:22 +00: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 |
|
Matt Dainty
|
a7b407eab6
|
Naive support for elevated support for puppet-server provisioner
This commit just lifts the various bits out of the powershell
provisioner.
|
2018-12-06 15:09:57 +00:00 |
|
Matt Dainty
|
5fed453047
|
Ignore an already-scheduled reboot
If the previous provisioner already scheduled a reboot don't error we
can't schedule another one.
|
2018-12-05 15:43:22 +00:00 |
|
Megan Marsh
|
fa6eb3fdea
|
reverts 406bf9c4aad7c925c3f5a837fe7f9c71169af098; this was incorrect interpretation of the intent of the inventoryDirectory template option
|
2018-12-03 16:08:47 -08:00 |
|
Megan Marsh
|
8a7ec456f1
|
use error groups so we can return errors
|
2018-11-30 10:46:40 -08:00 |
|
Megan Marsh
|
e6477d13fb
|
fix empty return
|
2018-11-29 15:22:26 -08:00 |
|
Megan Marsh
|
a93721c54d
|
add disable option to breakpoint provisioner
|
2018-11-29 15:09:14 -08:00 |
|
Megan Marsh
|
ba25e68fe0
|
add a new breakpoint provisioner
|
2018-11-29 14:32:52 -08:00 |
|
Matt Dainty
|
412119c27e
|
Fix powershell provisioner tests
|
2018-11-09 14:26:21 +00:00 |
|
Matt Dainty
|
3b519acebc
|
Allow Powershell provisioner to use service accounts
Fixes #6104
|
2018-11-08 11:48:27 +00:00 |
|
Adrien Delorme
|
56fd98552e
|
removed space
|
2018-10-24 15:49:49 +02:00 |
|
Mark Meyer
|
31afd1c2f8
|
Add PauseAfter option to shell provisioner
Closes #6540
|
2018-10-24 14:04:08 +02:00 |
|
Adrien Delorme
|
7c63c322c7
|
make provisioner/ansible/provisioner_test.go invisible to windows
|
2018-10-16 18:40:07 +02:00 |
|
Megan Marsh
|
1d1729a5ff
|
fix powershell tests to use new command
|
2018-10-12 09:54:27 -07:00 |
|
Megan Marsh
|
a81d18cdab
|
explicitly use set-variable to work around a bug some users saw where the command invocation would vail
|
2018-10-12 09:15:12 -07:00 |
|
Poddo
|
72391f8f4d
|
Update provisioner.go
Remove extra break statement that made it's way into the "reboot pending" loop when some logic was rearranged in https://github.com/hashicorp/packer/commit/9fa47f5dad3a319d9987770853db9917853cf2f1#diff-8bb0a16231863cd1487dd9a3d3792565
|
2018-10-03 00:54:31 -05:00 |
|
Megan Marsh
|
7597f609b1
|
update winrmcp vendor and update error message in file provisioner to aid user who messes up file path name. update file provisioner docs
|
2018-09-21 14:51:32 -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 |
|
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
|
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
|
5b66069da0
|
tests: remove Ui stubs to use packer.NoopUi to deduplicate code
|
2018-09-06 15:53:59 +02:00 |
|
Adrien Delorme
|
7efe3cac3d
|
todos
|
2018-09-06 15:53:59 +02:00 |
|
Adrien Delorme
|
9b07d7670e
|
use no ops for ansible ui & MachineReadableUi
|
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
|
61480f41dc
|
fix some go vet issues in tests ( composite literal uses unkeyed fields )
|
2018-08-31 11:54:12 +02:00 |
|
Megan Marsh
|
266a48a73a
|
minor fixes for shell provisioner docs and logging
|
2018-08-30 14:36:14 -07:00 |
|
Megan Marsh
|
ab13c73277
|
make varfile name unique and make sure to remove it from guest system if cleanup is true.
|
2018-08-30 11:02:56 -07:00 |
|
Megan Marsh
|
2c9a205f11
|
update shell provisioner tests
|
2018-08-29 11:10:49 -07:00 |
|
Megan Marsh
|
cce13e3877
|
shell provisioner: add option to source env vars from a file
|
2018-08-29 11:10:49 -07:00 |
|
Megan Marsh
|
b35acbd879
|
use statebag instead of SetSharedState for winRM password
|
2018-08-24 13:51:16 -07:00 |
|
Megan Marsh
|
c51cd751d1
|
go back to using StartWithUI to prevent weird hangs during windows reboot
|
2018-08-23 16:15:50 -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
|
c1b50d365b
|
Merge pull request #5851 from arizvisa/multi-proto-progressbar
Add progress-bar to common/step_download.go
|
2018-08-21 15:08:22 -07:00 |
|
Megan Marsh
|
9fa47f5dad
|
make windows restart provisioner work with ssh communicator
|
2018-08-21 11:45:18 -07: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 |
|
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".
|
2018-08-20 21:55:18 -05:00 |
|
Megan Marsh
|
ff6a039d5b
|
replace scrubconfig with packer.LogSecretFilter.Set
filter winrm password from logs
Add new root-level packer template option, sensitive-variables, to tell us what user variables to mark sensitive.
|
2018-08-20 15:35:55 -07:00 |
|