Commit Graph

936 Commits

Author SHA1 Message Date
Rickard von Essen eefa3e3ffb
amazon-chroot: Fixed indentation 2017-03-15 20:09:07 +01:00
Rickard von Essen 8c2a8f5f81 Merge pull request #4655 from lbordowitz/ostk-sshca
OpenStack: Add ssh agent support
2017-03-14 21:07:03 +01:00
Rickard von Essen ad5a41082e
openstack: Updated docs for ssh_agent_auth and temporary_key_pair_name 2017-03-13 20:18:05 +01:00
zhuzhih2017 0400ebae95 Fix the code according PR review 2017-03-12 10:22:25 +08:00
Rickard von Essen a047916944 Merge pull request #4621 from hui-yang/disk-type
builder/parallels-iso: Configuration of disk type, plain or expanding
2017-03-10 19:32:41 +01:00
Rickard von Essen de73e22e2c
Reverted command/plugin.go and reworded docs 2017-03-10 19:18:44 +01:00
Larry Bordowitz c5b8a1069a Add ssh agent to enable SSH-CA authentication. 2017-03-10 08:45:50 -08:00
Rickard von Essen 2f50d7bea5 googlecompute: Added missing disk_name option to docs. 2017-03-08 19:47:08 +01:00
Rickard von Essen eac5b6392d googlecompute: Correct values for on_host_maintenance
If preemptible is true then on_host_maintenance must be TERMINATE.

Also corrected order in docs.

Closes #4620
2017-03-08 19:44:07 +01:00
huiyang b3c6ef9f6b Skip disk compaction for plain disks 2017-03-07 18:22:23 -08:00
Matthew Hooker 57d2fede3f
the digitalocean ubuntu user is root 2017-03-06 13:08:34 -08:00
Matthew Hooker 615b903817 Merge pull request #4628 from mitchellh/re4622
Re4622
2017-03-06 10:27:38 -08:00
Matthew Hooker 5ac53907c2
docs/qemu: reformat 2017-03-06 10:26:58 -08:00
Michael Ledin ded2693ee7
Add floppy size limitation notice.
Should help people dealing with #4570 and #3328 because packer copies
`floppy_files` to floppy without any error even if they exceed 1.44 MB
limit. `floppy_dirs`throws error about FAT size limit exceeded but
without mentioning that real issue is the floppy size limit:
```
Build 'qemu' errored: Error adding path virtio_iso to floppy: FAT FULL
```
2017-03-06 10:26:49 -08:00
Kerim Satirli 37feec41d9 fixes broken link to EBS surrogate page 2017-03-06 09:44:07 +01:00
huiyang 52d4514d6a builder/parallels-iso: Configuration of disk type, plain or expanding 2017-03-03 15:32:51 -08:00
zhuzhih2017 fadfb696dd Add packer plugin which support alicloud ecs images 2017-03-03 16:56:17 +08:00
Matthew Hooker 24275aed41
fix triton layout 2017-03-02 01:06:30 -08:00
Matthew Hooker 131e1e3857
clarify that it's profile name 2017-02-28 23:23:36 -08:00
Matthew Hooker 6b95de73c4
document how aws-sdk uses the shared credentials file
from https://docs.aws.amazon.com/sdk-for-go/api/aws/credentials/\#SharedCredentialsProvider
2017-02-28 23:09:52 -08:00
James Nugent e856339309 build/amazon-ebssurrogate: Add region copy, attributes, tags steps
As pointed out in the initial code review of #4351, some of the steps
from the standard EBS builder were (intetionally) omitted. It turns out
that these actually are useful, and the original rationale for the
omission was wrong. Consequently, this commit adds in the following
steps:

- `StepPrevalidate`
- `StepTagEBSVolumes`
- `StepDeregisterAMI`
- `StepCreateEncryptedAMICopy`
- `StepAMIRegionCopy`
- `StepModifyAMIAttribute`
- `StepCreateTags`

