Commit Graph

1456 Commits

Author SHA1 Message Date
Chris Bednarski 79f748ef73 Merge pull request #4156 from friism/patch-1
fix markdown
2016-11-16 17:23:17 -08:00
Matthew Hooker 7443e21992
fix broken link in docs 2016-11-16 12:39:23 -08:00
Arthur Burkart 2e65867cba Closes #3908: Adds snapshot tag overrides
This commit adds the ability to configure unique tags on snapshots
that are separate from the tags defined on the AMI. Anything applied
to the AMI will also be applied to the snapshots, but `snapshot_tags`
will override and append tags to the tags already applied to the snapshots
2016-11-15 23:16:27 -05:00
jasminSPC 484960c9d1 Fixes #4169 2016-11-16 00:17:30 +01:00
Peter Schultz 54aa830943 builder/googlecompute: split docs for source_image and source_image_family
Also update the example values to currently non-deprecated images.
2016-11-14 13:06:43 +01:00
jasminSPC dc231f9600 PR remarks 2016-11-13 23:54:55 +01:00
jasminSPC 4bcba37f38 Packer Builder 1&1 2016-11-13 23:34:36 +01:00
Peter Schultz bcb319640e builder/googlecompute: support source image family
Closes #4100
2016-11-13 16:54:04 +01:00
Jasper Siepkes 200aa74e78 Added support for passing arguments to salt-call. 2016-11-11 15:15:16 +01:00
Michael Friis 45188f2f2c fix markdown 2016-11-10 18:40:50 -08:00
Matthew Hooker 042f4b7bfb
fix documentation wrt command line variables. 2016-11-09 16:05:52 -08:00
Matthew Hooker 1cf9dbf27d
fix json 2016-11-09 11:20:06 -08:00
Rickard von Essen 233913bc38 Fixed misspelling of semantics 2016-11-05 13:57:57 +01:00
Matthew Hooker 3d69af1247 sort/uniq IAM policies 2016-11-03 11:49:50 -07:00
Matthew Hooker ac8e70ade0 Revert "Remove duplicate permission"
This reverts commit 78067ff949.
2016-11-03 11:48:55 -07:00
Matthew Hooker 8eab0ee5b2 Merge pull request #4109 from mitchellh/b-docs
builder/amazon: Fix doc of EBS Volume builder name
2016-11-03 10:29:57 -07:00
James Nugent 33c423529d builder/amazon: Fix doc of EBS Volume builder name
Various things still referred to `ebsinit` or `ebs-volume` - the
imported name was `amazon-ebsvolume`.
2016-11-03 11:59:02 -04:00
Amo Chumber 78067ff949 Remove duplicate permission
In the suggested policy `ec2:CopyImage` was listed twice.

I've also sorted alphabetically to make it easier for somebody who might be recreating the policy in the AWS gui to follow along more easily.
2016-11-03 14:41:12 +00: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 970b37077e Merge pull request #4050 from jen20/ssh-agent
builder/amazon: Allow use of local SSH Agent
2016-11-01 17:27:37 -07:00
Matthew Hooker fcca905d40 Merge pull request #4085 from mitchellh/sethvargo/security
Add security page
2016-10-31 17:38:11 -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
Matthew Hooker 93f0436766 Merge pull request #3909 from svanharmelen/f-cloudstack-builder
Add a CloudStack builder
2016-10-31 13:34:20 -07:00
Seth Vargo 5c3259b2d2
Add security page 2016-10-29 14:16:06 -04:00
Rickard von Essen 0e7eac7546 Merge pull request #4075 from artburkart/update-aws-chroot-docs
Updates root_volume_size documentation
2016-10-27 08:10:12 +02:00
Arthur Burkart 3eaa8a2dc3 Updates root_volume_size documentation
It didn't indicate its unit of size (GB), the default value was not
indicated, the fact that it ignores the user-given size when it is
smaller than the source AMI's snapshot size, and the fact that the
value is required when `from_scratch` is `true` all needed to be added.
2016-10-27 00:20:45 -04:00
Maxim Fedchyshyn 77efbe572d Fixed typo at chef-solo.html.md 2016-10-26 16:41:53 -07:00
Rickard von Essen d3e3889559 Merge pull request #4065 from ksatirli/patch-2
fixes identifier for launch_device_mappings
2016-10-26 21:05:51 +02:00
Rickard von Essen 574fb995b0 Merge pull request #4067 from jrnt30/website-updates
- Adding in links for new post-processors missing

