Commit Graph

522 Commits

Author SHA1 Message Date
Megan Marsh 46c3113613
it compiles :) 2018-01-25 14:34:00 -08:00
Matthew Hooker 807e88245b
trying to add context to state bag 2018-01-24 17:09:15 -08:00
유성덕 5189d65467 Support Naver Cloud Platform 2018-01-11 18:57:53 +09:00
Krzysztof Wilczynski 0e08640fff
Re-factor version command to use version.FormattedVersion() function.
This commit removes surplus code which is almost a duplicate of the code
available in the version package by favouring the package implementation
instead.

Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
2017-12-03 23:07:16 +01:00
Jeremy Voorhis bfc75eb9d9 Implement cli.CommandAutocomplete for most commands 2017-10-13 11:57:44 -07:00
Jeremy Voorhis a4cb8ae41b Define methods on *BuildCommand (consistency) 2017-10-13 11:57:44 -07:00
SwampDragons f3c33240fa Merge pull request #5444 from vijayinvites/packer-vhdx
Hyperv vmcx builder and allow vhd/vhdx instead of ISO
2017-10-13 11:53:27 -07:00
Matthew Hooker fcfdff0efd rerun scripts/generate-plugins.go 2017-10-11 22:05:52 +05:30
Taliesin Sisson efa62e1550 Can specify an iso, vhd or vhdx for download. If it is a vhd or vhdx it is used as the hard drive for spinning up a new machine, importing an exported virtual machine or cloning a virtual machine.
Can import a virtual machine from a folder
Can clone an existing virtual machine
2017-10-11 22:05:45 +05:30
Taliesin Sisson 452fcbd9a1 Only attach dvd drive if there is one
Fix debug messages for cloning

Add hyperv-vmcx as a builder from command line
2017-10-11 21:42:32 +05:30
Jearvon Dharrie e918dc89bc Add `/downloads.html` to the outdated version message 2017-10-10 23:31:33 -04:00
Andrew Pryde 6fd2f6701d
Rename Oracle BMCS builder to OCI
Oracle Bare Metal Cloud Services (BMCS) has been rebranded as Oracle
Cloud Infrastructure (OCI).
2017-09-12 10:40:56 -07:00
Matthew Hooker 624b1e5110 Merge pull request #4554 from prydie/f-oracle-bmcs
Oracle Bare Metal Cloud Services (BMCS) builder
2017-09-11 09:42:14 -07:00
Matthew Hooker fdaf4ed8d3
Gracefully clean up on SIGTERM 2017-09-08 11:42:32 -07:00
Megan Marsh 8d24b3930a cleanup imports and rebase artifacts 2017-09-05 15:23:22 -07:00
Michele Catalano f4f0ab9f50 add integrate lxc builder in packer
add lxc with scripts/generate-plugins.go
2017-09-05 15:17:15 -07:00
Chris Lundquist 7366b6c78e [lxd] first pass 2017-09-05 12:44:39 -07:00
Andrew Pryde 630ee5d650 Change imports mitchelh/packer -> hashicorp/packer 2017-08-02 09:53:48 +01:00
Andrew Pryde 9728f890cf Implemented and documented oracle-bmcs builder
Implements a new Packer builder (oracle-bmcs) which adds support for
building custom images for Oracle Bare Metal Cloud Services (BMCS)
https://cloud.oracle.com/en_US/bare-metal.