We also fix the interpolation filter and documentation to reflect these
additions, though the majority were already documented and just not
functional.
2017-02-27 09:05:39 -06:00
Matthew Hooker 61976dfd86 Merge pull request #4578 from life360/enable_ena
Always set both SRIOV and ENA when Enhanced Networking is enabled
2017-02-26 19:31:22 -08:00
Matthew Hooker 1f2df5c174 Merge pull request #4536 from mitchellh/vmwareextraopts
builder/vmware: allow extra options for ovftool
2017-02-26 18:45:40 -08:00
Matthew Hooker 1351a9ce1a
also document the kms field 2017-02-26 17:54:42 -08:00
Matthew Hooker 6b2d73c042
ebs surrogate does not support ebs encryption 2017-02-26 17:54:30 -08:00
Matthew Hooker 78fea60bce
document encrypt_boot option for chroot 2017-02-26 17:49:33 -08:00
Aaron Stone 7f7909d6d4 Docs for Enhanced Networking enabling both SriovNetSupport and ENA 2017-02-25 07:16:47 -08:00
Christopher Boumenot 0c04b3a46a Update docs for deprovision and defaults
Change the Windows samples to include sysprep.

Document the default user name for Linux, and why it was chosen.

Document temp_compute_name and temp_resource_group_name, and provide a
reason why you would want to override them.

Document the deprovision process for Windows and Linux.

Document the skip_clean option as it pertains to Linux deprovision.
2017-02-23 10:43:12 -08:00
hfinucane 4eed1b8377 Fix example
`device_setup_commands` appears to no longer be a real name.
2017-02-22 10:32:49 -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 3409ea76ee Merge pull request #4564 from wtsi-hgi/fix/4551-openstack-builder-reuse-ips
add reuse_ips option for openstack builder
2017-02-21 15:20:10 -08:00
Matthew Hooker 83de056e7f
document docker staging directory. 2017-02-21 14:50:06 -08:00
Basil Peace d9a669f55c
Use .HTTPIP instead of fixed IP address 2017-02-21 22:34:16 +03:00
Matthew Hooker b04a878ea8
small spelling fix 2017-02-21 11:13:06 -08:00
Joshua Randall e9cfaa2730 add reuse_ips option for openstack builder
add reuse_ips option and use it to control whether openstack builder
will attempt to reuse existing unassigned floating ips rather than
allocating a new one.