(And removed some trailing spaces)
2016-10-26 20:44:44 +02:00
Rickard von Essen efb591323f Merge pull request #4064 from tylert/env-vars-doc-typo-fix
Improve clarity of environment vars doc PACKER_LOG setting
2016-10-26 20:42:27 +02:00
Tyler Tidman 5b25ba655b Match title capitalization of compress to other post-processors 2016-10-26 14:18:47 -04:00
Justin Nauman 38bf53ed84 - Adding in links for new post-processors missing 2016-10-26 12:27:07 -05:00
Kerim Satirli 723a4a1a53 fixes identifier for launch_device_mappings
Hi!

I believe the **Note** to reference an incorrect variable: `launch_device_mappings `; this should be `launch_block_device_mappings` as far as I can tell from the [code](https://github.com/mitchellh/packer/search?utf8=%E2%9C%93&q=launch_block_device_mappings).
2016-10-26 16:38:26 +02:00
Tyler Tidman e15a169831 Improve clarity of environment vars doc PACKER_LOG setting 2016-10-26 09:54:05 -04:00
Rickard von Essen d16d5d9686 Merge pull request #3817 from ChrisLundquist/dynamic-source-ami
Dynamic source ami
2016-10-25 21:24:41 +02:00
Jinesh Choksi 0f4d2341cb Packer v0.11.0 requires "ec2:DescribeSecurityGroups" permissions to work
Without the "ec2:DescribeSecurityGroups" permission, you would get the following error:

2016/10/25 16:03:28 ui: ==> aws: Creating temporary security group for this instance...
2016/10/25 16:03:28 packer.exe: 2016/10/25 16:03:28 Temporary group name: packer 580f7440-2135-068c-99b7-35595a7522d1
2016/10/25 16:03:28 ui: ==> aws: Authorizing access to port 22 the temporary security group...
2016/10/25 16:03:28 packer.exe: 2016/10/25 16:03:28 [DEBUG] Describing tempSecurityGroup to ensure it is available: sg-38e0355e
2016/10/25 16:03:29 packer.exe: 2016/10/25 16:03:29 [DEBUG] Error in querying security group UnauthorizedOperation: You are not authorized to perform this operation.
2016/10/25 16:03:29 packer.exe: 	status code: 403, request id: bc664eff-cc01-42c1-8408-23493c11d92d
2016-10-25 16:27:20 +01:00
James Nugent 395d88941c amazon: Allow SSH Agent auth for existing key pair
This commit allows SSH Agent authentication to be used with an existing
key pair defined in AWS.
2016-10-23 22:26:14 -05:00
James Nugent 7425fef2c7 builder/amazon: Allow use of local SSH Agent
This commit adds an option to use the local SSH Agent to authenticate
connections to source instances started by the the EBS and Instance
Store builders.

This is of use when the source AMI _already_ has configuration for
authorized SSH keys - for example if one uses an SSH certificate
authority.

A further extension (not implemented in this commit) is to allow SSH
agent use with a pre-defined key pair, in order to allow keys with
passphrases to be used without giving the passphrase to Packer.
2016-10-23 21:43:47 -05:00
Rickard von Essen 841f4d00b0 Merge pull request #4043 from minimum2scp/features/googlecompute/custom-scopes
googlecompute builder: support custom scopes
2016-10-22 21:14:49 +02:00
Rickard von Essen dd89aa7243
Formatted the default value and cleaned some trailing spaces. 2016-10-22 21:06:07 +02:00
Rickard von Essen 3b42d28cce Merge pull request #4014 from mexisme/feature/puppet-bin-dir
privisioner/puppet: Add `puppet_bin_dir` option.
2016-10-22 14:48:45 +02:00
YAMADA Tsuyoshi 283d3e5758 Updated document 2016-10-22 15:46:19 +09:00
Matthew Hooker 892d5e82c9 expect_disconnect option
provisioner/shell: Adds option to fail if the remote server disconnects
us.
2016-10-21 11:39:03 -07:00
Michael Vermaes bf17b4bd01 Add tools_upload_flavor/path to vmware-vmx docs 2016-10-21 18:19:08 +08:00
Matthew Hooker 9185066019 Merge pull request #4033 from mitchellh/4026-alt
4026 alt
2016-10-20 11:55:16 -07:00
Matthew Hooker fd324f4a97 use inconsolata monospace 2016-10-19 14:11:28 -07:00
7heo 4a4d529b33 Get rid of unnecessary `-E` flag for `sudo`
In the "Execute Command Example - Sudo Example", the used command is
defining environment variables prematurely, hence requiring the sudo
invocation to be made with the `-E` flag. However, this is not only
necessary but might have indesirable side effects, as the `-E` flag
forwards the whole environment to the subshell.
2016-10-19 16:47:16 +02:00
Lyle Mantooth bb2b66e869 Make <code> tags easier to read.
Increases the font-weight so that the light-green text on black
backgrounds stand out better, especially in inline code tags.
2016-10-19 09:15:47 -04:00
Arthur Burkart 4a00ffeea2 Closes #3999 - Support VirtualBox Trim/Discard
Adds a couple options to enable/disable the `--nonrotational` and
`--discard` flags during `VBoxManage storageattach` command execution
2016-10-17 08:52:28 -04:00
mexisme 050306b9d0 Update docs for puppet-masterless and puppet-server provisioners 2016-10-17 09:24:56 +13:00
Sander van Harmelen dbf3bf56d4 Add a CloudStack Builder 2016-10-16 15:29:18 +02:00
Rickard von Essen ecdf59b7b9
Slightly reworded docs for chroot_mounts in amazon-chroot builder
Closes #3081
2016-10-15 14:42:36 +02:00
Chris Lundquist e15c22797b Update amazon-instance.html.md 2016-10-14 11:53:40 -07:00
Chris Lundquist 7edc3f9857 Update amazon-ebs.html.md 2016-10-14 11:53:12 -07:00
Chris Lundquist 77a7728fd5 Update amazon-chroot.html.md 2016-10-14 11:51:19 -07:00
Matthew Hooker 516f403993 remove custom command documentation.
it was removed in #1629
2016-10-13 16:16:48 -07:00
Christopher Boumenot 249a943a1e azure: Allow user to override size of OS disk 2016-10-12 16:24:04 -07:00
jasminSPC 5da380baed Error handling
Minor typo fixes
2016-10-13 00:41:04 +02:00
Christopher Boumenot 68c6f64987 azure: fix documentation wording 2016-10-12 15:17:09 -07:00
Scott Crunkleton 591eb12806 Added googlecompute documentation for the source_image_project_id option. It was previously missing. 2016-10-12 13:48:37 -07:00
Purple90 17f3fac39b Update vagrant.html.md
Grammar fix. Anyways -> anyway
2016-10-12 09:09:43 -05:00
jasminSPC dca286bf38 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-10-10 23:53:52 +02:00
Rickard von Essen 5e96709ee9 Merge pull request #2919 from arizvisa/floppy-recurse
Added an option for copying entire subdirectories via floppy_dirs (supplants floppy_files)
2016-10-08 16:51:16 +02:00
Matthew Hooker 4ac1f5a105 Merge pull request #3972 from mitchellh/pr-3777
instructions for installing with chocolatey
2016-10-07 23:57:48 -07:00
Matthew Hooker 28dc5055d3 rewrite to be complete sentence 2016-10-07 23:52:13 -07:00
Matthew Hooker b8da25f599 choco install 2016-10-07 23:49:01 -07:00
Matthew Hooker 09bbd0e1cd fix tense 2016-10-07 18:00:21 -07:00
Matthew Hooker 83131db4b8 Merge pull request #3776 from curiositycasualty/master
Add custom_state config to salt provisioner
2016-10-07 17:59:52 -07:00
Bartosz "mastier" Woronicz dac049d4f3 disable log also for PACKER_LOG=0 2016-10-05 16:43:12 +02:00
Matthew Hooker 8ef2077c33 Merge pull request #3957 from mitchellh/clockskewhelp
add some debugging info for if your clock is skewed
2016-10-04 16:45:35 -07:00
evanstucker-hates-2fa a515c35338 Update shell.html.md
Changing to ".javascript".
2016-10-04 09:41:56 -07:00
evanstucker-hates-2fa cd10cef218 Update shell.html.md
Putting sleep after the reboot didn't work for me. It would just hang indefinitely. There's a better way, and it's "pause_before".
2016-10-04 09:19:26 -07:00
Matthew Hooker 24c4ba3bb5 add the error you might see 2016-10-03 17:40:52 -07:00
Matthew Hooker bddb2c25f2 documentation and changelog for #3952 2016-10-03 16:32:29 -07:00
Matthew Hooker 7b2ed0dd76 CHANGELOG and docs for #3954 2016-10-03 13:00:55 -07:00
Rickard von Essen 0be3034e82 Merge pull request #3953 from rickard-von-essen/amz-ssh
builder/amazon: Allow using ssh_private_key_file and ssh_password
2016-10-03 10:22:15 +02:00
Rickard von Essen a04988a597 Updated docs to reflect support for ssh_password 2016-10-03 10:03:45 +02:00
Rickard von Essen a38e16bdd8 Delete ssh_username from the builder/amazon docs 2016-10-03 09:54:08 +02:00
Matthew Hooker 7a1b84cec1 add some debugging info for if your clock is skewed 2016-10-02 17:32:57 -07:00
Rickard von Essen cffc8e892c Merge pull request #3382 from ahamidi/encrypted-boot-volume
Create AMI with encrypted boot volume
2016-10-02 01:02:43 +02:00
Chris Lundquist 0e2637696b [dynamic-source-ami] minor doc improvements 2016-10-01 22:27:48 +00:00
Chris Lundquist 1b4895c684 Merge remote-tracking branch 'origin/master' into dynamic-source-ami 2016-10-01 22:20:17 +00:00
Rickard von Essen 7fec12a183 Merge pull request #3941 from imduffy15/master
Allow naming of vm imported AMIs
2016-10-01 07:28:28 +02:00
Matthew Hooker 4a91a0a78c Merge pull request #3841 from rickard-von-essen/capitalize-docs-index
Capitalize documentation index correctly
2016-09-30 13:18:51 -07:00
Rickard von Essen c33a967ffc Merge pull request #3842 from rickard-von-essen/file-builder-docs
Added file builder documentation.
2016-09-30 22:14:27 +02:00
Rickard von Essen 8f35a8267d Merge pull request #3893 from rickard-von-essen/aws-doc-default-values
builder/amazon: Added and corrected some default values in the docs.
2016-09-30 22:14:03 +02:00
Ian Duffy 641ae2d837
Allow naming of vm imported AMIs
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-09-29 16:12:57 +01:00
Michael Nikitochkin 343c594bb3
Added UserDataFile support for DigitalOcean builder config. 2016-09-28 15:00:57 +02:00
Ali Rizvi-Santiago 86c00490e9 Renamed any and all instances of the word "FloppyContents" to "FloppyDirectories".
Ensure that all builders include FloppyDirectories in the StepCreateFloppy options.
Changed the way the unit-tests in common/step_create_floppy_test work to use the static test-fixtures directory instead of creating the paths dynamically.
Removed a duplicate line of documentation from parallels-pvm.html.md that occurred during rebasing.
2016-09-27 23:31:42 -05:00
Arve Knudsen 4e3da3ef54 Improve language 2016-09-27 12:44:41 -07:00
Rickard von Essen 06e3539ffa Merge pull request #3767 from taliesins/ExtendScanCodes
Add support for ctrl, shift and alt keys and using them as key modifier.
2016-09-20 21:36:46 +02:00
Taliesin Sisson ec6ea32618 Made requested documentation changes.
Line break at 80 chars.
2016-09-20 16:55:56 +01:00
Rickard von Essen 13c9db5dd5 Merge pull request #3885 from orivej/on-error
Add -on-error command line argument to allow preserving artifacts on builder errors
2016-09-20 12:28:14 +02:00
Arthur Barr d2c6b0ef8a Fix typo
"i.e." instead of "i.g."
2016-09-20 09:36:15 +01:00
Orivej Desh 4fe86244a5 Improve -on-error descriptions 2016-09-18 03:00:36 +00:00
Orivej Desh 115cb5080f Document NewRunner 2016-09-16 12:15:00 +00:00
Orivej Desh e9cc28565b Document -on-error on the "packer build" page 2016-09-16 12:15:00 +00:00
Rickard von Essen 8193075c7c
builder/amazon: Added and corrected some default values in the docs. 2016-09-16 13:57:41 +02:00
Rickard von Essen c5e9944969 Merge pull request #3790 from yoctocloud/manifest
post-processor/manifest: add artifact file size to manifest
2016-09-14 21:20:29 +02:00
jasminSPC 178748bb7c Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-09-14 15:32:30 +02:00