Commit Graph

906 Commits (774a168957f14cedc2dd67b9bb2ea329fcd5d294)

Author SHA1 Message Date
Moss 7fbbbffd5c Interpolate file provisioner and add integration tests
6 years ago
Moss 6c06a2a048 Fix format
6 years ago
Moss a3740bb9be Interpolate shell inline config
6 years ago
Wilken Rivera e1a46ec293
Fix gosimple S1025 linting errors (#8838)
6 years ago
Sylvia Moss ce674ff272
Add exclude mapstructure tag to exclude from hcl2spec struct (#8785)
6 years ago
Paschalis Tsilias beca6de71b Add packer.ExpandUser() function to support tilde in usage of config.ValidationKeyPath (#8657)
6 years ago
nywilken b80882f3b8 provisioner/shell: Fix envVarFile clean up issue
6 years ago
Megan Marsh 4b9568e409 fix winrmpass sanitization to account for empty string value.
6 years ago
Megan Marsh 9eda2031d2 Remove redundant placeholder (#8503)
6 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Megan Marsh 0f6d1beccf add an extra string array to the Prepare() return values in the builder interfaces; this sets up the ability for builders to give the provisioners custom user-accessible build-time variables.
6 years ago
Megan Marsh 82367a88f8 reorganize placeholder data call to live with provisioner implementation; force users to use the generated function, therefore forcing validation, for all variables except winrmpassword, by doing a simple string check against the placeholder data.
6 years ago
Megan Marsh 3389d843f0 update all provisioners that used the winrmpassword tooling to use the new generateddata option
6 years ago
Megan Marsh b2012c7ff3 fix tests
6 years ago
Megan Marsh 39fd462b56 change all provision func signatures to use map[string]interface{}
6 years ago
Megan Marsh 0ca7c9f397 fix tests
6 years ago
Megan Marsh 6f418d0e54 get data sharing to a working state with the powershell provisioner
6 years ago
Megan Marsh f4c3501af5 pass struct of generated data into provision() call
6 years ago
Megan Marsh 822aa02500
Merge pull request #8468 from pfuender/master
6 years ago
pfuender ffb9272fb2 adding version-override for chef-client provisioner
6 years ago
Wilken Rivera b79986c3c5
Merge pull request #8411 from kevingunn-wk/fix_8410
6 years ago
Kevin Gunn 70aa0516de reset ansible-local documentation to include galaxy_command
6 years ago
Kevin Gunn 28d1037864 change galaxycommand to galaxy_command and add fixer
6 years ago
Megan Marsh 7d4353864f use shell struct in shell-local provisioner and post-processor.
7 years ago
Megan Marsh ad34a4551b provisioner/windows-restart: revert sleep hack now that we've fixed the underlying bug in #8369 (#8377)
7 years ago
nywilken 3522e13b1e provisioner/shell: Add `env_var_format` support to shell provisioner
7 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
7 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme 193d3e6bbd provisioner.windows-shell: demove duplicate ExecuteCommand field
7 years ago
Lars Lehtonen 9c19cfdc6f
provisioner/shell: fix dropped error
7 years ago
Lars Lehtonen bd01d0d3c3 provisioner/inspec: Fix dropped error
7 years ago
Lars Lehtonen b207752883 provisioner/ansible: Fix dropped error
7 years ago
Ruben Tsirunyan 1b35c586ce Changes to roles_path option
7 years ago
Ruben Tsirunyan d247329599 Adding support for installing roles with ansible-galaxy for ansible provisioner
7 years ago
Megan Marsh 0f704fb5b2 These cancel functions have been obsolete since merge of c7ce4d598e
7 years ago
Stefan Scherer 35dae5791c
Use --input-file instead of --attrs.
7 years ago
David Hao c6a471d149 [Salt] Replace scp with scp + mv to handle non-root case
7 years ago
David Z Hao 1d4750a2d9
DisableSudo, not PreventSudo
7 years ago
David Z Hao ea238b66c0
Make salt-masterless provisioner respect disable_sudo directive for all commands
7 years ago
Megan Marsh 6982ec796f remove redundant error check
7 years ago
Megan Marsh 6dcff18d36 prevent nil pointer dereference by defining IsUserAuthority. This occurred as a regression when we updated the crypto library in v1.4.0
7 years ago
Megan Marsh de7106c36b
Merge pull request #7696 from hashicorp/go_generate_from_makefile
7 years ago
Megan Marsh 4bf75ac0f3 fix null file descriptor error
7 years ago
Adrien Delorme abd6eda6c9 generate execution policy from makefile
7 years ago
Megan Marsh 1204213516
Merge pull request #7678 from hashicorp/docker_windows_defaults
7 years ago
Megan Marsh 6f560bef0a
Merge pull request #7653 from aaronwalker/chef_license_acceptance
7 years ago
Adrien Delorme 478f80af83 remove unused func
7 years ago
Adrien Delorme 7005958155 execution policy: make everything more idiomatic
7 years ago
Adrien Delorme e62aba3788 allow to set ExecutionPolicy to none for powershell provisioner
7 years ago
Adrien Delorme e96409954a add execution policy type and use it to default the powershell cmd
7 years ago
Aaron Walker 85b8a654b0 only sets default value for chef license when installing chef and the install command is not set
7 years ago
Paul Meyer 814665fddd Check error returned from retry.Config.Run()
7 years ago
Paul Meyer ec14ab4875 Add unit test to find issue #7655
7 years ago
Aaron Walker dfc5e5cf94 adds support for accepting the chef license
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme 2b06d74019 add a sleep provisioner
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
7 years ago
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Adrien Delorme 82c4b76639 [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method
7 years ago
Adrien Delorme c7ce4d598e change Provisioner to be passed a context for cancellation
7 years ago
Megan Marsh 0e6c779a88 allow user to access env_var_format in windows_shell call
7 years ago
Adrien Delorme 5a6dffde9a use port as ints
7 years ago
Adrien Delorme a77ce59e36 Update provisioner_test.go
7 years ago
Adrien Delorme 72e5ae9ddc use ValidExitCode in provisioners windows-shell, powershell and shell
7 years ago
Adrien Delorme 30a65c858a regroup shell provisioner params into a common struct
7 years ago
Adrien Delorme 8fea9439f8 windows-shell provisioner: allow to pass ValidExitCodes
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
xinau b449af84ee moved concurrency-safe ui code to packer/ui.go
7 years ago
xinau ae59b81f44 added check for docker backend
7 years ago
xinau 36c1e8d838 moved adapter to common package
7 years ago
xinau 8526244285 changed local_port to uint representation
7 years ago
xinau c207451f7e Merge branch 'master' of https://github.com/hashicorp/packer into packer-provisioner-inspec
7 years ago
pauloj95 b1fffee614
Update guest_commands_test.go
7 years ago
pauloj95 b4d1c77cc0
Update guest_commands_test.go
7 years ago
pauloj95 d7b93aa343
add force to guestcommands test too
7 years ago
pauloj95 8d8b880ac4
add force to powershell move command
7 years ago
Rickard von Essen 52b55fb899
ansible: change local_port to uint instead of string
7 years ago
xinau f5b13e3cb5 added inspec.io provisioner
7 years ago
Adrien Delorme 9f7b4ffc17
Merge branch 'master' into pr/6950
7 years ago
Megan Marsh 5c2da6b816 fix destination pathing so that it doesnt break on windows
7 years ago
Megan Marsh 70c6fcb824
Merge pull request #7078 from aspectcapital/issue-5478
7 years ago
mr-karan 01cdd18fd3 feat(provisioner/ansible): Provide extra SSH args
7 years ago
Matt Dainty 451709b956 Elevated support for chef-client provisioner
7 years ago
Megan Marsh d5854a9574 add option to test registry for certain keys to make sure windows is done with a reboot cycle
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Matt Dainty 19bd28cd72 Fix/add tests
7 years ago
Matt Dainty 2e4b00f59d Refactor powershell provisioner
7 years ago
Matt Dainty a42f8fac4d Elevated support for puppet-masterless provisioner
7 years ago
Adrien Delorme 2283efff79
Merge pull request #7071 from aspectcapital/ignore-pending-reboots
7 years ago
Matt Dainty 0192289d68 Drop exit code 1717
7 years ago
Matt Dainty 11be4ffc4b Attempt at generalising elevated support
7 years ago
Megan Marsh e69391f28b save users some bash scripting by exposing IP and port separately as well as together
7 years ago
Matt Dainty a7b407eab6 Naive support for elevated support for puppet-server provisioner
7 years ago
Matt Dainty 5fed453047 Ignore an already-scheduled reboot
7 years ago
Megan Marsh fa6eb3fdea reverts 406bf9c4aad7c925c3f5a837fe7f9c71169af098; this was incorrect interpretation of the intent of the inventoryDirectory template option
7 years ago
Megan Marsh 8a7ec456f1 use error groups so we can return errors
8 years ago
Megan Marsh e6477d13fb fix empty return
8 years ago
Megan Marsh a93721c54d add disable option to breakpoint provisioner
8 years ago
Megan Marsh ba25e68fe0 add a new breakpoint provisioner
8 years ago
Matt Dainty 412119c27e Fix powershell provisioner tests
8 years ago
Matt Dainty 3b519acebc Allow Powershell provisioner to use service accounts
8 years ago
Adrien Delorme 56fd98552e
removed space
8 years ago
Mark Meyer 31afd1c2f8 Add PauseAfter option to shell provisioner
8 years ago
Adrien Delorme 7c63c322c7 make provisioner/ansible/provisioner_test.go invisible to windows
8 years ago
Megan Marsh 1d1729a5ff fix powershell tests to use new command
8 years ago
Megan Marsh a81d18cdab explicitly use set-variable to work around a bug some users saw where the command invocation would vail
8 years ago
Poddo 72391f8f4d
Update provisioner.go
8 years ago
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
8 years ago
Megan Marsh 3f8407d95f Revert "Merge pull request #6700 from hashicorp/multi_progressbar"
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 bb59a70e8f progressbar: use int64 instead of uint64
8 years ago
Adrien Delorme 5b66069da0 tests: remove Ui stubs to use packer.NoopUi to deduplicate code
8 years ago
Adrien Delorme 7efe3cac3d todos
8 years ago
Adrien Delorme 9b07d7670e use no ops for ansible ui & MachineReadableUi
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 61480f41dc fix some go vet issues in tests ( composite literal uses unkeyed fields )
8 years ago
Megan Marsh 266a48a73a minor fixes for shell provisioner docs and logging
8 years ago
Megan Marsh ab13c73277 make varfile name unique and make sure to remove it from guest system if cleanup is true.
8 years ago
Megan Marsh 2c9a205f11 update shell provisioner tests
8 years ago
Megan Marsh cce13e3877 shell provisioner: add option to source env vars from a file
8 years ago
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
Megan Marsh c51cd751d1 go back to using StartWithUI to prevent weird hangs during windows reboot
8 years ago
Megan Marsh 1f79b430ee
Merge pull request #6610 from hashicorp/filter_logs
8 years ago
Megan Marsh c1b50d365b
Merge pull request #5851 from arizvisa/multi-proto-progressbar
8 years ago
Megan Marsh 9fa47f5dad make windows restart provisioner work with ssh communicator
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
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Megan Marsh eb685b7140 remove duplicate code from chef provisioner
8 years ago
Megan Marsh a5a6b1ab58
Merge pull request #6501 from Wenzel/expose_ansible_packer_http_addr
8 years ago
Megan Marsh e146973d08 change implementation to set winrm password in way that matches powershell and shell-local implementations; sanitize logs
8 years ago
Mathieu Tarral 3450b6fd6f ansible: expose packer_http_addr extra var
8 years ago
Levi 6646d42490 updated function calls to include buildname and changed variable names
8 years ago
Levi 68ec630fde added function to retreive winrm password from commonhelper
8 years ago
Levi 636cec8f2b added commonhelper import
8 years ago
Levi 37fd50995f added parameter for setting packer password as env variable
8 years ago
DanHam 485d565e32
Ensure comments are easily readable in a standard terminal
8 years ago
DanHam e0bcba4913
Make the upload of env vars retryable in case of restarts
8 years ago
localghost e1a1bb522d Merge remote-tracking branch 'origin/master' into ansible_local_playbook_files_update
8 years ago
localghost 263a3c6910 Include some of the refactoring reverted by previous revert commit.
8 years ago
localghost 46a1c5d945 Revert "Unify handling PlaybookFile and PlaybookFiles."
8 years ago
M. Marsh 62e1323577
Merge pull request #5956 from hashicorp/dedupe_shell_local
8 years ago
localghost 6c7aa724eb Fix tests after merging with master.
8 years ago