fix #4551
2017-02-16 12:44:03 +00:00
Matthew Hooker 488767bc25
add a note about temporary resource names 2017-02-10 19:51:43 -08:00
Matthew Hooker 1d0879ef42
miscellaneous spelling fixes 2017-02-10 19:51:38 -08:00
Matthew Hooker 7911d3a13b
more information about the temporary keypair name 2017-02-10 19:38:34 -08:00
Matthew Hooker 6eaf8f4559
tighten up docs 2017-02-10 12:11:08 -08:00
Dimitri Rudnev 2009fcd9df OnHostMaintenance, googlecompute updating documenation , additional option for validation and setting defaults 2017-02-10 11:57:15 -08:00
Matthew Hooker 0ed84f843e
builder/vmware: allow extra options for ovftool 2017-02-10 00:22:20 -08:00
Matthew Hooker 65a9b8edf4
builder/amazon: `ssh_private_ip` works for winrm 2017-02-04 01:01:58 -08:00
Matthew Hooker c0f8f44a10
remove obsolete config key 2017-02-02 01:25:03 -08:00
Matthew Hooker fe4dd6ef23 Merge pull request #4205 from jfbibeau/patch-1
Docs: add QCOW2 format support for `iso_url`
2017-01-30 12:10:05 -08:00
Matthew Hooker 76f897077d Merge pull request #4399 from rickard-von-essen/aws-interpolate
WIP: builder/amazon: Interpolate {{ .BuildRegion }} and {{ .SourceAMI }}
2017-01-26 11:41:16 -08:00
jasminSPC 75e6688871 Fixes #4454 2017-01-25 17:17:55 +01:00
jasminSPC f55b2b27ae Fixes #4454 2017-01-25 17:05:09 +01:00
Greg Parsons 88a1e7b572 adds readme section for changes 2017-01-23 15:19:56 -08:00
Rickard von Essen ce411a0d17 Added docs for SourceAMI and BuildRegion template 2017-01-21 20:39:58 +01:00
Matthew Hooker 47558ebd83 Merge pull request #4410 from mitchellh/docs-block-device
Clarified when to use launch_ vs ami_ for block devices
2017-01-17 22:02:40 -08:00
Chris Bednarski b7c73b89ac Propagate block device doc changes to AWS chroot and instance builder docs 2017-01-17 21:32:18 -08:00
Matthew Hooker 94a2aae749 Merge pull request #4361 from Tom-Byrne/openstack-instance-metadata
support OpenStack instance (not image) metadata
2017-01-17 11:05:20 -08:00
Chris Bednarski 1b2101463d Clarified when to use launch_ vs ami_ for block devices 2017-01-16 23:56:06 -08:00
Chris Bednarski e814c37539 Fix docs example for PACKER_KEY_INTERVAL 2017-01-14 20:14:41 -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
Rickard von Essen d1b9a91e3d
Change all builder docs to the expected file names 2017-01-14 13:03:39 +01:00
DanHam 37a6d81fd8 docs/qemu: Build on RHEL/RHEL variants errors if scsi disk interface is used 2017-01-13 11:12:44 +00:00
dnABic (Andreja Babic) 4d5d89b328 small documentation typos 2017-01-11 20:43:54 +01:00
Matthew Hooker 20dea71992
docs/vmware: update skip_export wording 2017-01-10 15:26:43 -08:00
Matthew Hooker 98b0f018fa Merge pull request #4378 from DanHam/skip-export-vmware
Add option to skip export of installed VM for VMware ISO builder
2017-01-10 15:24:58 -08:00
Matthew Hooker 8d5c316a30
docs/virtualbox: update skip_export wording 2017-01-10 15:24:10 -08:00
Matthew Hooker a3da92dc97 Merge pull request #4339 from DanHam/gh-4131
Add option to skip export of installed VM for vbox ISO & OVF builders
2017-01-10 15:08:15 -08:00
DanHam ed158a1c5c
Add skip_export option for VMware iso builder to docs 2017-01-10 11:46:42 +00:00
Tom-Byrne d7545c4ba0 support OpenStack instance metadata 2017-01-05 14:42:32 +00:00
James Portman 88fceff226 Correcting CLI usage
For gcloud compute instances create, multiple scopes should be comma separated in one set of quotes
2017-01-05 10:34:42 +00:00
Rickard von Essen df0638ad37
builder/hyperv: Added iso_target_extension and iso_target_path to docs 2017-01-04 14:02:36 +01:00
Rickard von Essen 85cf00069f Merge pull request #4294 from legal90/iso-target-extension
Add "iso_target_extension" option for all local *-iso builders
2017-01-04 13:48:28 +01:00
James Nugent 01c09aa7f7 Merge pull request #4325 from siepkes/f-triton-builder-2
Add Joyent Triton Builder
2017-01-01 15:40:11 -06:00
Jasper Siepkes bdf57c9cfa Fixed documentation error for the 'source_machine_firewall_enabled'
option.
2016-12-31 12:34:33 +01:00
DanHam 0ac071b6e7
Add option to skip export of installed VM for Virtualbox ISO & OVF builders
Closes #4131
2016-12-29 13:19:59 +00:00
Jasper Siepkes 0c9b576c05 * Unentagled SSH communication with VM's from the Cloud API SSH private
key.
* Improved documentation.
2016-12-29 13:24:56 +01:00
Jasper Siepkes 4b651ce3c2 Formatted Triton documentation. 2016-12-29 11:17:24 +01:00
Sean Malloy e0fd5ac402 Fix formating for network_project_id config option 2016-12-28 23:15:18 -06:00
Jasper Siepkes 10bcf64245 Removed accidentally checked in 'ssh_agent_auth' documentation. See SSH
discussion in #4325 as to why it was removed for now.
2016-12-28 16:11:09 +01:00
Jasper Siepkes 24786aeece Processed code review feedback.
* Removed unneeded if statements.
* Made source machine name optional.
2016-12-28 16:03:11 +01:00
Jasper Siepkes 7606dd541b * Contains the SSH fix by @watters of #3840.
* Fixed minor lint error.
* Added documentation for this builder in `triton.html.md`.
* Added (and updated) the needed Joyent Triton Cloud API Go libraries
  to `vendor.json`.