Additionally includes documentation for the oracle-bmcs builder.
2017-08-02 09:53:48 +01:00
bugbuilder 3cc9f204ac Moving vsphere-tpl to vsphere-template, fixed root folder creation and updated docs 2017-07-10 20:52:48 -04:00
bugbuilder dc2124aa2a Initial vSphere-tpl post-processor 2017-07-09 14:12:37 -04:00
Megan Marsh 17d3671601 make sure that flagVars is not a nil map 2017-07-06 09:27:05 -07:00
Matthew Hooker 056104ace4
fix tests 2017-06-08 19:12:04 -07:00
Matthew Hooker d5c228ee98
additional renaming of private to sensitive 2017-06-08 15:52:16 -07:00
Matthew Hooker 01f64009ed
spacing 2017-06-08 15:47:46 -07:00
Matthew Hooker baf31980c7
remove unneeded cast 2017-06-08 15:44:48 -07:00
Megan Marsh 33af49d980 rename private to be in line with tfe 2017-06-08 15:42:17 -07:00
Matthew Hooker cd147e2da4 Merge pull request #4970 from hashicorp/4727_sensitive_vars
allow user to mark variables as sensitive for packer push
2017-06-08 15:27:37 -07:00
Megan Marsh a21870e614 addressing PR comments 2017-06-08 13:24:07 -07:00
Megan Marsh 7ac429b9ca add private to help function 2017-06-08 13:04:40 -07:00
Megan Marsh fdca364f4b allow user to mark variables as sensitive for packer push 2017-06-08 13:01:23 -07:00
Matthew Hooker 8933690e90 Merge pull request #4950 from hashicorp/warn_atlas_users
add warning about vagrant.box vms being uploaded to atlas
2017-06-07 13:44:41 -07:00
Megan Marsh dbd7aa6b95 capitalize all the things 2017-06-07 13:30:39 -07:00
Megan Marsh 1c1db91715 add instructions 2017-06-07 13:20:02 -07:00
Megan Marsh b31f8bb0f6 clean up formatting and add warning to packer push. 2017-06-01 11:25:53 -07:00
Matthew Hooker 1a26fbd59c
update changelog 2017-05-15 13:52:29 -07:00
zhuzhih2017 d646e1d035 refactor the code according hashicorp rename the repository 2017-04-18 15:14:45 +08:00
Matthew Hooker 81522dced0
move packer to hashicorp 2017-04-04 13:39:01 -07:00
Matthew Hooker 048e316645
s/TargettedUi/TargetedUI/ 2017-03-29 12:44:42 -07:00
Matthew Hooker 230079f73a
spell fixes 2017-03-28 20:36:19 -07:00
Matthew Hooker f0e83beaaa
display version correctly 2017-03-16 15:24:12 -07:00
zhuzhih2017 0400ebae95 Fix the code according PR review 2017-03-12 10:22:25 +08:00
zhuzhih2017 fadfb696dd Add packer plugin which support alicloud ecs images 2017-03-03 16:56:17 +08:00
Matthew Hooker c1480931e2 Merge pull request #4525 from mitchellh/nocolorsay
don't show ui color if we're not colorized
2017-02-26 18:47:56 -08:00
James Nugent 635aeb765b amazon/ebssurrogate: Add New Builder
This commit adds a new type of builder which builds an AMI based on a
snapshot of an EBS volume which is provisioned on a "surrogate"
instance. This can be used to build operating system images from
scratch, but unlike the `chroot` builder does not require running from
an AWS EC2 instance.
2017-02-21 18:38:19 -06:00
Matthew Hooker 11354aa1b7
tidy up new line 2017-02-09 17:45:42 -08:00
Matthew Hooker 60955d8c2c
don't show ui color if we're not colorized 2017-02-09 17:41:42 -08:00
Matthew Hooker 31163f6e96
command/version: don't print extra new line. 2017-02-01 19:26:34 -08:00
Chris Bednarski ee2d636840 Improve delay between key events
- Can now tune delay using PACKER_KEY_INTERVAL
- Added implementation to all of VMware and QEMU
- Removed double delay for QEMU
- Default key delay of 100ms (as before)
- Added docs to QEMU and VMware pages
2017-01-14 17:56:04 -08:00
Matthew Hooker d0ef866639
don't interpolate atlas variables. 2017-01-12 16:08:54 -08:00
James Nugent e15be036d7 builder: add Triton builder
This is a builder for Joyent's Triton system. It was originally at
jen20/packer-builder-triton, and subsequently at
joyent/packer-builder-triton on GitHub. The following commit vendors the
dependencies.
2016-12-24 10:25:31 +01:00
Taliesin Sisson 335615408a Run go fmt on files 2016-12-12 22:45:19 +00:00
Taliesin Sisson 4721327bf6 Fix duplicate imports 2016-12-12 22:44:51 +00:00
Taliesin Sisson ccf506ee22 Must point to iso hyperv plugin 2016-12-12 22:44:23 +00:00
Taliesin Sisson 25baa26a7a Incude hyperv as part of the plugins 2016-12-12 22:44:23 +00:00
Matthew Hooker d3ddd99721 Merge pull request #4163 from StackPointCloud/packer-builder-oneandone
Packer Builder 1&1
2016-12-08 14:07:35 -08:00
Matthew Hooker c122a178a9 Merge pull request #4089 from mitchellh/replace3076
command/push: Fix variable pushes to Atlas
2016-11-15 12:24:51 -08:00
Matthew Hooker 93e31168f7
remove print 2016-11-14 12:08:02 -08:00
Jake Champlin 95760462a6
Update help output for build command
The `-only` flag has been around for some time now, and is documented on
our packer website, yet the help output for `packer build` lacks this
command line option.
2016-11-14 10:06:43 -05:00
jasminSPC 4bcba37f38 Packer Builder 1&1 2016-11-13 23:34:36 +01:00
Justin Campbell fdaa89681a
Update go-atlas.
Use the atlas.BuildVars type.

The -var/-var-file precedence issue is a bug documented in #2682. Not
introduced in this patch
2016-11-07 12:52:32 -08:00
Justin Campbell 16adc3f7cc
command/push: Add test for var-file push to Atlas 2016-11-07 12:52:30 -08:00
Justin Campbell 56cd8171cc
command/push: Push CLI vars to Atlas 2016-11-07 12:52:29 -08:00
Matthew Hooker 6b7ac8ee90 make generate 2016-11-02 11:48:32 -07:00
James Nugent b1ff8c3bfc builder/amazon: Add `ebs-volume` builder
This commit adds a builder that works like EBS builders, except does not
create an AMI, and instead is intended to create EBS volumes in an
initialized state. For example, the following template can be used to
create and export a set of 3 EBS Volumes in a ZFS zpool named `data` for
importing by instances running production systems:

