Commit Graph

44 Commits

Author SHA1 Message Date
Mitchell Hashimoto 5166f511d2 common/json: add Unmarshal with method with syntax errors 2013-08-09 16:50:24 -07:00
Mitchell Hashimoto 643d9033ad packer: add ParseTemplateFile since that is useful 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto 95b598f748 packer: Template understands variables, puts it into a Build 2013-08-09 15:57:07 -07:00
Julian Phillips 40897fdfc2 packer/template: Remove name from builder rawConfig
This prevents the builder from rejecting the name (which it doesn't
know about) when validating the config.
2013-07-19 15:36:13 +01:00
Julian Phillips 13362ef209 Don't expose overrides directly to provisioners
The overrides are processed, so that the provisioner only sees the
appropriate sub-settings, so the provisioner does not need the raw
overrides.

If we leave the top-level overrides object in the provisioner
configuration, then it will be rejected as an unknown configuration
key.
2013-07-14 22:10:20 +01:00
Mitchell Hashimoto 0e9c0edade Error if unknown root level key in template [GH-180] 2013-07-14 10:29:14 +09:00
Mitchell Hashimoto 39095e48ea post-processor/vagrant: make output contain build name by default
[GH-92]
2013-07-01 15:07:09 -07:00
Mitchell Hashimoto 944d59afcd packer: extra comments on JSON syntax error calc 2013-07-01 14:47:49 -07:00
Mitchell Hashimoto cceb9c04b0 packer: Clean up some of the JSON syntax stuff 2013-07-01 14:46:32 -07:00
Mark Peek 2b8d6f3585 Provide line number for invalid json syntax [GH-56] 2013-07-01 13:30:08 -07:00
Mitchell Hashimoto d180df0032 packer: Template requires builders 2013-06-29 14:02:20 -07:00
Mitchell Hashimoto 6799315081 packer: Improved logging around build runs 2013-06-18 23:05:02 -07:00
Mitchell Hashimoto 154c17163b packer: keep_input_artifact will keep prior artifact in a PP
[GH-19]
2013-06-18 22:45:53 -07:00
Mitchell Hashimoto d95f0a620a packer: builds now have post processors as part of them 2013-06-18 09:58:39 -07:00
Mitchell Hashimoto e851ac5d26 packer: Avoid an extra allocation by using clever addressing 2013-06-18 09:30:23 -07:00
Mitchell Hashimoto 7a07802eb4 packer: Parse post-processors in templates
This includes parsing for the simple, detailed, and sequential
processors.
2013-06-18 09:27:08 -07:00
Mitchell Hashimoto 46108ce13f fmt 2013-06-17 15:19:33 -07:00
Mitchell Hashimoto dd89716ed5 packer: An initial PostProcessor interface 2013-06-17 11:56:26 -07:00
Mitchell Hashimoto 67eaa07cf4 packer: Get rid of "name" in template, wasn't used for anything 2013-06-15 11:14:44 -07:00
Mitchell Hashimoto d55bf3f3ec packer: Support overrides in provisioners for each build 2013-06-07 10:35:26 -07:00
Mitchell Hashimoto 5638cecd14 packer: Use mapstructure for templates, save lots of lines 2013-06-07 10:23:15 -07:00
Mitchell Hashimoto 73b7d94933 packer: better commenting 2013-05-22 17:06:06 -07:00
Mitchell Hashimoto e69e74b2dc packer: Panic if provisioners and no provisioner function 2013-05-22 17:05:36 -07:00
Mitchell Hashimoto 3d0dde03e6 packer: Panic on template if no builder function 2013-05-22 17:02:34 -07:00
Mitchell Hashimoto fbcc6cb2b2 packer: Build now has provisioners, template parses and builds 2013-05-22 16:15:57 -07:00
Mitchell Hashimoto 638e191186 packer: Parse provisioners out of template 2013-05-22 15:12:43 -07:00
Mitchell Hashimoto 06b0cebd1e packer: Template properly calls builder type builderType 2013-05-22 14:39:32 -07:00
Mitchell Hashimoto 4bd7db0759 go fmt 2013-05-22 14:36:33 -07:00
Mitchell Hashimoto 8273565255 better comments for TODO 2013-05-22 14:36:21 -07:00
Mitchell Hashimoto c51223bab7 packer: Template parsing error if name/type is not string 2013-05-22 14:14:40 -07:00
Mitchell Hashimoto f9c59c714f packer: Better error handling for template parsing 2013-05-22 14:11:34 -07:00
Mitchell Hashimoto 25fd2fe877 packer: Template looks up hooks and adds them to the build 2013-05-11 10:00:37 -07:00
Mitchell Hashimoto 779f489894 packer: Template takes a component finder 2013-05-11 09:56:42 -07:00
Mitchell Hashimoto 5ac06e116e packer: Parse "hooks" configuration into the Template 2013-05-10 22:47:20 -07:00
Mitchell Hashimoto 44bd56c3a8 go fmt 2013-05-10 17:01:24 -07:00
Mitchell Hashimoto 8a78de02c7 packer: Cleaner way to build up a list of names 2013-05-08 17:11:02 -07:00
Mitchell Hashimoto 869732826b packer, packer/rpc: Make command/builderFunc support errors 2013-05-07 20:42:49 -07:00
Mitchell Hashimoto 14c568a9d2 Get rid of BuilderFactory 2013-05-05 14:47:17 -07:00
Mitchell Hashimoto 0985d26167 Make Build an interface 2013-05-03 20:45:38 -07:00
Mitchell Hashimoto 262d8aa9a8 Template can create Builds 2013-04-21 12:36:55 -07:00
Mitchell Hashimoto 12049e3d87 Some documentation 2013-04-20 18:33:27 -06:00
Mitchell Hashimoto 6bed06e01c Lots of template parsing stuff 2013-04-15 17:04:19 -07:00
Mitchell Hashimoto 298a7cdbe4 Basic template parsing, tests, build command progress 2013-04-15 15:48:42 -07:00
Mitchell Hashimoto 759261dcf1 Bad commit message 2013-03-25 16:29:26 -07:00