2016-12-27 17:05:27 +01:00
Matthew Hooker b35226ffae
add a note about running qemu next to a `common` file.
Related to $4291
2016-12-20 17:22:47 -08:00
Tom 5927cdf063 Use the latest Centos 6 release 2016-12-20 12:56:25 +00:00
Matthew Hooker 9801e67fdc Merge pull request #4293 from mitchellh/usedefaultdisplay
builder/qemu: add use_default_display option for osx compatibility
2016-12-19 11:41:36 -08:00
Taylor Brown cac861db99 Update hyperv.html.md
Fixing Hyper-V Branding
2016-12-19 08:51:27 -08:00
Taylor Brown e5e1f70e75 Update hyperv-iso.html.md
Correcting Hyper-V Branding
2016-12-19 08:47:21 -08:00
Mikhail Zholobov 57d07f227a
Add "iso_target_extension" option for all local *-iso builders
This option allows to set the extension of the ISO file after download.
Defaults to "iso". It makes sense for building Mac OS X guests, where the
bootable image is actually a DMG, not an ISO.
In particular, it is important for "parallels-iso" builder to set the right extension.
2016-12-17 12:50:30 +02:00
Matthew Hooker 0339fcc442
builder/qemu: add use_default_display option
If set, won't set `-display dsl` as a default argument. Useful for osx
compatibility.
2016-12-16 17:44:54 -08:00
Matthew Hooker 40ec40410f
add new builders to layout 2016-12-15 14:23:16 -08:00
Matthew Hooker c61c7765ec Merge pull request #4288 from troytoman/gce-network-uri
enable support for Google Compute XPN
2016-12-15 12:03:46 -08:00
Matthew Hooker 88841cb0e4 Merge pull request #4283 from mitchellh/openstackhacks
builder/openstack: Add image visibility & members
2016-12-14 16:13:21 -08:00
Matthew Hooker 9c863cb081
update docs 2016-12-14 16:00:29 -08:00
Rickard von Essen d3c2239b9e
builder/amazon: Change shutdown_behaviour to shutdown_behavior 2016-12-14 21:59:16 +01:00
Matthew Hooker d0a3e956a8
docs to get ubuntu building correctly 2016-12-12 18:34:15 -08:00
Taliesin Sisson 143ac300bf headless is no longer used 2016-12-12 22:45:21 +00:00
Taliesin Sisson 24e9810c23 guest_os_type is no longer used 2016-12-12 22:45:21 +00:00
Taliesin Sisson 602c207f60 Make it clear iso is downloaded 2016-12-12 22:45:20 +00:00
Taliesin Sisson 7add6d3470 Add missing configuration elements.
Remove configuration elements that are no longer used.
2016-12-12 22:45:15 +00:00
Taliesin Sisson 3c1df5a791 Remove inconsistent "_mb" from ram size 2016-12-12 22:45:14 +00:00
Taliesin Sisson 55353fae89 Fix spelling mistake
Fix code type for formatting
Remove empty space
2016-12-12 22:45:09 +00:00
Taliesin Sisson ffc7f3f3dc Address documentation layout and copy issues 2016-12-12 22:45:08 +00:00
Taliesin Sisson c2d1f6b617 Added the ability to independently configure switch vlan. This will people to leave the switch in trunk mode and set a vlan for the vm. 2016-12-12 22:45:06 +00:00
Taliesin Sisson b8554dad7d Add documentation for: enable_mac_spoofing, enable_dynamic_memory and enable_virtualization_extensions 2016-12-12 22:45:05 +00:00
Taliesin Sisson 9c53df1e0e Add special key modifiers to log output when used.
Update documentation to include new key modifiers.
2016-12-12 22:44:59 +00:00
Taliesin Sisson 8e18baf493 Use plain text password 2016-12-12 22:44:16 +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
Kerim Satirli 0fe41a29a0 updates quoting for `amazon-ebs-volume.html.md` 2016-12-07 09:31:09 +01:00
Kerim Satirli 73a50ff91f updates quoting for `amazon-instance.html.md` 2016-12-07 09:29:45 +01:00
Kerim Satirli 74ed95511c highlights possible values instead of quoting them
Hello!

I updated a few values in this page to be highlighted instead of "quoted". I think this is in line with other values already existing on this page and should make the whole more consistent.