```
{
	"variables": {
		"aws_access_key_id": "{{ env `AWS_ACCESS_KEY_ID` }}",
		"aws_secret_access_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}",
		"region": "{{ env `AWS_REGION` }}",
		"source_ami": "{{ env `PACKER_SOURCE_AMI` }}",
		"vpc_id": "{{ env `PACKER_VPC_ID` }}",
		"subnet_id": "{{ env `PACKER_SUBNET_ID` }}"
	},
	"builders": [{
		"type": "amazon-ebs-volume",
		"access_key": "{{ user `aws_access_key_id` }}",
		"secret_key": "{{ user `aws_secret_access_key` }}",
		"region": "{{user `region`}}",
		"spot_price_auto_product": "Linux/UNIX (Amazon VPC)",

		"ssh_pty": true,
		"instance_type": "t2.medium",
		"vpc_id": "{{user `vpc_id` }}",
		"subnet_id": "{{user `subnet_id` }}",
		"associate_public_ip_address": true,
		"source_ami": "{{user `source_ami` }}",
		"ssh_username": "ubuntu",
		"ssh_timeout": "5m",

		"ebs_volumes": [
			{
				"device_name": "/dev/xvdf",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data1",
					"zpool": "data",
					"Component": "TeamCity"
				}
			},
			{
				"device_name": "/dev/xvdg",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data2",
					"zpool": "data",
					"Component": "TeamCity"
				}
			},
			{
				"device_name": "/dev/xvdh",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data3",
					"zpool": "data",
					"Component": "TeamCity"
				}
			}
		]
	}],
	"provisioners": [
	{
		"type": "shell",
		"start_retry_timeout": "10m",
		"inline": [
			"DEBIAN_FRONTEND=noninteractive sudo apt-get update",
			"DEBIAN_FRONTEND=noninteractive sudo apt-get install -y zfs",
			"lsblk",
			"sudo parted /dev/xvdf --script mklabel GPT",
			"sudo parted /dev/xvdg --script mklabel GPT",
			"sudo parted /dev/xvdh --script mklabel GPT",
			"sudo zpool create -m none data raidz xvdf xvdg xvdh",
			"sudo zpool status",
			"sudo zpool export data",
			"sudo zpool status"
		]
	}
	]
}
```

StepModifyInstance and StepStopInstance are now shared between EBS and
EBS-Volume builders - move them into the AWS common directory and rename
them to indicate that they only apply to EBS-backed builders.
2016-11-02 12:56:39 -04:00
Matthew Hooker d920b3fbf4 run gofmt 2016-11-01 14:08:04 -07:00
Matthew Hooker 01be917450 Merge pull request #3660 from StackPointCloud/packer-builder-profitbricks
Packer Builder ProfitBricks
2016-10-31 15:45:24 -07:00
Sander van Harmelen dbf3bf56d4 Add a CloudStack Builder 2016-10-16 15:29:18 +02:00
jasminSPC dca286bf38 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-10-10 23:53:52 +02:00
Matthew Hooker a8e57d83d2 gofmt project.
noticed many unrelated changes being added to patches because of gofmt.

