Commit Graph

38 Commits (d-powershell-generated-docs)

Author SHA1 Message Date
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
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 39fd462b56 change all provision func signatures to use map[string]interface{}
6 years ago
Megan Marsh 7616fbcf3f skip shell local for now
6 years ago
Megan Marsh 6f418d0e54 get data sharing to a working state with the powershell provisioner
6 years ago
Megan Marsh a8ffa60b46 remove the already-included packer config from top level struct
6 years ago
Megan Marsh 7d4353864f use shell struct in shell-local provisioner and post-processor.
6 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme 7be94f41a6 common.shell-local: unexport Ctx field
7 years ago
Christian Muehlhaeuser 216afbaa8b
Fixed various typos
7 years ago
Megan Marsh a2c3de9396 remove outdated logline
7 years ago
Megan Marsh f9ceaee4f1 fix variable casing convention
8 years ago
Joel Vasallo 5d17b3de84 fix: config validator output
8 years ago
Joel Vasallo 23ad90f2c4 fix: condensed and simplified os check logic and added validate output
8 years ago
Joel Vasallo d408c9e69c fix: moved os check to entry of func
8 years ago
Joel Vasallo 0912adea34 fix: converted onlyon param to only_on and added validation step
8 years ago
Joel Vasallo 25c0b98363 feat: ability to specify runtime OSs where shell-local should run
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
Megan Marsh 8309f36176
Merge pull request #6626 from hashicorp/fix_6620
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 4a7953f93a found a config validation bug where packer crashes instead of throwing a validation error if a windows-style path is provided to a provisioner on linux
8 years ago
Megan Marsh 846f94c964 implement template variable for accessing WinRM password in either environemnt variables or directly in execute_command or inline commands.
8 years ago
Megan Marsh 969201a2d4 handle minor shell-local PR suggestions and corrections
8 years ago
Megan Marsh 1bea658e16 fix command and inline calls on windows
8 years ago
Megan Marsh fabd1a6517 windows cmd env vars
8 years ago
Megan Marsh dd183f22d9 update docs and add warnings around WSL limitations
8 years ago
Megan Marsh 51bcc7aa13 add new feature for telling shell-local whether to use linux pathing on windows; update docs with some examples.
8 years ago
Megan Marsh e983a94a88 fix default windows bash call for shell-local provisioner and move chmod command from the execute_command array into the portion of code where we actually generate inline scripts, sparing users the need to think about this modification which Packer should really handle on its own
8 years ago
Megan Marsh 854d6fb141 add tests making sure post-processor has backwards compatability
8 years ago
Megan Marsh f799003b66 tighten up shell-local config validation
8 years ago
Megan Marsh 479d36734d consolidate shell-local defaulting of InlineShebang and ExecuteCommand to the config validation
8 years ago
Megan Marsh d304234725 fix tests
8 years ago
Megan Marsh c7c66bedcb set inline to an empty array, rather than nil
8 years ago
Megan Marsh 926327beba deduplicate all validation and interpolation of the shell-local config, sharing options between shell-local provisioner and post-processor. Maintain backwards compatibility with shell-local provisioner.
8 years ago