Happy to discuss if this needs changes!

This is a clean(er) version of PR 4255
2016-12-06 21:54:16 +01:00
Rickard von Essen 45bf1457db Added note about kms_key_id 2016-12-06 10:35:58 +01:00
Rickard von Essen 4ce3b8712a
Replace unencrypted EBS snapshots with encrypted
To ensure that groups and users attributes are added to the encrypted
snapshots.
2016-12-06 03:31:09 +01:00
Rickard von Essen c3a352955e amazon: Added snapshot_users and snapshot_groups 2016-12-04 16:03:01 +01:00
Ari Aviran 46f217f255 amazon - Snapshot permissions correctly applied
Fixes #3344
2016-12-04 16:03:01 +01:00
Troy Toman 12f279fa79 add ability to set a different project-id for a network in the googlecloud builder 2016-12-02 15:22:36 -06:00
poida 8b13b75097 Updated documentation and error messages
The docs for kms_key_id needed to be next to encrypt_boot.

Shortened some of the kms_key_id error messages.
2016-12-03 07:49:54 +11:00
poida 3eed6fd508 Added KMS CMK support to EBS builder
Added the 'kms_key_id' parameter. This supports supplying a customer master key (CMK) when encrypting the EBS volume.

The parameter is optional and only takes effect when 'encrypted' is true. When 'encrypted' is true but 'kms_key_id' is missing the 'aws/ebs' key will be used.
2016-12-03 07:49:34 +11:00
Matthew Hooker 6c6b38af79
don't need explicit span 2016-12-01 11:45:26 -08:00
Rickard von Essen c2512d232a Merge pull request #4233 from ankon/pr/docker-ref-ecr
Point to the ECR section for more information on `ecr_login`
2016-12-01 18:51:41 +01:00
Andreas Kohn f3e96c5c0a
Point to the ECR section for more information on `ecr_login`
Fixes #4218
2016-12-01 10:52:33 +01:00
Andreas Kohn 68e5baa74c
Fix the reference to the "Dockerfiles" section 2016-12-01 10:48:19 +01:00
Matthew Hooker 832de2104b
Revert "Merge pull request #4230 from mitchellh/revert-4223-closes_3320"
This reverts commit bda89b0c42, reversing
changes made to f9f9d82419.
2016-11-30 13:28:34 -08:00
Matthew Hooker f5c3c25d2b Revert "Adds `force_delete_snapshot` flag" 2016-11-30 13:10:22 -08:00
Matthew Hooker f9f9d82419 Merge pull request #4223 from artburkart/closes_3320
Adds `force_delete_snapshot` flag
2016-11-30 12:53:34 -08:00
Rickard von Essen d8ef6d1977 Fixed formatting of source_ami_filter example 2016-11-30 12:32:46 +01:00
Arthur Burkart 5b59f56cdb Adds `force_delete_snapshot` flag
This PR adds the ability for Packer to clean up snapshots in addition to
deregistering AMIs at build time.

To test this, I used the following `test.json` file:

```json
{
  "builders": [
    {
      "type": "amazon-ebs",
      "region": "us-east-1",
      "source_ami": "ami-fce3c696",
      "ami_name": "packer-test",
      "instance_type": "m3.medium",
      "ssh_username": "ubuntu",
      "vpc_id": "some-vpc-id",
      "subnet_id": "some-subnet-routed-through-igw",
      "security_group_id": "some-security-group-with-port-22-access",
      "force_delete_snapshot": true
    }
  ],
  "provisioners": [
    {
      "type": "shell-local",
      "command": "echo 'hello'"
    }
  ]
}

```

