Commit Graph

997 Commits (dev_version_changes)

Author SHA1 Message Date
Larry 0bcf4f2613
Update provisioner.hcl2spec.go
6 years ago
Larry 20472bc12f
Update provisioner_test.go
6 years ago
Larry f4a2838716
Added Tests for AnsibleSSHExtraArgs
6 years ago
Larry 7cb17f64a6
Added AnsibleSSHExtraArgs
6 years ago
Adrien Delorme f28c06a861
HCL: re-add the option to set a command for inspec (#9800)
6 years ago
Megan Marsh d3f48622a3
Merge pull request #9726 from acornies/feature/salt-masterless-formulas
6 years ago
Andrew Cornies bde75c9a96 Updated implementation to go-getter/v2
6 years ago
Megan Marsh d826711e7a
File provisioner docs (#9735)
6 years ago
Andrew Cornies a704e1b6b1 Updated formula regexp to support ?ref= syntax.
6 years ago
Megan Marsh 03220c0b94 fix linting.
6 years ago
Maxim Lobanov dd2927f871 fix bug with copying a few files in order
6 years ago
Andrew Cornies 24739270cf Added Prepare tests around formula URLs
6 years ago
Maxim Lobanov cf999e07db fix formatting
6 years ago
Maxim Lobanov cdd33d3ff2 proceed with next files when copy directory
6 years ago
Andrew Cornies a2ea308881 URL format error checking
6 years ago
Andrew Cornies ab52d83fb0 Functional download of formulas using gogetter
6 years ago
Megan Marsh b52143f528 update docs for command and make sure they get generated properly so they appear in the docs
6 years ago
Vladislav Rassokhin 2ac9f5a276 Fixup for #8883: interpolate in file provisioner
6 years ago
Artem Zavatskiy bec367347d ansible-provisioner: fix tests related to ssh agent
6 years ago
Artem Zavatskiy c0048daed5 fix agent auth in ssh communicator for ansible provisioner (#9488)
6 years ago
Megan Marsh 8fc4e03139
quote packer build name to handle names with spaces (#9590)
6 years ago
Sylvia Moss 3dc7a53125
Correct check if PackerHttpAddr is implemented or not (#9498)
6 years ago
Simon Jones 45f81893b9 RunWithUI already calls Wait on the command
6 years ago
Simon Jones aaa913a484 RunWithUi sets appropriate default for stderr buffer
6 years ago
Megan Marsh b5b8f2e308
add template option for templating the inventory file lines (#9438)
6 years ago
Megan Marsh 3d7c9cb9c2
make ansible provisioner docs generated from code (#9439)
6 years ago
Wilken Rivera d72173ac1a Revert "Merge pull request #9040 from hashicorp/powershell-exit-code-fix-4916"
6 years ago
Megan Marsh 9699af4dee
Merge pull request #9350 from gamethis/fix_ansiblepassword
6 years ago
Lane, Larry 5976929595 Fix for #9283
6 years ago
Søren Hansen 19e4afa728
provisioner/windows-restart: Get full hostname, instead of just the NetBIOS name. (#9335)
6 years ago
Adrien Delorme 40947c2bf6
HCL2: generate hcl tags with go-cty tags too (#9306)
6 years ago
Megan Marsh 077d34f12c
Merge pull request #9279 from gamethis/fix_arg_order
6 years ago
Adrien Delorme a2e9439ee6
provisioner/salt-masterless: ignore the CmdArgs field in hcl2 (#9290)
6 years ago
Wilken Rivera 1e90165a56
Add source URL to test fixture script (#9296)
6 years ago
Megan Marsh fecb040bf4
fix bug where build vars couldn't be properly interpolated into this execute command (#9275)
6 years ago
Lane, Larry f4254e9cbf updated test
6 years ago
Lane, Larry c689eb9694 added test
6 years ago
Lane, Larry de12432e6b add test
6 years ago
Lane, Larry e6670fc4a0 fix arg order
6 years ago
Wilken Rivera 2e326ef334 Switch back to call operator as opposed to dot sourcing
6 years ago
Wilken Rivera 38f799df3e Add conditional to check if LastExitCode is defined
6 years ago
Wilken Rivera 35df3914d2 provisioner/powershell: Update default execute command to handle script errors
6 years ago
Wilken Rivera 13e0c1a097 tests/provisioner/powershell: Add acceptance test to reproduce issue 4916
6 years ago
Sylvia Moss be9dbaacd7
Interpolate generatedData in the Inspec provisioner (#9262)
6 years ago
Sylvia Moss 1c30a71d09
Replace file shared state by statebag (#9238)
6 years ago
Wilken Rivera c330d2f04c provisioner/powershell: Update cleanup logic
6 years ago
Lars Lehtonen 7440c2e6ba
provisioner/windows-shell: remove unused testObjects() (#9116)
6 years ago
DamianBis b679f61536
Update to make NoExitOnFailure work correctly. (#9119)
6 years ago
Matt Kotsenas fe55494207
Add `debug_mode` to PowerShell provisioner (#8996)
6 years ago
Sylvia Moss 553b1fb9f8
Add RetriedProvisioner to allow retry provisioners (#9061)
6 years ago
Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
6 years ago
Megan Marsh 73c349d09c
Merge pull request #8908 from hashicorp/fix_4795
6 years ago
Lars Lehtonen 49f28c9439
provisioner/powershell: fix dropped error
6 years ago
Wilken Rivera 4a46d6ff7b docs/provisioner/powershell: Add documentation for `skip_clean` option
6 years ago
Wilken Rivera fe721d8e11 test/provisioner/powershell: Add acceptance test for powershell provisioner cleanup
6 years ago
Wilken Rivera 91c8afda8e provisioner/elevated: Add cleanup logic to remove elevated user scheduled task artifacts
6 years ago
Wilken Rivera 11db6014fa provisioner/powershell: Update remote clean up logic
6 years ago
Wilken Rivera f6a61e2511 provisioner/powershell: Add post clean up step to remove temp script files
6 years ago
Wilken Rivera 1eee0bca5f
Merge pull request #9011 from hashicorp/powershell-acceptance-test
6 years ago
Megan Marsh bdcc95f989
fix execution policy parser to not interfere with legit integers, and add tests (#8997)
6 years ago
Lars Lehtonen 78bb742aa5
provisioner/shell: fix dropped test error
6 years ago
Wilken Rivera 360f81b030 tests/provisioners: Add TestProvsionerPreCheck function
6 years ago
Moss 185deeeb38 Fix provisioner acc-test builder and provisioner store
6 years ago
Wilken Rivera b183c5498f provisioner/powershell: Add basic Powershell provisioner acceptance tests
6 years ago
Megan Marsh b804e5a8f5
Merge pull request #8987 from VaijanathB/azure-devtestlabs-take2
6 years ago
Megan Marsh 8840b4a830
Merge pull request #8625 from hashicorp/remove_ansible_proxy
6 years ago
Sylvia Moss 665330de92
Write generic Builder-Provisioner acceptance test logic (#8963)
6 years ago
Vaijanath Angadihiremath b7d85b8a23 Added acceptance tests for DTL. Fixed couple of issues with DTL root resource group not set to new directory
6 years ago
Vaijanath Angadihiremath 69015b1870 Fixing the linting errors
6 years ago
Vaijanath Angadihiremath e726902116 Fixing the latest changes from the merge
6 years ago
Vaijanath Angadihiremath 645cdf1a59 Updating the modules to include update to autorest 12.4
6 years ago
Megan Marsh b66e49223d extract the building of command args into a testable helper function
6 years ago
Megan Marsh 91906b688c regenerate code
6 years ago
Megan Marsh 73c87044fd fix tests
6 years ago
Megan Marsh 64b706983e docs and cleanup
6 years ago
Megan Marsh d45ffe73d0 fix default ssh-extra-args flag
6 years ago
Megan Marsh d57809bcda pass ansible_password on command line instead of inside inventory file
6 years ago
Megan Marsh eda9ce70e7 update tests
6 years ago
Megan Marsh 9a40403433 clean up tests
6 years ago
Megan Marsh e155d2a1c8 add mock so we can test full provision flow
6 years ago
Megan Marsh 6c756a7b31 fix tests
6 years ago
Megan Marsh 19d49f8b78 templatize inventory files; implement inventory for winrm
6 years ago
Megan Marsh ca5814ab74 move proxy behind feature flag
6 years ago
Adrien Delorme b94937c05c
Update provisioner_test.go (#8900)
6 years ago
Adrien Delorme 569c802630 Update provisioner_test.go
6 years ago
Adrien Delorme f1c0a9cdbd see what's wrong with that weird test
6 years ago
Moss 112d4daa3d Fix linter
6 years ago
Moss 5a8c628880 Add acc test validation to avoid running with unit tests
6 years ago
Moss 3f49b7c66e Fix linter
6 years ago
Moss 0cc1092222 Fix format
6 years ago
Moss 2ca6804827 Move shell prov acc test to the same folder
6 years ago
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