86 Commits

Author SHA1 Message Date
Mitchell Hashimoto
e43d08a3fc provisioner/chef-solo: installChef fixed up to use tpl and StartWithUi 2013-08-27 13:27:20 -07:00
Mitchell Hashimoto
da1de12b78 Merge branch 'provisioner-chef-solo' of https://github.com/jvandyke/packer into jvandyke-provisioner-chef-solo
Conflicts:
	config.go
2013-08-25 20:49:53 -07:00
Mitchell Hashimoto
aa47487960 communicator/ssh: UploadDir works properly 2013-08-25 20:30:56 -07:00
Mitchell Hashimoto
14517e6fa5 provisioner/salt-masterless: fix the build 2013-08-23 15:58:30 -07:00
Rachid Belaid
4b2d1efb13 Fix #264 to upload local minion config
Conflicts:
	provisioner/salt-masterless/provisioner.go
	website/source/docs/provisioners/salt.html.markdown
2013-08-23 15:41:11 -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
0a39650332 provisioner/salt-masterless: switch replace to that prior replace works
/cc @markpeek
2013-08-12 17:10:50 -07:00
Mitchell Hashimoto
856f27bc9b provisioner/salt-masterless: replace windows slash with linux [GH-276] 2013-08-12 16:26:46 -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
4f58b20479 provisioner/salt-masterless: nice error even if bad exit status
/cc @rgarcia
2013-08-12 09:19:11 -07:00
Mitchell Hashimoto
c8bc2bc1ba packer: Add Machine func to Ui 2013-08-11 18:16:00 -07:00
Mitchell Hashimoto
f2355a577a fmt 2013-08-11 16:17:59 -07:00
Rach Belaid
a4c555a5b7 #269 Make local_state_tree option not mandatory
Update and rename salt.html.markdown to salt-masterless.html.markdown
salt.html.markdown had a better history and formatting
And remove local_state_tree from required option from code and docs
2013-08-10 16:18:57 +01:00
Mitchell Hashimoto
b25f0ceabf provisioner/salt-masterless: error if any commands exit with non-zero
[GH-266]

/cc @rgarcia
2013-08-09 17:35:57 -07:00
Mitchell Hashimoto
da4a7c3b70 provisioner/salt-masterless: don't delete states [GH-265] 2013-08-09 17:01:39 -07:00
Mitchell Hashimoto
bf457f437c provisioner/salt-masterless: convert to new template stuff + user vars 2013-08-09 15:57:08 -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
Mitchell Hashimoto
f66c145ee8 provisioner/file: use the template processing stuff 2013-08-08 17:25:26 -07:00
Rafael Garcia
485d5b86d0 provisioner/file: state of the art config decoding 2013-08-06 15:30:49 -07:00
Rafael Garcia
b0d5bff98f provisioner/shell: state of the art config decoding 2013-08-06 15:30:36 -07:00
Mitchell Hashimoto
ef59ee41a8 rename builder/common to common since it is generally useful 2013-08-01 12:11:54 -07:00
Mitchell Hashimoto
fbc4a255d0 provisioner/salt-masterless: remove Ui
/cc @rgarcia Should just pass it in as a param
2013-08-01 10:06:38 -07:00
Mitchell Hashimoto
4c1db34ac9 provisioner/salt-masterless: verify local_state_tree exists
/cc @rgarcia
2013-07-31 23:11:08 -07:00
Mitchell Hashimoto
116692212c provisioner/salt-masterless: use Messages for minor steps
/cc @rgarcia - "Message" in Ui is the non-bold colored messages and
are meant for sub-messages or steps part of a larger message. "Say"
is used for the bold stuff. This is more in line wit how Packer works.
2013-07-31 23:07:15 -07:00
Mitchell Hashimoto
00921966ee provisioner/salt-masterless: don't capitalize Ui
/cc @rgarcia - Not sure why this was capitalized to begin with
2013-07-31 23:06:22 -07:00
Mitchell Hashimoto
5642fa01c8 provisioner/salt-masterless: use common lib for config decoding
/cc @rgarcia - Since you opened the pull request, common config
decoding stuff has been pulled out into the common Package. This
simplifies a lot of code.
2013-07-31 23:05:15 -07:00
Mitchell Hashimoto
dc615ff317 provisoner/salt-masterless: lowercase package name
/cc @rgarcia - I don't know of any Go packages that follow this naming
convention so I just lowercased it.
2013-07-31 23:01:03 -07:00
Rafael Garcia
728f9ecdbd provisioner/salt-masterless: rename 2013-07-28 23:30:03 -07:00
Rafael Garcia
880dd75675 provisioner/salt: use cmd.StartWithUi 2013-07-27 18:12:18 -07:00
Rafael Garcia
1b0d316456 provisioner/salt: simple tests 2013-07-27 00:14:32 -07:00
Rafael Garcia
8fe0733676 provisioner/salt: put state tree temporarily in /tmp/salt by default 2013-07-27 00:14:32 -07:00
Rafael Garcia
b883abe1e2 provisioner/salt: copy local state tree to remote, run highstate 2013-07-27 00:14:32 -07:00
Rafael Garcia
3654a9a9f5 provisioner/salt: pass args to bootstrap 2013-07-27 00:14:32 -07:00
Rafael Garcia
9bdd5a927a provisioner/salt: install salt 2013-07-27 00:14:32 -07:00
Mitchell Hashimoto
1c5e9848b5 provisioner/shell: use StartWithUi 2013-07-23 22:44:32 -05:00
Mark Peek
ed75091bd4 Log an upload error closer to when it occurs
When there is an error returned from the Upload it is propagated back
to the main loop and may have additional log messages before the actual
error is displayed. This displays a log message close to where the error
actually occurred.
2013-07-17 18:17:46 -07:00
James Van Dyke
428bc4d745 Remove debugging statement. 2013-07-15 16:38:26 -04: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
James Van Dyke
ba5d7a9d72 Remove redundant code and clean up some string concatenation.
Clean up Say statements.
2013-07-12 11:09:52 -04:00
James Van Dyke
a6f3bb3bb2 Improve logging.
Correct behavior for undefined recipe list.
Correct package name to upstream repo.
2013-07-11 12:22:15 -04:00
James Van Dyke
a84f26bfdf Add basic test file for provisioner-chef-solo. 2013-07-11 10:47:51 -04:00
James Van Dyke
24c4b5334b Merge remote-tracking branch 'upstream/master' into provisioner-chef-solo
Conflicts:
	config.go

Add the chef-solo provisioner back to config.go.
Fix import path for chef-solo provisioner.
2013-07-10 08:58:00 -04: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
Mitchell Hashimoto
b25bed634f Merge pull request #133 from ubermuda/provisioner/shell/script-execution
provisioner/shell: execute script directly instead of using /bin/sh
2013-07-07 17:47:25 -07:00