Lesko, Matthew (NIH/NLM/NCBI) [C]
43f08b2664
go fmt all the things
2015-01-13 22:58:41 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
9d097f9d4e
Permit Temp keys and named SSH keypairs
...
These changes permit the use of pre-created SSH keypairs with AWS. If
so, the configuration for the builder needs to include an
ssh_keypair_name option and a ssh_private_key_file.
If ssh_private_key_file is *not* defined, it'll go through the
rigamarole of creating a temporary keypair. The ssh_keypair_name option
by itself won't make that change, because it doesn't make sense to
specify a keypair but not tell packer where the private key is, but it
does happen that you could have a private key and the public-key is
"baked in", and not part of your EC2 account.
2015-01-13 16:27:33 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
8c87b1cc00
First attempt for re-using a named EC2 keypair
...
Adds a 'ssh_keypair_name' option to the configuration
for AWS, along with some munging to create the
temporarily keypair if one isn't specific.
NOT YET WORKING.
From a 'make' I get the following errors:
builder/amazon/ebs/builder.go:94: b.config.SSHKeyPairName undefined
(type config has no field or method SSHKeyPairName)
builder/amazon/instance/builder.go:199: b.config.SSHKeyPairName
undefined (type Config has no field or method SSHKeyPairName)
2015-01-13 13:12:04 -05:00
Mitchell Hashimoto
dc0de7da49
builder/amazon-ebs: don't clean up AMI if doesn't exist [GH-1469]
2014-09-08 09:53:20 -07:00
Mitchell Hashimoto
db90c16118
builder/amazon: support auto spot price discovery [GH-1465]
2014-09-06 10:44:12 -07:00
Mitchell Hashimoto
a587bd47a1
builder/amazon/ebs: clean up AMI in error [GH-1186]
2014-09-06 10:12:33 -07:00
Mitchell Hashimoto
669f26a108
Merge pull request #1186 from henrysher/ami-cleanup
...
Add the cleanup when the process of EBS AMI interrupted
2014-09-06 10:10:10 -07:00
Mitchell Hashimoto
7d1db44ca4
builder/amazon: clean up UI output for spot instances a bit
2014-09-05 16:58:17 -07:00
Mitchell Hashimoto
3a69b8c1b8
Merge branch 'add-spot-instance-support' of github.com:henrysher/packer into henrysher-add-spot-instance-support
...
Conflicts:
builder/amazon/common/run_config.go
builder/amazon/ebs/builder.go
builder/amazon/instance/builder.go
2014-09-05 16:30:22 -07:00
Mitchell Hashimoto
5db91c84bf
builder/amazon: string fields on device mappings can use variables
2014-09-05 12:38:19 -07:00
Mitchell Hashimoto
0776d9de34
builder/amazon: ssh_private_ip [GH-1229]
2014-09-04 21:48:14 -07:00
Henry Huang
97eb744c87
De-register the unavailable image in the cleanup
2014-07-22 23:40:38 +08:00
James Massara
be27ecc64b
Add option to enable enhanced networking (SriovNetSupport) for images.
2014-06-04 14:58:11 -07:00
Henry Huang
a411405628
Clean up code via "go fmt"
2014-05-26 23:01:49 +08:00
Henry Huang
c33e7cc867
Add the support of launching spot instances in "amazon-ebs" AMI
2014-05-26 23:01:49 +08:00
Henry Huang
43385a58bc
Refine the comments
2014-05-20 11:16:50 +08:00
Henry Huang
e8c09ae223
Add the cleanup when the process of EBS AMI interrupted
2014-05-20 00:40:39 +08:00
Pierre Riteau
5294e0ed61
Remove unused file
2014-05-15 17:22:40 +01:00
Florian Noeding
6371b70609
optionally use existing ssh key for amazon builders
2014-03-24 12:47:00 +01:00
Mitchell Hashimoto
8aabe01bad
builder/amazon/common: run_tags to apply to launch [GH-722]
2013-12-27 20:54:35 -07:00
Mitchell Hashimoto
1234e61cda
builder/amazon/all: get rid of unnecessary field
2013-12-12 21:38:48 -08:00
Mitchell Hashimoto
5e0da21173
builder/amazon/ebs: nicer output
2013-12-12 12:24:51 -08:00
Nathan Sullivan
49a131951a
reverting testing stuff
2013-11-26 13:46:32 +10:00
Nathan Sullivan
0cfb7564d5
lets try a string instead of a bool for AssociatePublicIpAddress
2013-11-26 13:44:39 +10:00
Nathan Sullivan
31bf1f342c
https://github.com/mitchellh/packer/issues/578
2013-11-26 11:32:08 +10:00
Mitchell Hashimoto
c8e911cdc3
Merge branch 'security-groups' of https://github.com/whiteley/packer into whiteley-security-groups
...
Conflicts:
builder/amazon/common/run_config.go
2013-11-05 14:34:12 -08:00
Mitchell Hashimoto
3cd7379d1f
builder/amazon/*: warnings
2013-11-02 22:56:54 -05:00
Mitchell Hashimoto
7f639d89b6
builder/amazon/*,builder/openstack: properly scrub sensitive [GH-554]
2013-11-02 11:34:54 +01:00
Mitchell Hashimoto
b95a56899f
builder/amazon: rename availzone to availability zone
2013-10-23 20:44:11 -07:00
Matthew Hooker
60428cef60
builder/amazon/ebs: Add config for target AZ.
...
Fixes [GH-536]
2013-10-21 08:01:34 -07:00
Matthew Hooker
5315b19822
common/config: config filter function [GH-521]
...
Fixes #521
2013-10-13 11:01:12 -07:00
Matt Whiteley
09f4011234
builder/amazon: instances can be launched with a list of security groups
2013-10-04 10:42:45 -07:00
Mitchell Hashimoto
27608a7b0f
builder/amazon/*: use WaitForState for AMIs
2013-09-12 20:33:32 -07:00
Mark Peek
f941718c3e
builder/amazon: add clean_ami_name template function
...
Add a clean_ami_name template function which will translate illegal
characters in an AMI name to '-'. Example usage would be:
"ami_name": "Ubuntu 12.04 {{isotime | clean_ami_name}}"
2013-09-07 18:42:50 -07:00
Mitchell Hashimoto
f2069c1cd6
Merge pull request #388 from jmassara/ami_region_copy
...
builder/amazon/all: AMI region copy fixes
2013-09-05 17:14:16 -07:00
Mitchell Hashimoto
ed7e0847fd
builder/amazon/all: TemporaryKeyPairName
...
/cc @whostolebenfrog - I actually simplified things quite a bit. I added
a "uuid" global template function so it just uses that now. I renamed it
so that it is clear it is a temporary keypair.
2013-09-05 12:23:08 -07:00
Ben Griffiths
f953874448
Allow customization of SSH Key pair pattern
...
Defined in a template using ssh_keypair_pattern. Defaults to "packer %s"
2013-09-05 13:28:31 +01:00
James Massara
5bca569fa4
builder/amazon: Re-ordered steps for AMI region copying so tags and
...
launch permissions are also applied to copied AMIs
2013-09-04 16:06:06 -07:00
Mitchell Hashimoto
b04cff5a9e
builder/amazon/ebs: new multistep API
2013-08-31 13:00:43 -07:00
Mitchell Hashimoto
9186a7f214
builder/amazon: output DNS name if debug mode
2013-08-30 14:55:56 -07:00
Mitchell Hashimoto
57f185451a
builder/amazon: drop private key if debug mode [GH-373]
2013-08-30 14:48:50 -07:00
Mitchell Hashimoto
251abc3496
builder/amazon: modify attributes before region copy
...
/cc @jmassara
2013-08-22 15:35:47 -07:00
Mitchell Hashimoto
d03c852ac2
builder/amazon/common: move tags into ami_config
2013-08-22 15:09:21 -07:00
Mitchell Hashimoto
ef142ce886
builder/amazon: region copy must go before modify attributes
...
/cc @jmassara - This has to go before the modify attributes so that
the attributes are properly modified on all resulting AMIs.
2013-08-22 15:03:30 -07:00
James Massara
228d0d593a
amazon/common: Added AMI CopyImage support
2013-08-21 13:53:07 -07:00
Mitchell Hashimoto
64d87bfaf3
*: switch to packer ConfigTemplate
2013-08-15 19:17:23 -07:00
Mark Peek
91670cea07
builder/amazon: add block device mappings [GH-90]
2013-08-15 14:05:08 -07:00
Mitchell Hashimoto
09fb6ca593
builder/amazon/all: support user data file
2013-08-12 11:53:50 -07:00
Mitchell Hashimoto
f69b365f39
Merge pull request #253 from phobos182/master
...
builder/amazon/common: added passing UserData to goamz.
2013-08-12 11:36:15 -07:00
Mitchell Hashimoto
332bdf6edc
builder/*, provisioner/*: set user vars
2013-08-09 15:57:08 -07:00
Mitchell Hashimoto
fd6dbc42d1
builder/amazon/common: rename StepModifyAttributes to
...
StepModifyAMIAttributes
2013-08-08 22:51:48 -07:00
Mitchell Hashimoto
bfc2ac1eaa
builder/amazon/common: AMIConfig common config
...
/cc @jmassara - I pulled out the AMI stuff into a common config
struct and also added in the new template stuff (that didn't exist
when you made the pull, so not your fault! :))
2013-08-08 22:50:37 -07:00
James Massara
2ba59617fc
builder/amazon/all: Added support for setting attributes on the AMI
2013-08-08 22:35:21 -07:00
Mitchell Hashimoto
c8a98683d5
builder/amazon/ebs: get rid of unnecessary template
2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
5f34ec0ebc
builder/amazon/chroot: switch to new template stuff
2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
7ab45f8529
builder/amazon/ebs: process templates for config
2013-08-08 17:25:25 -07:00
Mark Peek
9638a30d35
builder/amazon/all: address feedback for ami tag refactoring change
...
Use explicit name for Tag field and note tags added in the ui.
2013-08-07 19:37:41 -07:00
Jeremy Carroll
4f02c506e9
Testing adding user-data support to Packer
2013-08-07 14:33:20 -07:00
Mark Peek
8a636519f8
builder/amazon/all: refactor ami tags [GH-233]
...
Refactor the EBS ami tag into a common step and add support
for instance-store ami tags.
/cc @jmassara
2013-08-06 15:05:03 -07:00
Mark Peek
413fc1b73a
Merge pull request #233 from jmassara/tags
...
builder/amazon/ebs: Added tagging support for amazon/ebs AMIs
2013-08-06 15:01:32 -07:00
James Massara
69aa2d32ac
Simplied Tags configuration
2013-08-06 07:33:00 -07:00
James Massara
8bffb4f17b
Moved Tags configuration out of common and into ebs.
2013-08-03 20:09:14 -07:00
Mitchell Hashimoto
798b7cb25f
builder/amazon/all: use new SSHAddress method [GH-243]
2013-08-03 16:24:49 -07:00
James Massara
1ff7cc28fe
removed amiId temp variable
2013-08-01 18:35:43 -07:00
James Massara
d6f8411c43
Adds support for adding tags to the AMI
2013-08-01 16:38:22 -07:00
James Massara
096a64ad92
Adds support for adding tags to the AMI
2013-08-01 16:31:07 -07:00
Mitchell Hashimoto
5b7d8fbc74
rename builder/common to common since it is generally useful
2013-08-01 12:11:54 -07:00
James Massara
13fb00b2c6
Added IAM Instance Profile support
...
Conflicts:
builder/amazon/common/run_config.go
2013-07-31 11:40:59 -07:00
Mitchell Hashimoto
f2f69e6f7b
builder/amazon/ebs: don't need this variable
2013-07-31 09:35:26 -07:00
Mitchell Hashimoto
12e7042c5b
builder/amazon/chroot: wait for volume to beecome ready
2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
c7b88d654e
builder/amazon/common: generic wait for state to wait for any state
2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
b645586d58
builder/amazon/chroot: boilerplate
2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
1d0adbf2c2
builder/amazon/*: sigint while waiting for state change works
2013-07-25 20:49:15 -05:00
Mitchell Hashimoto
d46741e4f7
builder/amazon/*: wait for AMI to be ready in common, use it instance
2013-07-25 00:56:37 -05:00
Mitchell Hashimoto
dd1c4d4d2a
fmt
2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
c710323f04
builder/amazon/*: Fix failing tests from rebase of VPC
2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
e85a01d9da
fmt
2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
992a9bfb22
builder/amazon/common: extract Artifact
2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
2f9840a4cf
builder/amazon: extract SSH connect funcs
2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
64ced7ff2c
builder/amazon: extract StepRunSourceInstance
2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
4f568f4998
builder/amazon: extract StepSecurityGroup
2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
45096d0768
builder/amazon: extract StepKeyPair for both
2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
1750b34f70
builder/amazon/*: clean up tests
2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
56c3cbfb2a
builder/common: common config struct for Packer configs
2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
4878cec0e4
builder/amazon/ebs: validate access config
2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
e5e306049c
builder/amazon/common: RunConfig for launch info
2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
5aced3f339
builder/amazon/common: AccessConfig for standard access config
2013-07-23 22:48:31 -05:00
Rafael Garcia
1ad53e1050
builder/amazon/ebs: support launching in VPC
...
adds `vpc_id` and `subnet_id` to builder config
depends on https://github.com/mitchellh/goamz/pull/4
2013-07-21 00:44:14 -07:00
Mitchell Hashimoto
16d102d055
builder/*: switch to MultiErrorAppend
2013-07-19 19:08:25 -04:00
Mitchell Hashimoto
e84669aa37
builder/common: extract out decode config
2013-07-19 14:59:04 -04:00
Mitchell Hashimoto
8e1e40c096
builder/*: convert to common StepProvision
2013-07-16 15:44:41 +09:00
Mitchell Hashimoto
b358574636
builder/amazon/ebs: rename to amazon/ebs in order to support others
2013-07-15 15:02:18 +09:00