ran `find . -not -path "./vendor/*" -name "*.go" -exec gofmt -w {} \;`
2016-09-29 14:13:06 -07:00
Doka 4256ab2cc2 add dot to build name regexp
allows build names like debian-8.3
2016-09-28 15:11:36 -07:00
Orivej Desh 4fe86244a5 Improve -on-error descriptions 2016-09-18 03:00:36 +00:00
Orivej Desh 639bf356aa Fail on unknown values of -on-error 2016-09-17 14:42:21 +00:00
Orivej Desh e9cc28565b Document -on-error on the "packer build" page 2016-09-16 12:15:00 +00:00
Orivej Desh 6762965696 Add -on-error command line argument to allow preserving artifacts on builder errors
Resolves #409
2016-09-16 12:15:00 +00:00
jasminSPC d84b3af863 Fixed tests 2016-08-31 14:11:10 +02:00
Scott Crunkleton d2e65e6433 Generated command/plugin.go using scripts/generate-plugins.go. 2016-08-15 14:36:26 -07:00
crunk1 55b5a45ae4 Created googlecompute-export post-processor. Modified the googlecompute builder to pass a few configuration values to its resulting artifact. These values can then be used in googlecompute-export post-processor.
Added documentation and changed authentication stuff on temporary VM.
2016-08-15 14:36:26 -07:00
Chris Bednarski db593a517d Added manifest post-processor, which creates a manifest of build artifacts 2016-06-10 15:57:01 -07:00
Vasiliy Tolstov d64603e137 initial import of checksum post-processor (#3492)
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-05-18 17:31:16 -07:00
Christopher Boumenot ad3d674919 Do not use Fprintf, use Fprint. 2016-04-05 22:41:26 -07:00
Alvaro Miranda 6237df566f add -color to build -h command 2016-03-23 04:40:24 +13:00
Chris Bednarski 5b5888b230 Initial import of Microsoft contributed code 2016-03-14 20:08:35 -07:00
Chris Bednarski 6a38303030 Make the build name error message show the original regexp 2016-03-01 19:01:46 -08:00
Chris Bednarski 53176f8cdb Added amazon s3 service to vendor, to support the amazon-import feature 2016-02-12 10:41:26 -08:00
Chris Bednarski 58ebd6a9fd Merge branch 'deps' 2016-02-05 14:22:00 -08:00
Chris Bednarski 93547ad91c Regenerate command/plugin and apply go fmt (now handled by the makefile) 2016-02-05 11:18:36 -08:00
Chris Bednarski 171265c983 Remove generator from command/version because we can't go build ./... -- it also builds vendored stuff 2016-02-05 11:17:48 -08:00
Marat Bakeev c95b2b483f Merge branch ansible-provisioner of https://github.com/dkhenry/packer 2016-02-05 15:40:17 +13:00
Chris Bednarski 1f8ebab4de There's no Warn, only Say 2016-01-20 15:30:16 -08:00
Chris Bednarski d8953e48d4 Change log to Ui.Warn and restore the removed functionality for now 2016-01-14 17:18:02 -08:00
Chris Bednarski 5e34864494 Add deprecation notice for -m/-message 2015-10-27 18:35:57 -07:00
Chris Bednarski 3dfdef4d39 Removed push -m since this is not used 2015-10-27 18:30:58 -07:00
Mark Peek 71ed8e4a38 Fix #2742: Include template line numbers on error 2015-10-25 12:28:06 -07:00
Mark Peek 62fd4df0a7 Merge pull request #2684 from mitchellh/docs-atlas-names
Added a note to the push docs about dot being disallowed in atlas names
2015-10-23 17:46:24 -07:00
Chris Bednarski 6783bc3fb0 Added generator for command/plugin.go so we don't have to edit it by hand to add new plugins 2015-10-21 16:57:38 -07:00
Chris Bednarski bfe5b5b4b6 Change if/else logic to switch 2015-10-21 16:57:38 -07:00
Chris Bednarski 1641a5e0cb Replace string splitting with a regexp; this is clearer and less code because of the post-processor case 2015-10-21 16:57:38 -07:00
Chris Bednarski e080e73b04 Add some exit codes and use a constant for -PACKERSPACE- 2015-10-21 16:57:38 -07:00
Chris Bednarski 9fa93712a1 Added integrated post-processors 2015-10-21 16:57:38 -07:00
Chris Bednarski d09a9ab0c7 Implemented internal plugins
- Internal plugins are compiled into the same packer binary and invoked through the plugin command
- Search paths allow disk-based plugins to override and should function as normal
- This should allow for a 94% space savings vs statically compiling all the plugins as separate binaries.. approximately 24mb vs 431mb
2015-10-21 16:57:38 -07:00
Mark Peek af055ad3e0 Synchronize access to artifact map to remove race 2015-10-14 08:25:13 -07:00
Chris Bednarski c834a00e22 Added a name validator to the push command 2015-08-26 12:16:18 -07:00
Rickard von Essen 4e20522afd Fixes #2667: Added vmware-rename to fix command help text 2015-08-24 20:19:49 +02:00
Chris Bednarski b3eacc5c2b Updated test to verify expected behavior 2015-07-13 19:32:28 -07:00
Chris Bednarski 78174dae4e Don't override packer's build version from a config file; fixes #2385 2015-07-13 19:03:36 -07:00
Chris Bednarski da20c36454 Removed unused variable breaking gorename 2015-07-13 18:04:50 -07:00
Chris Bednarski 28a13111b8 Add stub for validate test 2015-07-13 14:57:35 -07:00
Zach Zolton 548f2ced1c Fix `packer build` reading from STDIN
Signed-off-by: Jesse Szwedko <jesse.szwedko@getbraintree.com>
2015-06-30 17:56:14 +00:00
Mitchell Hashimoto 5c82ac2835 Merge pull request #2356 from mitchellh/b-min-version
packer: validate minimum version [GH-2310]
2015-06-29 13:46:35 -07:00
Mitchell Hashimoto 2498ad02c8 packer: validate minimum version [GH-2310] 2015-06-29 11:49:45 -07:00
Chris Bednarski 94e1f83070 Added a black-box acceptance test for -only and -except build flags 2015-06-27 00:47:50 -07:00
Mitchell Hashimoto 1bcb52a093 command/fix: validate resulting template [GH-2075] 2015-06-13 13:56:09 -04:00
Mitchell Hashimoto 2a6c4e0d2c command/push: output fix 2015-06-09 21:09:56 -07:00
Mitchell Hashimoto 6e9fb6a9d1 command/push: the -name parameter actually works 2015-06-09 21:09:09 -07:00
Mitchell Hashimoto 793698f8a7 command/build: skip nil builds [GH-2163] 2015-06-04 16:25:14 +02:00
Mitchell Hashimoto c49fe672b3 command/validate: bail if can't initialize build [GH-2139] 2015-05-29 16:09:37 -07:00
Mitchell Hashimoto 1b775cca2e packer: core interpolates Push 2015-05-29 15:41:52 -07:00
Mitchell Hashimoto 579264bb5b command/push: interpolate 2015-05-29 15:35:55 -07:00
Mitchell Hashimoto f8c877771d Merge branch 'f-packer-push-name' 2015-05-28 15:18:36 -07:00
Mitchell Hashimoto 590997df44 packer: automatically validate when creating a core 2015-05-28 14:43:15 -07:00
Mitchell Hashimoto 1ee2b014a6 packer: remove Ui/Cache from CoreConfig 2015-05-27 20:09:52 -07:00
Mitchell Hashimoto 8df1bca5a1 command/meta: parse var-files 2015-05-26 09:58:36 -07:00
Mitchell Hashimoto 946f745881 command: don't use packer.Template 2015-05-26 09:38:09 -07:00
Mitchell Hashimoto dc74ec5612 packer: remove Environment 2015-05-25 17:29:10 -07:00
Mitchell Hashimoto 9d89ca8e07 command: build should be converted to new API, compiles 2015-05-23 16:30:45 -07:00
Jack Pearkes 344c741642 command/push: allow specifying a -name param for push target 2015-04-15 12:54:58 -07:00
Seth Vargo cd0d326934 Allow -create to be passed still for BC 2015-02-04 13:36:06 -05:00
Seth Vargo 6728326cc3 Also pass in the template contents and name of the template when pushing 2015-02-04 13:30:40 -05:00
Seth Vargo 983b0b8988 Allow specifying a -message when pushing 2015-02-04 13:30:40 -05:00
Seth Vargo 8e0c7ace3a Add a -message option to pushes 2015-02-04 13:30:40 -05:00
Seth Vargo 17d4c4396c Always create the build configuration if it does not exist 2015-02-04 13:30:39 -05:00
Mitchell Hashimoto f02000c85d command/push: update help text 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto 80c93bfea0 command/push: ctrl-C should work properly 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto cc61a7dfb8 command/push: warn for bad builds 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto c9504d50ba command/push: send artifact true/false if we're post-processing 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto 73c5192b35 command/push: add base_dir setting 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto f76116e4a3 command/push: if a token isn't given, don't set it 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto d08815fc49 command/push: works 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto c1fbc473a2 command/push: propagate token properly 2014-12-09 16:14:04 -08:00
Mitchell Hashimoto 6bd8c6ca79 command/push: support custom endpoints 2014-12-09 16:14:03 -08:00
Mitchell Hashimoto 2f65b1bb67 command/push: create the build config if we can 2014-12-09 16:14:03 -08:00
Mitchell Hashimoto 2f60707463 command/push: actual upload to named build config 2014-12-09 16:14:03 -08:00
Mitchell Hashimoto 0f5ef2ce2b command/push: close reader 2014-12-09 16:14:03 -08:00
Mitchell Hashimoto fbc1551048 command/push: partially implemented, tests 2014-12-09 16:14:03 -08:00
Mitchell Hashimoto 6fb375c89e command: push command 2014-12-09 16:14:03 -08:00
Mitchell Hashimoto 356b48827b command: version tests 2014-10-27 20:58:44 -07:00
Mitchell Hashimoto a5a2c3ceb7 command: support machine-readable still 2014-10-27 20:58:05 -07:00
Mitchell Hashimoto 8dbe0f065c Remove version from "packer" package 2014-10-27 20:51:34 -07:00
Mitchell Hashimoto fa36cf82ee command: move all remaining commands 2014-10-27 20:34:49 -07:00
Mitchell Hashimoto 8054e66db6 command: move more to this package, remove old packages 2014-10-27 20:31:02 -07:00
Mitchell Hashimoto 96b0ec5395 Start putting commands in command/, modify core 2014-10-27 20:21:13 -07:00
Mitchell Hashimoto c6243a2de7 command/build: -color [GH-1433] 2014-09-05 16:05:02 -07:00
Mitchell Hashimoto b5f153a1a2 command/build: -parallel=false to disable parallelization [GH-924] 2014-03-12 21:34:43 -07:00
Mitchell Hashimoto 02bb5b0a97 packer: template process build names [GH-744] 2013-12-27 09:43:59 -07:00
Mitchell Hashimoto 107e47fe25 update commands to new user var syntax 2013-12-27 09:21:17 -07:00
Mitchell Hashimoto 6f449abf2e command/fix: remove some useless comments 2013-12-25 11:16:26 -07:00
Mitchell Hashimoto 87f9eca511 command/fix: rename vmware to vmware-iso 2013-12-25 11:13:32 -07:00
Mitchell Hashimoto 89ab009c3f command/fix: add fixer to fix virtualbox to virtualbox-iso 2013-12-22 16:01:28 -08:00
Mitchell Hashimoto 99cbe1fc42 command/fix: update help 2013-12-19 14:56:12 -08:00
Mitchell Hashimoto 8819594386 command/fix: fix for overrides 2013-12-19 14:54:00 -08:00
Mitchell Hashimoto 84f8c0bfa0 command/fix: cleaner 2013-12-19 14:44:12 -08:00
Mitchell Hashimoto 53bb8a7079 fmt 2013-12-11 14:01:06 -08:00
Mitchell Hashimoto 6a141ba552 command/inspect: output the description if we have it 2013-12-11 13:48:18 -08:00
Mitchell Hashimoto 05e61e1a07 command/build: output warnings 2013-11-02 23:21:12 -05:00
Mitchell Hashimoto 87e88dc847 command/build: get command passing 2013-11-02 23:09:58 -05:00
Mitchell Hashimoto 5d45d9b728 command/validate: output warnings 2013-11-02 23:09:30 -05:00
Mitchell Hashimoto 49680548f4 command/fix: add synopsis option to fixers
This will be used in help output and such later
2013-11-02 11:34:54 +01:00
Mitchell Hashimoto 03321c7cdb command/fix: add fixer to auto set guest_additions_mode 2013-11-02 11:34:54 +01:00
Mitchell Hashimoto 8c9d24541b command/build: remove asserts framewor 2013-10-16 16:27:15 -10:00
Mitchell Hashimoto 8e9428633b command/inspect: fix weird output 2013-09-02 15:38:57 -07:00
Mitchell Hashimoto 977969a7e9 command/inspect: cleaner output if no required vars 2013-08-31 17:49:22 -07:00
Mitchell Hashimoto 0b975b9203 command/inspect: show required variables differently 2013-08-31 17:47:38 -07:00
Mitchell Hashimoto 03cdac3028 command/build: build error machine-readable is targetted to the build 2013-08-27 15:03:49 -07:00
Mitchell Hashimoto cd95f21d4a command/build: "end" sentinel in artifact machine-readable output 2013-08-27 13:40:19 -07:00
Mitchell Hashimoto 84d91c5f1a command/build: put build errors in machine readable output 2013-08-27 13:37:31 -07:00
Mitchell Hashimoto 5515d6f845 command/inspect: template-build should be template-builder 2013-08-13 21:35:01 -04:00
Mitchell Hashimoto f56f1740fd command/inspect: change logging to be %#v for better values 2013-08-13 09:53:30 -07:00
Mitchell Hashimoto 588623b008 command/inspect: help text shows machine-readable flag 2013-08-13 09:38:54 -07:00
Mitchell Hashimoto 30f9358edc command/inspect: Inspect a templates contents
This command prints out the components of a template, and most
importantly respects the machine-readable flag so that you can
programmatically inspect a template's contents without manually parsing
the JSON.
2013-08-13 09:36:40 -07:00
Mitchell Hashimoto fd3bce0444 command/build: use the real artifact string in machine readable 2013-08-12 10:31:36 -07:00
Mitchell Hashimoto 568f635824 command/build: machine-readable artifacts 2013-08-12 10:09:45 -07:00
Mitchell Hashimoto a675b89b0e packer: -machine-readable not double hyphen 2013-08-11 23:26:24 -07:00
Mitchell Hashimoto 02edc7579b packer: Rename ReaderWriterUi to BasicUi 2013-08-11 18:20:27 -07:00
Mitchell Hashimoto 51cfc355c9 command/bulid: cosmetic, align help text 2013-08-09 16:46:38 -07:00
Mitchell Hashimoto afab2e44d7 command/build,validate: accept -var-file 2013-08-09 16:46:06 -07:00
Mitchell Hashimoto 56c36c12ed command/build,validate: pass user vars to Prepare 2013-08-09 15:57:09 -07:00
Mitchell Hashimoto 229eab0623 common/command: rename BuildFilters to BuildOptions 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto 165ce3b4a8 command/build,validate: use new ParseTemplateFile methods 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto 8507e8098d command/validate: accept -only/-except and use new common stuff 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto 089df41aac common/command: introduce this package for common cmmand stuff 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto 88d274537c command/build,validate: compiles again with latest user var changes 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto e66208c239 command/fix: replace CreateTime with new timestamp 2013-08-08 17:25:26 -07:00
Mitchell Hashimoto 4ddb4ab8d1 command/fix: log fixer to run 2013-08-08 17:25:26 -07:00
Mitchell Hashimoto 64ecc5cad7 command/fix: use strings instead of Fixer for list 2013-08-08 17:25:26 -07:00
Mitchell Hashimoto 8fb4e1ab88 add tests files to everything to test compilation 2013-07-30 16:05:20 -07:00
Mitchell Hashimoto 2227e5ab31 command/build: if any builds fail, exit with 1 exit status 2013-07-23 13:36:07 -07:00
Mitchell Hashimoto 3130fb43a7 command/fix: properly replace the escaped </> 2013-07-14 17:10:50 +09:00
Mitchell Hashimoto 7fc30436d5 command/fix: run the iso-md5 fixer 2013-07-14 17:05:26 +09:00
Mitchell Hashimoto ab2af979fd command/fix: fixer for iso_md5 change 2013-07-14 16:51:20 +09:00
Mitchell Hashimoto aae210f12d command/fix: boilerplate for the fix command 2013-07-14 16:22:18 +09:00
Jason A. Beranek 13c733a3db Add support for -force flag on builds [GH-119] 2013-07-11 23:43:23 -05:00
Brandon Liu 9a82910f9a Command helpText indicates that options must come before template. 2013-07-02 13:07:39 -07:00
Mitchell Hashimoto a000934154 command/build: include the build name in the err/success output 2013-06-27 22:26:48 -04:00
Mitchell Hashimoto bd6f176bf0 packer: Builds use their own UI [GH-21] 2013-06-27 21:55:59 -04:00
Mitchell Hashimoto bb5b12d77e command/build: output <nothing> properly if no artifact 2013-06-19 13:07:52 -07:00
Mitchell Hashimoto 4912b485e2 command/build: Say if no artifacts were created 2013-06-18 22:53:30 -07:00
Mitchell Hashimoto 6873999620 command/validate: lol spelling error 2013-06-18 21:10:46 -07:00
Mitchell Hashimoto 0efabb66dd command/validate: better logging 2013-06-18 21:10:34 -07:00
Mitchell Hashimoto 75b2fab7b5 command/build, command/validate: Setup proper components to avoid nil 2013-06-18 16:29:29 -07:00
Mitchell Hashimoto 218692950b packer: Build can return multiple artifacts 2013-06-18 10:24:23 -07:00
Mitchell Hashimoto 8f097399bf command/build: only output artifacts if we have some 2013-06-17 11:49:12 -07:00
Mitchell Hashimoto 47dcd47376 command/build: Improved output when builds error 2013-06-17 11:48:21 -07:00
Mitchell Hashimoto 22e7345148 packer: Ui requires input for Ctrl-C 2013-06-14 17:37:38 -07:00
Mitchell Hashimoto 4c1873d1f3 command/build: Redo interrupt handling to be more robust 2013-06-14 17:20:11 -07:00
Mitchell Hashimoto e0f2bcf8a2 packer: Add "Ask" method to Ui to ask for input 2013-06-14 15:17:03 -07:00
Mitchell Hashimoto 45566feb75 command/build: Say we're in debug mode if we're in it 2013-06-14 14:47:28 -07:00
Mitchell Hashimoto bd843cfc16 command/build: -debug flag enables debug mode 2013-06-14 13:14:17 -07:00
Mitchell Hashimoto 4daefc2588 fmt 2013-06-13 10:24:10 -07:00
Mitchell Hashimoto 57725da852 command/validate: Validate configuration 2013-06-13 10:21:56 -07:00
Mitchell Hashimoto a35feebe70 packer: Build no longer takes Ui for Prepare 2013-06-13 10:08:31 -07:00
Mitchell Hashimoto c8120bc2eb TODO in command/validate 2013-06-13 10:06:06 -07:00
Mitchell Hashimoto 0b896a0ce2 command/validate: validates templates 2013-06-13 10:03:52 -07:00
Mitchell Hashimoto d6b0ff6a7f command/build: Add -except flag 2013-06-13 09:47:13 -07:00
Mitchell Hashimoto a0a78b68e8 builder/common: Create a downloader 2013-06-12 17:41:44 -07:00
Mitchell Hashimoto 521b59a6fa Make everything support the new builder interface 2013-06-12 16:06:56 -07:00
Mitchell Hashimoto 2de0238f10 command/build: Change default colors 2013-06-12 10:47:01 -07:00
Mitchell Hashimoto 0f98852d4d packer: Ui error output is red 2013-06-12 10:41:58 -07:00
Mitchell Hashimoto 62309cb6de Build/Builder take a Cache object now 2013-06-09 22:00:47 -07:00
Mitchell Hashimoto 8641215581 command/build: Much improved artifact output 2013-06-07 22:15:12 -07:00
Mitchell Hashimoto 05e047a355 command/build: Say the build is finished when it is finished 2013-06-07 21:36:26 -07:00
Mitchell Hashimoto bfbc3e376c command/build: add more logging 2013-06-05 18:36:59 -07:00
Mitchell Hashimoto bc670323c7 command/build: Fix scoping again 2013-06-05 17:51:13 -07:00
Mitchell Hashimoto 81595258be command/build: Lexical scoping bug to get the right build 2013-06-05 17:46:23 -07:00
Mitchell Hashimoto 009b509138 command/build: Output nothign if artifact is nil 2013-06-05 15:36:41 -07:00
Mitchell Hashimoto 87e7f17aa7 command/build: Add -only flag 2013-06-04 14:13:02 -07:00
Mitchell Hashimoto 2dd5a982e5 command/build: Cleanly exit after being interrupted 2013-06-04 08:40:17 -07:00
Mitchell Hashimoto 3956b3a515 command/build: Cancel builds when interrupted 2013-06-03 16:14:10 -07:00
Mitchell Hashimoto e21d389fd2 packer: Fixin bugs in PrefixUi calling the wrong method 2013-06-03 13:54:28 -07:00
Mitchell Hashimoto 3a61196f15 command/build: Wrap the onion the right way 2013-06-03 13:47:49 -07:00
Mitchell Hashimoto aee0799988 command/build: Colors! 2013-06-03 13:43:38 -07:00
Mitchell Hashimoto c5d539ef13 command/build: Better prefixes 2013-06-03 11:40:08 -07:00
Mitchell Hashimoto edab952a68 packer: Add Message method to Ui 2013-06-03 11:30:38 -07:00
Mitchell Hashimoto 6bcd5de6f5 command/build: Help text 2013-06-02 15:17:04 -07:00
Mitchell Hashimoto bbafcfa938 packer, etc: added Help method to Command interface
This will be used for long-form help when "packer help foo"
or "packer foo --help" is called.
2013-06-02 11:41:12 -07:00
Mitchell Hashimoto 33f8d29571 builder/amazonebs, command/build: use new UI interface 2013-05-27 15:15:42 -07:00
Mitchell Hashimoto 84891701bd go fmt 2013-05-23 21:59:03 -07:00
Mitchell Hashimoto d919f9545a command/build: Specify a provisioner function 2013-05-22 16:56:04 -07:00
Mitchell Hashimoto cb91ca72ac packer: Build.Prepare takes a UI 2013-05-22 16:20:40 -07:00
Mitchell Hashimoto fc0c1a726c command/build: No newlines in output now 2013-05-22 14:25:58 -07:00
Mitchell Hashimoto 09ca5be74f command/build: Newline before results 2013-05-22 13:25:12 -07:00
Mitchell Hashimoto 4011660fc8 command/build: Output artifact info 2013-05-21 22:38:56 -07:00
Mitchell Hashimoto 64ea06d542 command/build; Remove end UI stuff 2013-05-21 15:48:42 -07:00
Mitchell Hashimoto 9a3a3bad55 command/build: properly prefix the build outputs 2013-05-21 15:43:50 -07:00
Mitchell Hashimoto 6a98134682 command/build: Use PrefixedUi for each build 2013-05-21 15:10:51 -07:00
Mitchell Hashimoto 15f215d04f go fmt 2013-05-20 16:50:35 -07:00
Mitchell Hashimoto 779f489894 packer: Template takes a component finder 2013-05-11 09:56:42 -07:00
Mitchell Hashimoto 44bd56c3a8 go fmt 2013-05-10 17:01:24 -07:00
Mitchell Hashimoto 185d2765be command/build: Run the builds in parallel 2013-05-10 13:01:54 -07:00
Mitchell Hashimoto c580faa1a5 packer/rpc: error interface wrapper to RPC errors around 2013-05-09 13:59:33 -07:00
Mitchell Hashimoto 9600bf5b4b packer: Build.Name 2013-05-09 11:32:03 -07:00
Mitchell Hashimoto 8ffbc2efe7 packer: Start pulling out the global config stuff 2013-05-08 17:28:05 -07:00
Mitchell Hashimoto 4b665e39bd Fix the UI 2013-05-08 17:01:57 -07:00
Mitchell Hashimoto fd2d8480e1 Lots more logging everywhere 2013-05-08 16:59:36 -07:00
Mitchell Hashimoto bc01d28857 command/build: More complete error handling 2013-05-08 15:14:08 -07:00
Mitchell Hashimoto 95153413a6 packer: Ui has Error method 2013-05-08 15:12:48 -07:00
Mitchell Hashimoto a803af7016 Move the build command into the actual build command 2013-05-08 14:58:06 -07:00
Mitchell Hashimoto adb533fd3e Properly defer a client cleanup in case of a pnic 2013-05-08 13:06:57 -07:00
Mitchell Hashimoto 8a32494e3f Start working on logging across the board 2013-05-08 09:46:37 -07:00
Mitchell Hashimoto 91ade277a6 Create the build command/plugin 2013-05-07 11:39:32 -07:00
Mitchell Hashimoto 399d8ab028 Build command plugin 2013-05-07 11:14:14 -07:00
Mitchell Hashimoto fefd2ae208 Separate commands into other directories 2013-04-21 19:04:35 -07:00