Matthew Hooker
5d0892bd37
Merge pull request #4101 from lwander/f-googlecompute-ssh-private-key-file
...
builder/googlecompute: Use ssh_private_key_file if provided
2016-11-03 11:04:02 -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
Matthew Hooker
1ad780933b
Merge pull request #4107 from sysadmiral/sysadmiral-website-policy-tidy
...
Remove duplicate permission
2016-11-03 10:26:41 -07:00
Lars Wander
583e341ae7
builder/googlecompute: Store empty public_key
2016-11-03 12:49:09 -04:00
Lars Wander
7f474d8f78
builder/googlecompute: Tests added
2016-11-03 12:45:52 -04: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
Rickard von Essen
ac04315710
Fixed name of builder amazon-ebs-volume
...
amazon-ebs -> amazon-ebs-volume
2016-11-03 08:46:08 +01:00
Matthew Hooker
ed3c6f29ef
update changelog
2016-11-02 15:37:40 -07:00
Matthew Hooker
99bb04ba3b
Merge pull request #4102 from crunk1/master
...
googlecompute: conditionally omit the wait for startup script.
2016-11-02 15:36:13 -07:00
Scott Crunkleton
85210afe92
googlecompute: conditionally omit the wait for startup script step if no startup script is provided.
2016-11-02 15:20:21 -07:00
Lars Wander
d70e783455
builder/googlecompute: Use ssh_private_key_file if provided
...
This seemed to be missing from the googlecompute provider. Now if the
ssh_private_key_file is provided, that will be used in place of a temporary
key. I didn't update the googlecompute specific docs under `./website/`, since
this parameter is already documented under the communicators templates page.
2016-11-02 17:04:34 -04:00
Matthew Hooker
b0d529fafa
update changelog
2016-11-02 12:27:04 -07:00
Matthew Hooker
f3f5f89fe6
Merge pull request #4096 from mitchellh/filterday
...
builder/amazon-ebs: show ami id found from filter
2016-11-02 12:25:46 -07:00
Matthew Hooker
60c459d6c8
Merge pull request #4098 from mitchellh/newsession
...
aws-sdk: use session.NewSession
2016-11-02 12:25:14 -07:00
Matthew Hooker
164adf6366
update changelog
2016-11-02 12:24:15 -07:00
Matthew Hooker
9bc23ea512
Merge pull request #4099 from mitchellh/waitfail
...
Waitfail
2016-11-02 12:21:51 -07:00
Matthew Hooker
ffd76f1194
Merge pull request #4088 from mitchellh/f-ebsinit-builder
...
[WIP] builder/amazon: Add `ebs-init` builder
2016-11-02 11:54:46 -07:00
Matthew Hooker
6b7ac8ee90
make generate
2016-11-02 11:48:32 -07:00
James Nugent
36c09af992
builder/amazon: Add tests for the `ebs-volume` builder
...
These smoke tests are effectively a mirror of the EBS builder tests.
2016-11-02 12:56:39 -04: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
d47e47cf1f
rewrite to not use private aws package
2016-11-01 18:29:18 -07:00
Matthew Hooker
c4c46c349e
implement security group waiter
2016-11-01 18:10:42 -07:00
Matthew Hooker
3ee8cbc1f1
update changelog
2016-11-01 17:28:23 -07: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
48bdae93d1
aws-sdk: use session.NewSession
2016-11-01 15:53:04 -07:00
Matthew Hooker
83b57b98ac
show ami id found from filter
2016-11-01 15:26:43 -07:00
Matthew Hooker
d920b3fbf4
run gofmt
2016-11-01 14:08:04 -07:00
Matthew Hooker
32c0fef4c1
Merge pull request #4092 from mitchellh/gofmt
...
Gofmt
2016-11-01 14:07:41 -07:00
Matthew Hooker
9cf65d8e1b
say when we finish checking gofmt
2016-11-01 14:07:05 -07:00
Matthew Hooker
3a79620e92
fail test target if we have gofmt problems
2016-11-01 14:07:00 -07:00
Matthew Hooker
b8893e1aa4
fix fmt and add check
2016-11-01 13:48:10 -07:00
Matthew Hooker
b74b7548f4
remove fmt as test dependency
2016-11-01 13:16:23 -07:00
Matthew Hooker
952f5a6ae7
Merge pull request #4038 from dacamp/gofmt
...
make fmt
2016-11-01 13:15:13 -07:00
Matthew Hooker
c2d7d420f9
fix broken link
2016-11-01 11:16:47 -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
064f48bf39
update changelog
2016-10-31 16:45:06 -07:00
Matthew Hooker
0dd7d7ff3b
fix error message
2016-10-31 16:44:18 -07:00
Ganesh kumar Sankaran
b9c6139d67
AWS async operations sometimes takes long times, if there are multiple parallel builds, polling at 2 second frequency will exceed the request limit. Allow 2 seconds to be overwritten with AWS_POLL_DELAY_SECONDS
2016-10-31 16:44:18 -07:00
Matthew Hooker
8594822e24
update changelog
2016-10-31 15:47:12 -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
7646942430
add cloudstack builder to changelog
2016-10-31 13:39:15 -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
Matthew Hooker
42bae09fb0
update changelog
2016-10-31 13:02:29 -07:00
Matthew Hooker
f69ee4634f
Merge pull request #4041 from mitchellh/vmwareshutdown
...
VIP: VMware shutdown fails
2016-10-31 11:37:00 -07:00
Seth Vargo
5c3259b2d2
Add security page
2016-10-29 14:16:06 -04:00
Chris Bednarski
999a0968f5
Merge pull request #4080 from rickard-von-essen/issue-4057
...
Properly cleanup AWS temporary key pairs
2016-10-28 13:25:44 -07:00
Rickard von Essen
4eaec76827
Merge pull request #4082 from geerlingguy/packer-compile-readme-fix
...
Fixes #4081 : Fix broken README link for 'compile Packer yourself'.
2016-10-28 06:22:39 +02:00
Jeff Geerling
8ca9f633d3
Fixes #4081 : Fix broken README link for 'compile Packer yourself'.
2016-10-27 22:31:57 -05:00
Rickard von Essen
d66490ebfd
Properly cleanup AWS temporary key pairs
...
Closes #4057 - Amazon key pair no longer cleaned up at end of build
2016-10-27 23:06:13 +02:00