I appreciate any constructive feedbakc that can be given. Cheers!
2016-11-29 23:39:36 -05:00
Matthew Hooker 6c546d4d1f Merge pull request #3982 from artburkart/close_1195
Support remote ova downloads
2016-11-28 18:49:50 -08:00
Matthew Hooker 2d5d598529 Update virtualbox-iso.html.md 2016-11-28 16:00:06 -08:00
Matthew Hooker cd6b70a2b3 Update amazon-chroot.html.md 2016-11-28 12:41:22 -08:00
Arthur Burkart 1a0dc767f3 Rolls back `partials` work, but still consolidates
Since the packer website isn't yet ready to use middleman partials,
this commit rolls back the partials in favor of bringing parity to
each amazon docs page
2016-11-28 15:08:39 -05:00
Arthur Burkart 5499c37080 Adds add'l docs regarding delete_on_termination
This PR adds documentation pointing out that volumes are not by
default deleted on termination of any AWS EC2 instance during a
packer build.
2016-11-28 15:07:48 -05:00
Arthur Burkart 337856811e Implements OVA downloads w/local checksum support
Presumably, it is convention to store a manifest file with checksums
inside the OVA, so remote checksum support was not implemented.
2016-11-28 15:01:37 -05:00
Matthew Hooker 541a209f93
clarify docs for TRIM 2016-11-28 11:30:36 -08:00
Rickard von Essen e36b98ecd5 Merge pull request #4202 from nervo/docker-commit-changes
Introduce docker commit changes
2016-11-26 18:40:08 +01:00
Rickard von Essen cb78cb331d
Documented author, changes, and message 2016-11-26 18:34:49 +01:00
Rickard von Essen a09f20f996 Merge pull request #4015 from artburkart:closes_3908
Closes #3908: Adds snapshot tag overrides
2016-11-26 17:54:00 +01:00
Rickard von Essen 6947a74151 Merge pull request #4162 from classmarkets/google-source-image-family
builder/googlecompute: support source image family
2016-11-26 17:26:47 +01:00
JF Bibeau 529090aaa7 Docs: add QCOW2 format support for `iso_url`
Took some digging to realize that `iso_url` can actually take in a qcow2 or img format. This is fantastic and works great out of the box. I feel like adding the extra 2 lines of docs will help future users looking for this.
2016-11-24 14:18:38 -05:00
jasminSPC a239407093 Typo fix 2016-11-21 23:02:53 +01:00
Rickard von Essen d3b39ae28f
Unified the docs for floppy_files 2016-11-21 20:50:26 +01:00
jasminSPC 68ca7490bb Removed default value for ssh_username 2016-11-17 21:15:28 +01:00
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
Michael Friis 45188f2f2c fix markdown 2016-11-10 18:40:50 -08:00
Matthew Hooker 1cf9dbf27d
fix json 2016-11-09 11:20:06 -08: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 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
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
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
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 dd89aa7243
Formatted the default value and cleaned some trailing spaces. 2016-10-22 21:06:07 +02:00
YAMADA Tsuyoshi 283d3e5758 Updated document 2016-10-22 15:46:19 +09:00
Michael Vermaes bf17b4bd01 Add tools_upload_flavor/path to vmware-vmx docs 2016-10-21 18:19:08 +08: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
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
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
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 24c4ba3bb5 add the error you might see 2016-10-03 17:40:52 -07:00
Matthew Hooker 7a1b84cec1 add some debugging info for if your clock is skewed 2016-10-02 17:32:57 -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
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 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
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
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
Arthur Barr d2c6b0ef8a Fix typo
"i.e." instead of "i.g."
2016-09-20 09:36:15 +01:00
Rickard von Essen 8193075c7c
builder/amazon: Added and corrected some default values in the docs. 2016-09-16 13:57:41 +02:00
jasminSPC 178748bb7c Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-09-14 15:32:30 +02:00
jasminSPC 2008c6019a Addressing PR remarks 2016-09-14 15:05:45 +02:00
Rickard von Essen 7dafd4421e Merge pull request #3737 from clstokes/docs-googlecompute-metadata
builder/googlecompute: Clarify metadata usage.
2016-09-13 23:05:16 +02:00
jasminSPC 325401eaf0 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-09-13 12:06:45 +02:00
Christopher Boumenot 372bffef36 Merge pull request #3876 from AwaNoodle/master
Fix for #3875 - Azure documentation updates
2016-09-12 10:09:52 -07:00
Ali Rizvi-Santiago fbe305cf4e Renamed floppy_contents to floppy_dirs as requested by rickard.von.essen@gmail.com 2016-09-12 12:07:35 -05:00
Ali Rizvi-Santiago 5f9fdaf5fa Added documentation for the floppy_contents option to parallels, qemu, virtualbox, and vmware. 2016-09-12 11:57:44 -05:00