Mitchell Hashimoto
89d165aae7
provisioner/shell: add another UnixReader test for sanity
2013-09-30 11:39:24 -07:00
Kelsey Hightower
e7b7d71f16
Add tests for ansible provisioner default settings
2013-09-29 15:44:21 -07:00
Kelsey Hightower
4d241b96c1
Define the default staging dir using a const var
2013-09-29 15:42:42 -07:00
Kelsey Hightower
365f356a0b
Add tests for ansible-local provisioner
2013-09-29 14:54:49 -07:00
Kelsey Hightower
ea3677387e
Add ansible-local provisioner
2013-09-29 13:38:37 -07:00
Kirill Kazakov
be80edb28e
provisioner/chef-solo: fix .RolesPath and .DataBagsPath in the config template
2013-09-27 19:13:55 +04:00
Mitchell Hashimoto
25924a2d2b
provisioner/puppet-masterless: user variables in puppet vars [GH-448]
2013-09-21 18:28:14 -07:00
Mitchell Hashimoto
abbac36796
provisioner/shell: convert windows line endings to Unix [GH-277]
2013-09-20 10:22:43 -07:00
Mitchell Hashimoto
677f2989b9
provisioner/chef-solo: template doesn't support comp [GH-442]
2013-09-19 11:54:24 -07:00
Mitchell Hashimoto
1b1b535ee5
provisioner/chef-solo: one test per test
...
/cc @jerryclinesmith
2013-09-18 14:19:50 -07:00
Mitchell Hashimoto
ba9d85c744
provisioner/chef-solo: template process roles/data bags path
...
/cc @jerryclinesmith
2013-09-18 14:17:54 -07:00
Mitchell Hashimoto
7034f69f2c
provisioner/chef-solo: move quoting to template
...
/cc @jerryclinesmith - I want the quoting to go into the template. I
realize the cookbooks path doesn't do this and you were following that.
That one is just weird because it is an array and Go templates kind of
suck.
2013-09-18 14:17:07 -07:00
Mitchell Hashimoto
b2d5b15155
fmt
2013-09-18 14:14:18 -07:00
Mitchell Hashimoto
129f1290c1
Merge pull request #411 from jerryclinesmith/issue_348
...
provisioners/chef-solo: add support for roles and data_bags
2013-09-18 14:13:41 -07:00
Mitchell Hashimoto
dc0232975d
provisioner/chef-solo: ability to specify custom chef template
2013-09-15 23:29:29 -07:00
Jack Pearkes
8f5a185818
provisioner/puppet-masterless: remove duplicate manifest upload message
2013-09-13 14:54:28 +02:00
Justin Clayton
cd2280f3bf
facter vars no longer smush up against puppet command when prevent_sudo is true
2013-09-12 16:52:25 -07:00
Jerry Clinesmith
fa2f277c67
#348 : chef-solo provisioner: add support for data_bags and roles
2013-09-10 22:00:29 -05:00
Mitchell Hashimoto
8e44971b3d
provisioner/puppet-masterless: proper exit code check
2013-09-09 15:04:13 -07:00
Mitchell Hashimoto
a14a3fe3f1
provisioner/puppet-masterless: detailed exit codes
2013-09-09 15:04:13 -07:00
Mitchell Hashimoto
c83fbc0b42
provisioner/puppet-masterless: better messaging
2013-09-09 14:03:40 -07:00
Mitchell Hashimoto
adbb490189
provisioner/file: support uploading directories [GH-251]
2013-09-09 14:00:06 -07:00
Mitchell Hashimoto
fd0df9ff58
provisioners/puppet-masterless: support hiera configs
2013-09-09 13:24:17 -07:00
Mitchell Hashimoto
41b70aae99
provisioner/puppet-masterless: support custom facts
2013-09-08 23:00:11 -07:00
Mitchell Hashimoto
b92aed5577
provisioner/puppet-masterless: more sane messaging
2013-09-07 23:43:06 -07:00
Mitchell Hashimoto
023678fe7b
provisioner/puppet-masterless: more validation and tests
2013-09-07 23:31:28 -07:00
Mitchell Hashimoto
d854b08642
provisioner/puppet-masterless: rework internals, use SCP
2013-09-07 23:08:56 -07:00
Mitchell Hashimoto
5079fd4f0b
Rename puppet provisioner to puppet-masterless
2013-09-07 22:27:25 -07:00
James Turnbull
d37f287f8c
Added basic Puppet provisioner
2013-09-03 08:39:49 -04:00
Mitchell Hashimoto
28bf6122bd
provisioner/*: implement Cancel
2013-08-30 23:23:36 -07:00
Mitchell Hashimoto
55b0b586d3
provisioner/chef-solo: code re-org
2013-08-30 16:35:57 -07:00
Mitchell Hashimoto
662e74d070
provisioner/chef-solo: properly escape user vars for JSON
...
/cc @mwhooker - I moved the processing up into Prepare so that any
errors will be shown during a validate pass. Also, I escape some stuff
in keys. Tests moved as well.
2013-08-30 16:05:04 -07:00
Mitchell Hashimoto
6914baa473
Merge pull request #364 from mwhooker/362
...
provisioner/chef-solo: template expansion of `json`
2013-08-30 15:26:39 -07:00
Mitchell Hashimoto
404ae53a4a
provisioner/salt-masterless: join paths properly
2013-08-30 14:26:29 -07:00
Matthew Hooker
9537f085ae
clean up and retab.
2013-08-28 17:35:43 -07:00
Matthew Hooker
4b76b2d9e3
template expansion of `json` in chef-solo
...
Fixes #362
2013-08-28 17:27:22 -07:00
Mitchell Hashimoto
b4b68bce00
Merge branch 'fix-minion-config-with-non-tmp-dir' of https://github.com/rach/packer into rach-fix-minion-config-with-non-tmp-dir
...
Conflicts:
provisioner/salt-masterless/provisioner.go
2013-08-27 20:21:02 -07:00
Mitchell Hashimoto
64fe98c465
provisioner/chef-solo: template process the configuration
2013-08-27 17:41:49 -07:00
Mitchell Hashimoto
c9ef66651b
fmt
2013-08-27 17:37:29 -07:00
Mitchell Hashimoto
a8694fdda8
Merge pull request #353 from rach/add-setting-for-pillar-folder
...
provisioner/salt-masterless: Add setting for pillar folder
2013-08-27 17:36:28 -07:00
Rachid Belaid
a755be49fa
Add doc and change pillar tree in roots to respect salt vocabulary
2013-08-28 01:01:37 +01:00
Rachid Belaid
7bdb5f9cfb
Add setting for pillar folder to respect saltstack structure
2013-08-28 00:38:36 +01:00
Rachid Belaid
40af1e681a
Fix minion config with non tmp dir
2013-08-27 23:49:04 +01:00
Mitchell Hashimoto
3b097f9805
provisioner/chef-solo: use proper exceute command
2013-08-27 14:35:11 -07:00
Mitchell Hashimoto
87dde46413
provisioner/chef-solo: remove unused constants and variables
2013-08-27 13:32:59 -07:00
Mitchell Hashimoto
e72c06a740
provisioner/chef-solo: upload cookbooks
2013-08-27 13:27:20 -07:00
Mitchell Hashimoto
607372f75a
provisioner/chef-solo: massive refactor and style nitpick
2013-08-27 13:27:20 -07:00
Mitchell Hashimoto
4a5a8c6006
provisioner/chef-solo: installChef fixed up to use tpl and StartWithUi
2013-08-27 13:27:20 -07:00
Mitchell Hashimoto
585cee9b4c
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
095631107a
communicator/ssh: UploadDir works properly
2013-08-25 20:30:56 -07:00
Mitchell Hashimoto
80e36f11b9
provisioner/salt-masterless: fix the build
2013-08-23 15:58:30 -07:00
Rachid Belaid
3cb3a7cd30
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
a46c7afcf7
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
717746ce4f
provisioner/shell: retry uploads if reboot [GH-282]
2013-08-19 23:02:06 -07:00
Mitchell Hashimoto
64d87bfaf3
*: switch to packer ConfigTemplate
2013-08-15 19:17:23 -07:00
Mitchell Hashimoto
3ea4c720b1
provisioner/salt-masterless: switch replace to that prior replace works
...
/cc @markpeek
2013-08-12 17:10:50 -07:00
Mitchell Hashimoto
d60b769217
provisioner/salt-masterless: replace windows slash with linux [GH-276]
2013-08-12 16:26:46 -07:00
Mitchell Hashimoto
21f92715c0
provisioner/shell: start_retry_timeout for reboot handling [GH-260]
2013-08-12 15:49:55 -07:00
Mitchell Hashimoto
769c349def
provisioner/salt-masterless: nice error even if bad exit status
...
/cc @rgarcia
2013-08-12 09:19:11 -07:00
Mitchell Hashimoto
fb6d2754da
packer: Add Machine func to Ui
2013-08-11 18:16:00 -07:00
Mitchell Hashimoto
ffa7dff585
fmt
2013-08-11 16:17:59 -07:00
Rach Belaid
23b856332e
#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
adfb6caa2b
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
72a7a5e69c
provisioner/salt-masterless: don't delete states [GH-265]
2013-08-09 17:01:39 -07:00
Mitchell Hashimoto
55ad0058bc
provisioner/salt-masterless: convert to new template stuff + user vars
2013-08-09 15:57:08 -07:00
Mitchell Hashimoto
332bdf6edc
builder/*, provisioner/*: set user vars
2013-08-09 15:57:08 -07:00
Mitchell Hashimoto
3f1af409e2
provisioner/shell: tests passing and compiling
2013-08-08 17:25:26 -07:00
Mitchell Hashimoto
f4b0e2248f
provisioner/shell: convert to latest template stuff
2013-08-08 17:25:26 -07:00
Mitchell Hashimoto
bf67c6c36e
provisioner/file: use the template processing stuff
2013-08-08 17:25:26 -07:00
Rafael Garcia
ec556044cd
provisioner/file: state of the art config decoding
2013-08-06 15:30:49 -07:00
Rafael Garcia
25af1c8bd4
provisioner/shell: state of the art config decoding
2013-08-06 15:30:36 -07:00
Mitchell Hashimoto
5b7d8fbc74
rename builder/common to common since it is generally useful
2013-08-01 12:11:54 -07:00
Mitchell Hashimoto
25183e7702
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
f7cbdf4112
provisioner/salt-masterless: verify local_state_tree exists
...
/cc @rgarcia
2013-07-31 23:11:08 -07:00
Mitchell Hashimoto
104fe91b48
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
f3331afb1c
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
7e5c64ca7f
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
aacca7d066
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
29993b30e4
provisioner/salt-masterless: rename
2013-07-28 23:30:03 -07:00
Rafael Garcia
7019281ad6
provisioner/salt: use cmd.StartWithUi
2013-07-27 18:12:18 -07:00
Rafael Garcia
5feadedba2
provisioner/salt: simple tests
2013-07-27 00:14:32 -07:00
Rafael Garcia
9c25bb5cd7
provisioner/salt: put state tree temporarily in /tmp/salt by default
2013-07-27 00:14:32 -07:00
Rafael Garcia
8f0d4890d9
provisioner/salt: copy local state tree to remote, run highstate
2013-07-27 00:14:32 -07:00
Rafael Garcia
a74a515aa7
provisioner/salt: pass args to bootstrap
2013-07-27 00:14:32 -07:00
Rafael Garcia
361d7fbf8e
provisioner/salt: install salt
2013-07-27 00:14:32 -07:00
Mitchell Hashimoto
b64a2532f4
provisioner/shell: use StartWithUi
2013-07-23 22:44:32 -05:00
Mark Peek
0403932315
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
74f36aaebd
Remove debugging statement.
2013-07-15 16:38:26 -04:00
Mitchell Hashimoto
0b5f4d9d17
provisioner/shell: make build name and builder type env vars [GH-154]
2013-07-15 10:07:49 +09:00
Mitchell Hashimoto
3b4ef72e47
Unused keys are invalid in templates [GH-104]
2013-07-14 09:28:56 +09:00
James Van Dyke
adaceb7766
Remove redundant code and clean up some string concatenation.
...
Clean up Say statements.
2013-07-12 11:09:52 -04:00
James Van Dyke
6a1d1cfb70
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
0d33f9ae08
Add basic test file for provisioner-chef-solo.
2013-07-11 10:47:51 -04:00
James Van Dyke
355fdecafa
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
1745d4e831
provisioner/shell: close source script file handle
2013-07-07 20:50:53 -07:00
Mitchell Hashimoto
b22743767e
provisioner/shell: inline_shebang for inline scripts
2013-07-07 17:52:20 -07:00
Mitchell Hashimoto
6a5bbaa05d
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
James Van Dyke
13da0ef49b
Rename configuration `avoid_sudo` to `prevent_sudo`
2013-07-06 00:37:59 -04:00
James Van Dyke
c24e74c699
Remove errant die statement.
2013-07-06 00:17:28 -04:00
James Van Dyke
6e1e92f14f
Implement `skip_install` configuration to skip Chef installation.
2013-07-06 00:15:21 -04:00