Commit Graph

158 Commits (8ce3aae2f7f16c85a5465f922dcafe54090ed3e2)

Author SHA1 Message Date
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 078ba7c8c3 commit old code generation tool
7 years ago
Lars Lehtonen 9c19cfdc6f
provisioner/shell: fix dropped error
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme c7ce4d598e change Provisioner to be passed a context for cancellation
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 b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Megan Marsh e69391f28b save users some bash scripting by exposing IP and port separately as well as together
7 years ago
Adrien Delorme 56fd98552e
removed space
8 years ago
Mark Meyer 31afd1c2f8 Add PauseAfter option to shell provisioner
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 fbbcbd772b remove file stat
8 years ago
Matthew Hooker 732a532d0e
pass file info during shell file upload
8 years ago
Matthew Hooker ecad3348b3
rephrase log message.
9 years ago
Ohad Basan 33b85b0130 Add suggestion for "expected_disconnect" option if disconnection occurs
9 years ago
Matthew Hooker 75111e49e9
remove convoluted pointer logic
9 years ago
Megan Marsh 401c718a59 set default for ExpectDisconnect to false
9 years ago
Matthew Hooker 56979a1974
Revert "Universally provide POSIX semantics for the `shell` provisioner."
9 years ago
Sean Chittenden 1ba7f9cc20
Universally provide POSIX semantics for the `shell` provisioner.
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker 0149f679de
Print instead of Printf with no dynamic first variable.
9 years ago
DanHam e350739ecb
post-processor/shell-local: expand tests to align with shell provisioner
9 years ago
DanHam 4514b1b10f provisioner/shell: expand tests to align with powershell/win-shell
9 years ago
DanHam 0cbb4ff30c provisioner/shell: Align gen of flattened env vars with powershell/win-shell
9 years ago
Matthew Hooker 4e6a44f5f1
append will resize
9 years ago
Matthew Hooker 480398c3d2
only set PACKER_HTTP_ADDR if a server is listening
9 years ago
Matthew Hooker d2e59e4e92
set PACKER_HTTP_ADDR env var when available.
9 years ago
Matthew Hooker 12176b6afc
provisioner/shell: treat disconnects as retryable.
10 years ago
Matthew Hooker 892d5e82c9 expect_disconnect option
10 years ago
Matthew Hooker a8e57d83d2 gofmt project.
10 years ago
Ian Duffy 7e653370b7 Seperate remote_path into remote_folder and remote_script. (#3462)
10 years ago
Chris Bednarski 1f6749096a Restore missing interpolation after merging ansible remote; fixes #3138
10 years ago
Chris Bednarski 15f99a4aee Merge branch 'ansible-provisioner' of https://github.com/bhcleek/packer into f-ansible
10 years ago
David Zanetti 2668747c71 Rename noclean shell option to skip_clean, per pull feedback
11 years ago
David Zanetti 3d23655f2f Add "noclean" boolean to shell provisioner. This stops the provisioner from
11 years ago
Billie H. Cleek cc8ca3098e add ansible provisioner
11 years ago
Mitchell Hashimoto 7c8e86c9c5 provisioner/*: fix interpolation context
11 years ago
Mitchell Hashimoto 6ec428cc38 provisioner/shell: retry file delete [GH-2286]
11 years ago
Mitchell Hashimoto 4463083a60 provisioner/shell: randomize default script name
11 years ago
Mitchell Hashimoto 6c80228661 provisioner/shell: missing error arg
11 years ago
Mitchell Hashimoto a235419c7d provisioner/shell: remove file after exec [GH-1536]
11 years ago
Mitchell Hashimoto c549fce85e provisioner/shell: escape single quotes [GH-2067]
11 years ago
Mitchell Hashimoto 7830d78d06 provisioner/shell: fix tests
11 years ago
Mitchell Hashimoto b28f946be9 Merge pull request #2210 from mitchellh/b-set-e
11 years ago
Mitchell Hashimoto 3ed73852be provisioner/shell: set -e on the shebang itself
11 years ago
Mitchell Hashimoto a995df352e provisioner/shell: uploaded script should be 0755 [GH-1708]
11 years ago
Mitchell Hashimoto 952077ccb0 provisioner/shell: set -e for inline [GH-2069]
11 years ago
Mitchell Hashimoto 2b4df93f2f provisioner/*: interpolation
11 years ago
Mitchell Hashimoto 3eda0f33a0 provisioner/shell: quote PACKER env vars [GH-1565]
12 years ago
Josh Frye 5835ca42b4 Move quoting to else block only for valid vars. Add test case.
12 years ago
Josh Frye a667282e00 Single quote env var values.
12 years ago
Ross Smith II d92179847d provisioner/file: set file/directory permissions
12 years ago
Mitchell Hashimoto 9365b879c0 provisioner/shell: chmod uploaded file to 0777 [GH-994]
12 years ago
Mitchell Hashimoto ec41edf558 provisioner/shell: Split on first equal for env vars [GH-1045]
12 years ago
Mitchell Hashimoto 528ae09c37 provisioner/shell: comment on why we return right away if advance == 0
13 years ago
Mitchell Hashimoto f673ca52ba provisoiner/shell: append only needs to add a byte for UnixReader
13 years ago
Matthew Hooker 104f5049a7 provisioner/shell: fix EOF detection
13 years ago
Mitchell Hashimoto ff970483c4 provisioner/shell: add more tests for UnixReader
13 years ago
Matthew Hooker 0d1b936f69 Fix UnixReader panic on empty lines.
13 years ago
Jason A. Beranek b3d76b7945 provisioner/shell: fix provisioner to use UnixReader [GH-477]
13 years ago
Mitchell Hashimoto 89d165aae7 provisioner/shell: add another UnixReader test for sanity
13 years ago
Mitchell Hashimoto abbac36796 provisioner/shell: convert windows line endings to Unix [GH-277]
13 years ago
Mitchell Hashimoto 28bf6122bd provisioner/*: implement Cancel
13 years ago
Mitchell Hashimoto a46c7afcf7 provisioner/shell: retry the upload if command fails as well
13 years ago
Mitchell Hashimoto 717746ce4f provisioner/shell: retry uploads if reboot [GH-282]
13 years ago
Mitchell Hashimoto 64d87bfaf3 *: switch to packer ConfigTemplate
13 years ago
Mitchell Hashimoto 21f92715c0 provisioner/shell: start_retry_timeout for reboot handling [GH-260]
13 years ago
Mitchell Hashimoto 332bdf6edc builder/*, provisioner/*: set user vars
13 years ago
Mitchell Hashimoto 3f1af409e2 provisioner/shell: tests passing and compiling
13 years ago
Mitchell Hashimoto f4b0e2248f provisioner/shell: convert to latest template stuff
13 years ago
Rafael Garcia 25af1c8bd4 provisioner/shell: state of the art config decoding
13 years ago
Mitchell Hashimoto b64a2532f4 provisioner/shell: use StartWithUi
13 years ago
Mitchell Hashimoto 0b5f4d9d17 provisioner/shell: make build name and builder type env vars [GH-154]
13 years ago
Mitchell Hashimoto 3b4ef72e47 Unused keys are invalid in templates [GH-104]
13 years ago
Mitchell Hashimoto 1745d4e831 provisioner/shell: close source script file handle
13 years ago
Mitchell Hashimoto b22743767e provisioner/shell: inline_shebang for inline scripts
13 years ago
Geoffrey Bachelet 43db2c23eb provisioner/shell: execute script directly instead of using /bin/sh
13 years ago
Mitchell Hashimoto 919c3935e1 Merge branch 'shell-env-vars'
13 years ago
Jack Pearkes d64797cc44 provisioner/shell: remove check for empty env vars config
13 years ago
Mitchell Hashimoto 17d0f5f71b provisioner/shell: rename "path" to "script"
13 years ago
Jack Pearkes e9d8e9f537 provisioner/shell: add support for environment variables to be injected
13 years ago
Mitchell Hashimoto 8cb2fd761e provisioner/shell: Error if a script fails
13 years ago
Mitchell Hashimoto e8cbb9f9b6 provisioner/shell: Error message if provisioning fails
13 years ago
Mitchell Hashimoto 9367df4a3f provisioner/shell: copy the scripts [GH-29]
13 years ago
Mitchell Hashimoto 7797676091 provisioner/shell: can specify multiple scripts to provision with
13 years ago
Mitchell Hashimoto 417f7e7f47 fmt
13 years ago
Mitchell Hashimoto 59b5902619 provisioner/shell: Support inline commands
13 years ago
Mitchell Hashimoto 690954cb51 provisioner/shell: validation
13 years ago
Mitchell Hashimoto 4a8278d49b provisioner/shell: Support setting the execute command
13 years ago
Mitchell Hashimoto e9b552ba18 provisioner/shell: Remove TODO since we handled it
13 years ago
Mitchell Hashimoto 0a6d8ed75a packer: Add errors to Prepare
13 years ago
Mitchell Hashimoto 6b87c42ee6 packer: Change provisioner interface to take array of configs
13 years ago
Mitchell Hashimoto c5d539ef13 command/build: Better prefixes
13 years ago
Mitchell Hashimoto 37937c1290 provisioner/shell: Use RemoteCmd.Wait
13 years ago