Commit Graph
48 Commits
Author SHA1 Message Date
Mitchell Hashimoto d3ab4d6b40 provisioner/shell: comment on why we return right away if advance == 0
/cc @mwhooker
2013-10-15 09:48:12 -10:00
Mitchell Hashimoto f2c0aeacf5 provisoiner/shell: append only needs to add a byte for UnixReader 2013-10-15 09:40:47 -10:00
Matthew Hooker abe92ed739 provisioner/shell: fix EOF detection
Fixes #507

The scanUnixLine function was erroneously returning empty lines when EOF
was reached.
This commit adds a test for the problem and changes the scanUnixLine
function to elide the trailing \n if no content was read.
2013-10-15 05:56:10 -07:00
Mitchell Hashimoto 9b501b93d6 provisioner/shell: add more tests for UnixReader 2013-10-04 10:47:28 -07:00
Matthew Hooker 43e76cc7d0 Fix UnixReader panic on empty lines.
Added a test for the failure.

Most of the scanner code looks like it's a modified version of
bufio.ScanLines, so I changed it to use that but always add a line feed.
2013-10-01 09:06:01 +00:00
Jason A. Beranek b2a00e5772 provisioner/shell: fix provisioner to use UnixReader [GH-477]
Packer was using the original file reader when uploading, instead of the UnixReader /cc @mitchellh
2013-09-30 23:54:54 -05:00
Mitchell Hashimoto ff163e4459 provisioner/shell: add another UnixReader test for sanity 2013-09-30 11:39:24 -07:00
Mitchell Hashimoto f79c5543d1 provisioner/shell: convert windows line endings to Unix [GH-277] 2013-09-20 10:22:43 -07:00
Mitchell Hashimoto 84001c7c76 provisioner/*: implement Cancel 2013-08-30 23:23:36 -07:00
Mitchell Hashimoto 99a7116939 provisioner/shell: retry the upload if command fails as well
This improves reboot handling robustness
2013-08-23 11:21:20 -07:00
Mitchell Hashimoto 6e99c468d4 provisioner/shell: retry uploads if reboot [GH-282] 2013-08-19 23:02:06 -07:00
Mitchell Hashimoto a1a7ff20c2 *: switch to packer ConfigTemplate 2013-08-15 19:17:23 -07:00
Mitchell Hashimoto 9a2dbd54bf provisioner/shell: start_retry_timeout for reboot handling [GH-260] 2013-08-12 15:49:55 -07:00
Mitchell Hashimoto 100458955f builder/*, provisioner/*: set user vars 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto 23803621e9 provisioner/shell: tests passing and compiling 2013-08-08 17:25:26 -07:00
Mitchell Hashimoto 1b01e82d8d provisioner/shell: convert to latest template stuff 2013-08-08 17:25:26 -07:00
Rafael Garcia b0d5bff98f provisioner/shell: state of the art config decoding 2013-08-06 15:30:36 -07:00
Mitchell Hashimoto 1c5e9848b5 provisioner/shell: use StartWithUi 2013-07-23 22:44:32 -05:00
Mitchell Hashimoto d8a0128d1f provisioner/shell: make build name and builder type env vars [GH-154] 2013-07-15 10:07:49 +09:00
Mitchell Hashimoto a354f5fc08 Unused keys are invalid in templates [GH-104] 2013-07-14 09:28:56 +09:00
Mitchell Hashimoto ee1ad5fa56 provisioner/shell: close source script file handle 2013-07-07 20:50:53 -07:00
Mitchell Hashimoto 62430fdcea provisioner/shell: inline_shebang for inline scripts 2013-07-07 17:52:20 -07:00
Geoffrey Bachelet e8d31bc21a provisioner/shell: execute script directly instead of using /bin/sh 2013-07-03 20:17:31 -04:00
Mitchell Hashimoto 8dc8fcce77 Merge branch 'shell-env-vars'
Conflicts:
	website/source/docs/provisioners/shell.html.markdown
2013-06-28 08:20:12 -04:00
Jack Pearkes 8d84d0cafa provisioner/shell: remove check for empty env vars config 2013-06-28 14:11:27 +02:00
Mitchell Hashimoto 09fabf1e22 provisioner/shell: rename "path" to "script" 2013-06-27 10:56:46 -07:00
Jack Pearkes 7b32212c97 provisioner/shell: add support for environment variables to be injected 2013-06-27 14:42:14 +02:00
Mitchell Hashimoto d16d5eeec5 provisioner/shell: Error if a script fails 2013-06-26 17:52:49 -07:00
Mitchell Hashimoto fc9604abb0 provisioner/shell: Error message if provisioning fails 2013-06-23 17:37:44 -07:00
Mitchell Hashimoto 0c59ad8087 provisioner/shell: copy the scripts [GH-29] 2013-06-23 11:56:49 -07:00