Rickard von Essen
63f791570a
Merge pull request #5665 from kwilczynski/remove-sts-token-from-logging
...
amazon: Remove Session Token (STS) from being shown in the log.
9 years ago
Matthew Hooker
f216330ba3
spot instance ena/sriov checking for all other builders
9 years ago
Matthew Hooker
4b1d8e3fe8
don't allow enhanced networking flags for spot instances.
9 years ago
Matthew Hooker
73b98b2a04
use waiter to wait for ebs instances to stop
9 years ago
Matthew Hooker
dada63801b
also use waiter code for spot instances
9 years ago
Matthew Hooker
9e61005f7c
Merge pull request #5660 from hashicorp/fix_5625
...
modify validation to allow user to have the original region in the am…
9 years ago
Ben Gnoinski
5df2e040d0
Update amazon run_config.go absent ssh_private_key_file error
9 years ago
Matthew Hooker
2c1c7b9659
Merge pull request #5630 from johndaviesco/winrm_no_proxy
...
Winrm no proxy
9 years ago
Matthew Hooker
a90c45d9bb
Wait until source instance OK before continuing
9 years ago
Matthew Hooker
7b5c0900ef
Correctly set aws region if given in template along with a profile.
9 years ago
Krzysztof Wilczynski
05327b7524
amazon: Remove Session Token (STS) from being shown in the log.
...
This commit adds a change which ensures that the Session Token
config struct item is removed from log output.
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
9 years ago
Megan Marsh
1c681fc096
tests
9 years ago
Megan Marsh
556da47d35
modify validation to allow user to have the original region in the ami_regions list
9 years ago
John Davies-Colley
10aaa49beb
fixing tests and funky logic 💦
9 years ago
John Davies-Colley
0c787ec9df
Valadating early ⏰
9 years ago
John Davies-Colley
75320440ec
adding missing quote 🙏
9 years ago
John Davies-Colley
707ec675b2
ssh interface for amazon builders 🔨
9 years ago
Matthew Hooker
0a24f4eb2e
don't shadow package name
9 years ago
Matthew Hooker
f681faa296
fix tests
9 years ago
Matthew Hooker
545ee45567
debug region we found
9 years ago
Matthew Hooker
c106e7c26c
Don't set region from metadata if profile is set.
9 years ago
Matthew Hooker
52fc0100eb
this is a critical error
9 years ago
Matthew Hooker
95e4ae251e
WIP
9 years ago
Matthew Hooker
e87b468c6e
Merge pull request #5536 from hashicorp/fix5535
...
add delay option to security group waiter
9 years ago
Matthew Hooker
8ab390a048
Merge pull request #5495 from smaato/master
...
Fix regressions relating to spot instances and EBS volumes
9 years ago
Matthew Hooker
f2413ff138
add delay option to security group waiter
9 years ago
Matthew Hooker
d322fc6c19
Shorten metadata timeout
...
When running in travis, metadata requests will timeout after 5 seconds.
After 24 such timeouts, we'll hit travis' build timeout of two minutes,
and the build will fail. Lowering it to 100 gets us in a safe time
limit. We _may_ need to expose a timeout env var with this logic,
however.
9 years ago
Matthew Hooker
314fc94bd8
clean up
9 years ago
Matthew Hooker
0e4ea7420b
fix tests
9 years ago
Matthew Hooker
c65fa8490d
fix various bugs deregistering AMIs
...
always deregister ami in session region
validate that session region does not appear in ami_regions
9 years ago
Matthew Hooker
6c4fbe8d87
use correct default region when deregistering AMIs.
9 years ago
Mark Meyer
4c5df79222
Fix regressions introduced in the instance builder
...
Related to #5504
9 years ago
Mark Meyer
309bf61257
Add missing blockdevices to ebsvolume builder
9 years ago
Mark Meyer
1cc9b3f1e3
Bring back volume tagging to ebsvolume
...
Related to #5486
9 years ago
Mark Meyer
7e1646826d
Check if VolumeTags is empty before tagging volumes
...
Related to #5486
9 years ago
Matthew Hooker
f7e269945e
add cidr validation and rename option
9 years ago
Matthew Hooker
c74be87187
Merge pull request #5384 from dave2/sg-source-cidr
...
[WIP] Allow temporary security group to have source CIDR block explicit
9 years ago
SwampDragons
512ac214b4
Merge pull request #5417 from smaato/master
...
Add ability to tag volumes on creation
9 years ago
Mark Meyer
dbb3c76032
Remove redundant step and its usage
...
StepTagEBSVolumes is no longer needed, since this functionality is now
taken over by StepRunSourceInstance and StepRunSpotInstance. So remove
this functionality from the codebase.
9 years ago
Matthew Hooker
ae455bff99
add debugging help if ec2-upload-bundle fails
9 years ago
Mark Meyer
2661fd7869
Move building of spot instances into its own step
9 years ago
Mark Meyer
939b44b4fd
Add logic to handle volumes of spot instances
9 years ago
Mark Meyer
cfd6b6fed5
Change EBS builder to do tag-on-creation
...
The EBS builder will now use the tag-on-creation pattern, so
that it's possible to restrict packer to only create volumes that are
properly tagged by using an AWS policy.
9 years ago
Megan Marsh
201e8c05a0
add ami name to output
9 years ago
Zanetti, David
8a8b51be97
Allow temporary security group to have source CIDR block explicitly provided
9 years ago
Matthew Hooker
02cd6bc7f0
Merge pull request #5288 from hashicorp/fix3114
...
add token variable to upload bundle command template
9 years ago
Matthew Hooker
4bc8e7de3d
add token variable to upload bundle command template
9 years ago
Zanetti, David
42dc1e4795
In Amazon builders, allow tag names to be interpolated like values
9 years ago
Megan Marsh
1adcce6046
Merge pull request #5284 from hashicorp/fix_5093
...
Allow granular modification of sriov and ena enhanced networking opti…
9 years ago
Megan Marsh
85ad1f58fb
include ena_support and sriov_support in chroot and instance docs
9 years ago
Megan Marsh
f19040f3aa
Merge pull request #5196 from cstuntz/aws-add-tags
...
Upgrade aws-sdk-go to 1.10.14, add tags at instance run time
9 years ago
Megan Marsh
2d4bc70d7b
use ami prefix to make it clear that these variables are amazon specific
...
add fixer, fixer tests
9 years ago
Megan Marsh
9e2e467b31
Allow granular modification of sriov and ena enhanced networking options in amazon amis. Maintain old functionality.
9 years ago
Megan Marsh
7da52e1f77
Merge pull request #5250 from hashicorp/repro_3399
...
make force_deregister work in all regions, not just original region.
9 years ago
Łukasz Kostka
8703937cde
Natural order of AMI artifacts
9 years ago
Megan Marsh
14b2d04332
make force_deregister work in all regions, not just original region.
9 years ago
Sean Chittenden
cd84b17923
Fix building packer on GOOS=solaris
...
Update to golang/x/sys/unix is coming in the subsequent commit.
9 years ago
Matthew Hooker
754c80d217
create default tags as well
9 years ago
cstuntz
db7f860d91
Adding tagging back to spot instances, after they're created
9 years ago
Megan Marsh
a924db9a79
Merge pull request #5228 from hashicorp/4653_dont_delete_snapshots
...
continue, not break
9 years ago
Megan Marsh
ef0a091720
continue, not break
9 years ago
Matthew Hooker
968eb94b80
Merge pull request #5211 from hashicorp/4653_dont_delete_snapshots
...
use block device mappings to know whether a snapshot existed before p…
9 years ago
Megan Marsh
2d6028eb9a
use named loops instead of doDelete flag
9 years ago
Megan Marsh
e9ec705497
use block device mappings to know whether a snapshot existed before packer's current run. If yes, don't delete the unencrypted snapshot.
9 years ago
Megan Marsh
c760e1323f
don't panic if the communicator is none and the port is 0
9 years ago
cstuntz
c717765154
Removing tagging post instance launch
9 years ago
cstuntz
42444e58e6
Updating step_run_source_instance to add tags at instance start instead of adding them to running instance
9 years ago
Megan Marsh
12d43c98f7
test the deduplication code
9 years ago
Megan Marsh
5f92de6a39
fix panic that occurs when ami_block_device_mappings and does not explicitly contain the root volume
9 years ago
Megan Marsh
ac15b33d2b
Merge pull request #5029 from hashicorp/5007_instance_stop
...
add exponential backoff retry for stopping instance in amazon
9 years ago
Megan Marsh
f7a703dfb2
add pending to allowable states while waiting for ebs instance to stop
9 years ago
Megan Marsh
d706147423
add exponential backoff retry for stopping instance in amazon
...
retry only if the error is instancenotfound
9 years ago
Matthew Hooker
febc65aa7c
try again to get region from metadata
9 years ago
Matthew Hooker
8dae6b60c1
Merge pull request #4996 from hashicorp/mwhooker/4613
...
builder/amazon: Support Assume Role with MFA and ECS Task Roles
9 years ago
Matthew Hooker
350e8bfe0d
we don't need to look for region in metadata.
...
Closes #4615'
9 years ago
Matthew Hooker
94d7a4ce8d
post-processor/vagrant-cloud: try upload once
...
* fixes multiple uploads mentioned in #4973
* removed unused token code
9 years ago
Matthew Hooker
4860d7179d
remove redundant log line
9 years ago
Constantin Bugneac
ae03dab920
Print in the output the security group name too.
9 years ago
Matthew Hooker
a619759bf7
add support for profile
9 years ago
Matthew Hooker
3fb4162660
remove code from bad merge
9 years ago
Matthew Hooker
624aaa2067
bugfix
9 years ago
Matthew Hooker
3ed7572525
remove cli_config
9 years ago
Matthew Hooker
f637878822
with wrapping
9 years ago
Matthew Hooker
23084fe171
dedupe
9 years ago
Matthew Hooker
58e386827a
fix typo
9 years ago
Rickard von Essen
15f80dc5ab
aws: Drop undocumented option `profile`
...
This was added in 883acb18fa to support
assume role and shared configuration file. This was never completed.
9 years ago
Matthew Hooker
56c513088b
I think this was the intention
9 years ago
Matthew Hooker
94854a26d9
fix go vet issue
9 years ago
Matthew Hooker
d7e39b72b2
remove dead code
9 years ago
Rickard von Essen
f106e60a7e
builder/amazon: Added MFA support
9 years ago
Rickard von Essen
f55c3b9d34
builder/amazon: Support assume role with assume_role_arn
...
This supports assuming a role when using profile or static credentials.
9 years ago
Rickard von Essen
3833d34829
builder/amazon: Cleaned up credential handeling
...
This properly handles:
- Preference between types of credential
- Assume role via ECS Task Role
9 years ago
Matthew Hooker
769ff28e03
builder/ebssurrogate: Use correct devices for AMI.
9 years ago
Matthew Hooker
11ba986abc
Merge pull request #4930 from hashicorp/fix4925
...
builder/amazon: don't try to delete extra volumes during clean up
9 years ago
Matthew Hooker
1f4b532ed5
Merge pull request #4948 from hashicorp/kms_key_regions
...
Kms key regions
9 years ago
Megan Marsh
b8c2a5fd43
fix step initializer everywhere StepAMIRegionCopy is called
9 years ago
Megan Marsh
875745ab9b
one more test
9 years ago
Megan Marsh
1944f38985
update docs and clean up
9 years ago
Megan Marsh
5b35d199da
golang has different style than python
9 years ago
Megan Marsh
f9d7292566
builder/amazon regional KMS keys
9 years ago
Jason Ramey
cc309c0e5f
spelling fix
9 years ago
Matthew Hooker
0e3469e913
spell fix
9 years ago
Megan Marsh
7174a7a3d5
New map: region_kms_key_ids, allowing custom encryption keys on a per-region basis. Also new tests.
9 years ago
Matthew Hooker
77b4d47409
only delete snapshots which exist
9 years ago
Matthew Hooker
c0b27dfa6f
don't try to delete extra volumes during clean up
9 years ago
Matthew Hooker
1cf4754d80
correct ami_name error reporting
9 years ago
Megan Marsh
4abb541468
fix logging to clarify that encrypt_boot needs to be set, not encrypt, and fix typo
9 years ago
Matthew Hooker
4137660b7a
fix ami name validation
9 years ago
Matthew Hooker
ee5d13611f
update ssh client usage for new crypto/ssh version
9 years ago
Rémi Jouannet
45143bb6f4
add an option custom_endpoint_ec2 for amazon builder, add a condition if vpc_id is empty don't add the parameter to the aws call
9 years ago
Paul Thrasher
0be5a28080
Fix issue 4693 - Derive vpc_id from subnet_id
...
In AWS we can derive the `VpcId` and AZ from the `SubnetId`, so now we do. In the config you can now only specify the `SubnetId`.
This fixes issue #4693 .
9 years ago
Ben Fagin
6f63881020
fixes a typo introduced in a previous change
9 years ago
luis-silva
a269bbc6fa
Fix issue 4875 - use retry logic when creating instance tags
9 years ago
Matthew Hooker
80d6cd91fd
remove unneeded keypair var
9 years ago
Matthew Hooker
602fd64c5d
builder/amazon: set flag to delete temporary keypair
9 years ago
Matthew Hooker
da8c4004f0
builder/amazon: numbers are valid in ami name
9 years ago
Matthew Hooker
3f6b5165f2
add affirmative test case for #4762
9 years ago
Craig Barr
d9041bda0c
Improved the test for special character so that it doesn't get halted by less than 3 character check
9 years ago
Craig Barr
7911cfa94b
Formatting as per make fmt
9 years ago
Craig Barr
fdae6858c8
conforming to the standard for imports
9 years ago
Craig Barr
df6337e8ab
Added AMIName validation (issue 4761)
9 years ago
Matthew Hooker
81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker
cc11ec3566
check for a couple errors
9 years ago
Matthew Hooker
35578d9ed1
remove unnecessary type conversions
9 years ago
Matthew Hooker
79287d7e47
simplify some code
9 years ago
Matthew Hooker
0149f679de
Print instead of Printf with no dynamic first variable.
9 years ago
Matthew Hooker
d1b20b3d9c
remove a bunch of dead code.
...
https://github.com/dominikh/go-tools/tree/master/cmd/unused
9 years ago
Matthew Hooker
230079f73a
spell fixes
9 years ago
Matthew Hooker
e4aa2a34ca
builder/amazon-chroot: nullable copy_files
...
Allow users to specify that they don't want any
files copied into the chroot by setting an empty
copy_files list
9 years ago
Matthew Hooker
74c8c585f5
builder/amazon: report tag creation
9 years ago
Matthew Hooker
bd76b7bb6f
builder/amazon: validate ssh key name/file
...
When using ssh_key_name, ssh_private_key file must be given,
or ssh_agent_auth enabled.
When automatically retrieving the winrm password, if ssh_key_name is
given, ssh_private_key_file must also be given.
9 years ago
Matthew Hooker
50d9546658
builder/amazon: set force_deregister to true on -force
9 years ago
Rickard von Essen
2300b102b7
amazon: Step Region Copy crashing on device mapping
...
Closes #4635
9 years ago
Matthew Hooker
9c027aa70b
Merge pull request #4601 from mitchellh/ebssurrogate-copy-ami
...
build/amazon-ebssurrogate: Add region copy, attributes, tags steps
9 years ago
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.
9 years ago
James Nugent
1eec5bf058
builder/amazon-ebssurrogate: Exclude duplicate root volume
...
This commit removes the root volume from the list of launch block device
mappings passed to the image, since it is already passed in the form of
a snapshot (which is then configured to be the root device). Without
this commit, AMIs created using this builder have two root volumes
attached on launch.
9 years ago
Matthew Hooker
fd1b00a0d1
use aws helper method
9 years ago
Matthew Hooker
61976dfd86
Merge pull request #4578 from life360/enable_ena
...
Always set both SRIOV and ENA when Enhanced Networking is enabled
9 years ago
Matthew Hooker
6a7c37beb6
builder/amazon-chroot: support encrypted boot volume
9 years ago
Matthew Hooker
2cb9b32acf
don't attempt to delete non-existant key when using agent auth
9 years ago
Matthew Hooker
f95514c120
fix ssh agent authentication
...
treat key name to empty string if it's not been set
by prior step.
9 years ago
Aaron Stone
1cc3cdf7b5
Always set both SRIOV and ENA when Enhanced Networking is enabled
...
Set SriovNetSupport to "simple". As of February 2017, this applies to C3, C4,
D2, I2, R3, and M4 (excluding m4.16xlarge).
Set EnaSupport to true. As of February 2017, this applies to C5, I3, P2, R4,
X1, and m4.16xlarge.
9 years ago
Richard Owen
33a4c2e13b
Change EC2 WindowsPasswordTimeout to 20 minutes
...
10 minutes is often exceeded when using a custom source AMI
which has been sysprepped.
9 years ago
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.
9 years ago
Rickard von Essen
c9259d116f
builder/amazon-ebsvolume: Fix interpolation of block_device
9 years ago
Rickard von Essen
de7388fa0a
builder/amazon-ebsvolume: Fixed interpolation of tags
9 years ago
Rickard von Essen
6e891cf682
Fixed botched merge and review comments
9 years ago
Rickard von Essen
ba9cae5078
builder/amazon: Add SourceAMI and BuildRegion template
...
Added {{ .SourceAMI }} and {{ .BuildRegion }} template values availible
in `ami_description`, `run_tags`, `run_volume_tags`, `tags`, and
`snapshot_tags`.
9 years ago
Matthew Hooker
fc30f6cc0a
log tag creation.
...
closes #4427
9 years ago
Matthew Hooker
56b5e97bf4
verify given security group
9 years ago
Matthew Hooker
b265d2614f
builder/amazon: fix when using security_group_id
...
If `security_group_id` was specified with a group that didn't exist, packer
would go into an infinite loop waiting for it. We shouldn't make assumptions
about the status of explicitely set security groups, so let's just error out
right away if we can't find it.
9 years ago
Matthew Hooker
f5bf588393
tag all volumes
9 years ago
Matthew Hooker
800351b7ca
fix panic and don't print each tag we add.
9 years ago
Roman Zhuzha
d9186dc8cf
add proper error handling for tagging source instance
9 years ago
Roman Zhuzha
ae016a1f25
simplify code flow: skip the step if no run_volume_tags provided
9 years ago
Roman Zhuzha
a65af51a4b
apply source instance default "Name" tag only if it's not provided in run_tags
9 years ago
Roman Zhuzha
36d8a1df1d
use common.ConvertToEC2Tags to apply tags to source EBS volumes, change Say message
9 years ago
Roman Zhuzha
aa70c82ec8
use ConvertToEC2Tags to apply tags to source instance, add Say message
9 years ago
Matthew Hooker
c1f5545986
compress pr #4395
9 years ago
Richard Moore
9435fa62e3
Output error causing ebs volume deletion failure
...
When an ebs volume fails to delete, Packer reports that there
was an error deleting the volume and the volume id. But it doesn't
give you the details of what that error is. This commit adds the
error reported back to the standard output.
9 years ago
Rickard von Essen
26fe9cf339
builder/amazon: Fix crash in amazon-instance
...
Closes #4360
9 years ago
Matthew Hooker
377f451a9e
it's InvalidGroup
9 years ago
Matthew Hooker
e54605c120
Properly wait for security group to exist.
...
Adds check for `InvalidGroupID.NotFound` in addition to
`InvalidSecurityGroupID.NotFound`.
Uses aws's `waiter` for clarity.
9 years ago
Matthew Hooker
aef6e0e93f
Merge pull request #4304 from dave2/gh-4277
...
Querying EC2 security groups should report unexpected errors
10 years ago
Travis Harrington
e31d75eca8
Quick fix for issue #4340
10 years ago
Rickard von Essen
4b1e014be8
builder/amazon: Crashes when multiple EBS vols are used
...
If you use a new EBS vol (which hasn't any snapshot) Packer crashes when
creating the AMI.
Closes #4303
10 years ago
Zanetti, David
ae5730c5a5
Querying EC2 security groups should report unexpected errors
...
As noted in #4277 , we don't report any errors from the loop waiting for
a security group to exist. Instead, we should accept 'errors' which result
from the group not yet existing, and report errors which are actual issues
the user needs to resolve (eg, IAM permissions are incorrect).
Closes #4277
10 years ago
Matthew Hooker
e4f6eaae9b
Merge pull request #4231 from artburkart/force-delete-snapshot-patch
...
Fixes acceptance test for PR #4223
10 years ago
Rickard von Essen
d3c2239b9e
builder/amazon: Change shutdown_behaviour to shutdown_behavior
10 years ago
Rickard von Essen
c24b4423b2
builder/amazon: Added new region London - eu-west-2
10 years ago
Alexander Krasnukhin
ac98aad1df
Fix log statement
10 years ago
Matthew Hooker
f1fb942219
add ca-central-1 to list of known aws regions.
...
resolves #4273
10 years ago
Rickard von Essen
5c4d331a34
Added missing LaunchPermission
10 years ago
Rickard von Essen
4ce3b8712a
Replace unencrypted EBS snapshots with encrypted
...
To ensure that groups and users attributes are added to the encrypted
snapshots.
10 years ago
Rickard von Essen
c3a352955e
amazon: Added snapshot_users and snapshot_groups
10 years ago
Ari Aviran
46f217f255
amazon - Snapshot permissions correctly applied
...
Fixes #3344
10 years ago
Rickard von Essen
d7a7d8c852
It's not possible to share encrypted AMI's
10 years ago
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.
10 years ago
poida
7ea17e1630
Allow custom encrypted AMIs to be shared
...
When using a custom KMS key to encrypt the boot volume of an AMI, packer should allow it to be shared with other users.
10 years ago
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.
10 years ago
Rickard von Essen
8d2ceea5f1
builder/amazon: crash on tagging snapshot when snapshot_tags is unset
...
Closes #4238
10 years ago
Rickard von Essen
bcc7f455b3
amazon: Fix source_ami_filter ignores owners
10 years ago
Arthur Burkart
576f6f1b39
Fixes acceptance test
...
The original acceptance test required a manual check. This one does
not.
10 years ago
Matthew Hooker
832de2104b
Revert "Merge pull request #4230 from mitchellh/revert-4223-closes_3320"
...
This reverts commit bda89b0c42 , reversing
changes made to f9f9d82419 .
10 years ago
Matthew Hooker
f5c3c25d2b
Revert "Adds `force_delete_snapshot` flag"
10 years ago
Matthew Hooker
f9f9d82419
Merge pull request #4223 from artburkart/closes_3320
...
Adds `force_delete_snapshot` flag
10 years ago
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!
10 years ago
Rickard von Essen
99ee610afa
builder/amazon: Fix SSH Agent
...
Closes #4220
10 years ago
Matthew Hooker
aedf4ca465
Merge pull request #4141 from mitchellh/ebsvoluemartifact
...
add ebsvolume artifact
10 years ago
Matthew Hooker
50267572a4
add ebsvolume artifact
10 years ago
Rickard von Essen
a09f20f996
Merge pull request #4015 from artburkart:closes_3908
...
Closes #3908 : Adds snapshot tag overrides
10 years ago
Arthur Burkart
0c7e73b1cf
Implements Snapshot tagging
...
While implementing my acceptance test, I stumbled upon a comment stating
that snapshot deletion should also be implemented, so I snuck that in. I
can't help but wonder if there is some generic logic that is implemented
a few times throughout the packer code base that could maybe better serve
us if it were abstracted to the common package.
10 years ago
Rickard von Essen
17eda06d61
Fixed formatting
10 years ago
ephemeralsnow
e53f4be005
Fix 'The AssociatePublicIpAddress parameter is only supported for VPC launches.'
10 years ago
Rickard von Essen
96e9a8e6e9
Removed default value for ssh_username
10 years ago
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
10 years ago
Matthew Hooker
9a91ae4e8f
fix new session error when creating cred chain.
...
the old and deprecated method won't error and so is safe to use
even if we're not in amazon.
10 years ago
Matthew Hooker
d81c06765d
fix go vet issue.
...
closes #4130
10 years ago
Matthew Hooker
f3f5f89fe6
Merge pull request #4096 from mitchellh/filterday
...
builder/amazon-ebs: show ami id found from filter
10 years ago
Matthew Hooker
60c459d6c8
Merge pull request #4098 from mitchellh/newsession
...
aws-sdk: use session.NewSession
10 years ago
Matthew Hooker
9bc23ea512
Merge pull request #4099 from mitchellh/waitfail
...
Waitfail
10 years ago
James Nugent
36c09af992
builder/amazon: Add tests for the `ebs-volume` builder
...
These smoke tests are effectively a mirror of the EBS builder tests.
10 years ago
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.
10 years ago
Matthew Hooker
d47e47cf1f
rewrite to not use private aws package
10 years ago
Matthew Hooker
c4c46c349e
implement security group waiter
10 years ago
Matthew Hooker
970b37077e
Merge pull request #4050 from jen20/ssh-agent
...
builder/amazon: Allow use of local SSH Agent
10 years ago
Matthew Hooker
48bdae93d1
aws-sdk: use session.NewSession
10 years ago
Matthew Hooker
83b57b98ac
show ami id found from filter
10 years ago
Matthew Hooker
d920b3fbf4
run gofmt
10 years ago
Matthew Hooker
0dd7d7ff3b
fix error message
10 years ago
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
10 years ago
Rickard von Essen
d66490ebfd
Properly cleanup AWS temporary key pairs
...
Closes #4057 - Amazon key pair no longer cleaned up at end of build
10 years ago
Rickard von Essen
d16d5d9686
Merge pull request #3817 from ChrisLundquist/dynamic-source-ami
...
Dynamic source ami
10 years ago
Richard Owen
adddc60a1d
Fix typo in encrypted ami step log message
10 years ago
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.
10 years ago
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.
10 years ago
Asif R Choudhury
48d94342ba
Add us-east-2 (Ohio) AWS region
10 years ago
Rickard von Essen
c273bd6beb
Merge pull request #3789 from jeremy-asher/amazon-ebs-delete-volumes-on-failure
...
clean up EBS volumes on failure
10 years ago
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
10 years ago
Rickard von Essen
acc2689b49
builder/amazon: Allow using ssh_private_key_file and ssh_password
...
This adds support for using amazon-ebs/amazon-instance builder without
a keypair. If a ssh_private_key_file is supplied without a
ssh_keypair_name no temporary ssh keypair is created. If ssh_password is
used no temporary ssh keypair is created and the password is used when
trying to connect.
Closes #2301
Closes #3156
10 years ago
Rickard von Essen
cffc8e892c
Merge pull request #3382 from ahamidi/encrypted-boot-volume
...
Create AMI with encrypted boot volume
10 years ago
Chris Lundquist
9379cbc5d9
[dynamic-source-ami] support instance builder too
10 years ago
Chris Lundquist
ab3500b45c
[dynamic-source-ami] support chroot builder
10 years ago
Chris Lundquist
1b4895c684
Merge remote-tracking branch 'origin/master' into dynamic-source-ami
10 years ago
Matthew Hooker
a9abe43325
builder/amazon: add retry login when creating tags.
...
also move Retry from builder/googlecompute/common to common/retry
10 years ago
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
10 years ago
Jeremy Asher
aea05f6485
fix nil pointer dereference in amazon-chroot
...
The refactor of StepRegisterAmi to add the from_scratch parameter
incorrectly replaced iteration over image.BlockDeviceMappings with
iteration over the new mapping array when not using from_scratch. This
fixes the regression and renames the parameters to newMappings and
mappings for better clarity.
10 years ago
Orivej Desh
6762965696
Add -on-error command line argument to allow preserving artifacts on builder errors
...
Resolves #409
10 years ago
Rickard von Essen
3b47893eb8
builder/amazon: reverted wrongly modified ssh_test's.
10 years ago
Rickard von Essen
067155c344
builder/amazon: guard aginst empty/nil PrivateIpAddress and updated tests.
10 years ago
Rickard von Essen
7f4bee737c
Merge pull request #3752 from tarrall/issue3751-ssh-privateip-classic
...
builder/amazon: Honor ssh_private_ip flag in EC2-Classic, not just VPC
10 years ago
Rickard von Essen
120b60ae37
Merge pull request #3865 from dpiddy/amazon-ssh-retry-fix
...
amazon/common/ssh: fix saving of instance to state
10 years ago
Dan Peterson
c7af9a67bc
amazon/common/ssh: fix saving of instance to state
...
Fixes #3496
10 years ago
Jeremy Asher
1c392b23f9
generate warnings for unused options with from_scratch
10 years ago
Jeremy Asher
ef0c7543e1
add amazon-chroot post mount commands
...
This adds an additional PostMountCommands step to the amazon-chroot
builder which executes after the volume is mounted, but before the
extra chroot mounts and copy step.
10 years ago
Jeremy Asher
5e8b697a76
add from_scratch option to amazon-chroot builder
...
This provides an alternate mode for the amazon-chroot builder which uses
a blank volume to build the image. It adds StepPreMountCommands to
permit partitioning and format commands to be executed before mounting
the new volume.
10 years ago
Jeremy Asher
85ae04bb75
split up BlockDevices in amazon/common
...
This breaks up the two options provided by BlockDevices into separate
structs to allow only one of them to be used by the amazon-chroot
builder.
10 years ago
Chris Lundquist
defdd1ecf3
Merge remote-tracking branch 'origin/master' into dynamic-source-ami
10 years ago
Rickard von Essen
ba629922c6
Merge pull request #3662 from ryansb/boost-spot-bid
...
(AWS Spot) Add 0.5 cents to discovered spot price
10 years ago
Krzysztof Wilczynski
d01fb65dcf
Fix. Use temporary_key_pair_name when specified. ( #3739 )
...
Fix: Use temporary_key_pair_name when specified.
This is to fix an issue where the temporary_key_pair_name configuration option
for amazon-ebs and amazon-instance builders would be ignored and replaced with
an automatically generated value using UUID, even when the option was explicitly
specified.
Remove space from the auto-generated SSH key-pair name.
Resolves #3736
10 years ago
Chris Lundquist
3cc8d35450
[dynamic-source-ami] fix old key name in error message
10 years ago
Chris Lundquist
b4d20706ce
[dynamic-source-ami] add some very basic tests
10 years ago
Chris Lundquist
57e7a1a3e6
[dynamic-source-ami] fix lint error
10 years ago
Chris Lundquist
95afaa58ca
[dynamic-source-ami] rename to source_ami_filter
10 years ago
Chris Lundquist
0e248f1516
[dynamic-source-ami] make most_recent work
10 years ago
Chris Lundquist
ec1abb9448
[dynamic-source-ami] proof of concept
10 years ago
Jeremy Asher
6130b8588d
remove check for AMIs when deleting vols
...
This removes the unnecessary check for AMIs before cleaning up volumes.
AMIs will exist on a successful run, but not when a build fails after
instance creation (during provisioning for example). The following
check for instance being nil should be sufficient.
10 years ago
Ali Hamidi
c6a527dc46
throw error if encrypted ami is shared
10 years ago
Ali Hamidi
1cecda639a
add encrypted boot volume acceptance test
10 years ago
Ali Hamidi
902ae375b3
delete unencrypted snapshot
10 years ago
Ali Hamidi
53b3867c50
allow packer to create an encrypted copy of the AMI
10 years ago
Robert Tarrall
94bf981d3b
Honor ssh_private_ip flag in EC2-Classic, not just VPC
...
VpcId will be nil in Classic, but we may still wish to ssh to the
instance's private IP address -- if for example we are using security
groups to block SSH access via the public IP.
10 years ago
Chris Bednarski
c0b637b0c5
Merge pull request #3733 from envato/no-shutdown-behaviour-instance-backed
...
No shutdown behaviour instance backed
10 years ago
Ricard Clau
172a1c7a57
add source ami to output
10 years ago
Chris Bednarski
ee5c5260a4
Merge pull request #3663 from liv3d/add_ap-south-1
...
Add support for ap-south-1 in AWS
10 years ago
Chris Bednarski
443ffd68f2
Added explicit error when SG is not working
10 years ago
Dan Offord
4428079a68
Add support for ap-south-1 in AWS
...
Amazon recently announced support for ap-south-1 in Mumbai, adding this
to the list of known regions to Packer
10 years ago
Ryan S. Brown
c68ddef4e9
(AWS Spot) Add 0.5 cents to discovered spot price
...
Related to #2979 , in volatile spot markets the automatic price can
cause your instances to be evicted if the spot price rises. This change
adds one half a cent to your bid to protect against small amounts of
price volatility.
10 years ago
Mike LoSapio
080806243e
Added a hook to query the security groups before launching the instance - seems to catch the AWS eventual consistency nicely
10 years ago
Patrick Robinson
40bd45764c
Only set InstanceInititatedShutdownBehavior on ebs instances
10 years ago
Chris Bednarski
ab9621ab7d
Added aws shutdown_behavior to the changelog
10 years ago
Patrick Robinson
f361e1d894
Precompile regex
10 years ago
Patrick Robinson
b1d6d28a90
Add unit tests for shutdown behaviour
10 years ago
Patrick Robinson
a9f914ea97
Add shutdown_behaviour option
...
This means an instance will terminate upon shutdown.
10 years ago
owjjh
658fadbc53
changing if conditionals to be ! instead of == false
10 years ago
owjjh
d489ce9904
make fmt run
10 years ago
owjjh
de5b69a8df
Adding ability to skip region validation when using AWS
10 years ago
Chris Chalfant
601b833aaa
style and documentation changes per PR review comments
10 years ago
Chris Chalfant
8163e16e02
gofmt code
10 years ago
Chris Chalfant
72a7123a0b
Add option to tell packer not to stop the instance
...
It is sometimes desirable to sysprep a windows machine before creating
an EC2 image. The AWS-approved way to do this is to run
ec2configservice.exe -sysprep and let ec2configservice shut down the instance.
This change adds an option to disable the stop instance call issued by packer
so that the user can control when the machine is stopped.
10 years ago
Chris Bednarski
d0ab8658bc
Create a session for EC2RoleProvider; prevents crash; fixes #3123
10 years ago
Vasiliy Tolstov
feee19e4ed
file provisioner improvements
...
* allow specify source/destination as dir
* allow specify many files as source
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
10 years ago
Chris Bednarski
4458de4ea0
Reformat
10 years ago
Chris Bednarski
765ec5cf39
Merge pull request #2962 from dave2/postprocess_amazon_ova
...
New post-processor: amazon-import
10 years ago
Chris Bednarski
358b5c62e2
Merge pull request #3143 from ThatGerber/iam-roles
...
IAM CLI Profile/Assume Role Support
10 years ago
Christopher Gerber
e7711c31ea
Wrong function to convert int to string.
10 years ago
Christopher Gerber
b75d561c56
Fixes more windows testing errors.
...
"constant 9999999999 overflows int" running test on CI server. Replaced with timestamp to unixnano
10 years ago
Christopher Gerber
d25ba245f4
Fixes bytes to string issues in Windows build.
10 years ago
Christopher Gerber
a6aefa859f
Fixes issue in build where multiple processes were trying to access the same file.
10 years ago
Christopher Gerber
6c3e0daf24
Added tests. Updated CLIConfig to pass tests.
10 years ago
Chris Bednarski
e6b6f0b020
Merge pull request #2539 from fnoeding/amazon-ebs-fix-ec-user-data-encoding
...
amazon builder: always base64 encode ec2 user data
10 years ago
Christopher Gerber
f1ae2a2b5a
Moved assume credentials to CLIConfig. Added new functions and methods to CLIConfig. Ran gofmt.
10 years ago
Chris Bednarski
951a7e8ad3
Merge pull request #2596 from manicai/master
...
Fix for #2496 AWS credentials for instance based AMIs
10 years ago
Christopher Gerber
4cf9e36085
Changes credential/config file opener to use homedir instead of HOME environmental variable.
10 years ago
Christopher Gerber
7975c5e336
Move CLIConfig instantiation inside of ProfileName check.
10 years ago
Christopher Gerber
883acb18fa
IAM Role Switching
...
Adds initial IAM Role Switching support and support for AWS CLI Credential and Config files.
See: https://github.com/mitchellh/packer/issues/3109
10 years ago
Chris Bednarski
4490826a17
Merge pull request #3040 from kimor79/3011
...
Add mount_partition option to amazon-chroot builder
10 years ago
Chris Bednarski
1a5d5acea4
Merge pull request #2737 from jen20/ebs-volume-tags
...
Tag EBS volumes with volume_tags in EBS builder
10 years ago
Chris Bednarski
d6fad30162
Merge pull request #2955 from yayugu/feature/ami_product_codes
...
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
10 years ago
Chris Bednarski
1ab5fc8ca5
Merge pull request #3037 from ColinHebert/subnet_az_discovery
...
Add auto discovery of AZ based on the subnet
10 years ago
Chris Bednarski
0cad32c696
Move region list into a function so we can re-use it in tests
10 years ago
Chulki Lee
20c0f6b02b
fix doc: wrong function name
10 years ago
Chulki Lee
1aa24035fc
add ap-northeast-2: Asia Pacific (Seoul)
10 years ago
Chulki Lee
7018517374
one region per line, sorted
10 years ago
Chulki Lee
3f0795b23c
sort regions by name
10 years ago
Chulki Lee
7f3f5f4bfa
add tests for all ami regions
10 years ago
Kimo Rosenbaum
09543fc4e7
Add mount_partition to amazon-chroot builder to specify a partition other than 1
11 years ago
Colin Hebert
48d242a8f8
Use pointers in the AWS API
11 years ago
Colin Hebert
9385a277c6
Fix API calls and remove az detection in chroot
11 years ago
Colin Hebert
e4930e7b57
Merge branch 'master' into subnet_az_discovery
11 years ago
David Zanetti
418da16991
Track the import task and report AMIs created from it
11 years ago
Yuya YAGUCHI
9c8405b2c6
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
11 years ago
Mark Peek
ca19688316
aws: fix test breakage due to upstream breaking change #2891
11 years ago
Luke Amdor
8682dec178
aws: build after upstream breaking change
...
see 1a69d06935
11 years ago
Mark Peek
eb15536041
Merge pull request #2774 from btd/btd-patch-1
...
Fix AMI creation - replace not allowed character , and add allowed .
11 years ago
Mark Peek
4e1e9b788a
Merge pull request #2845 from abridgett/feature/spot_price_zero
...
spot_price of "0" to mean on demand
11 years ago
Adrian Bridgett
3257b26fa7
one more place to check SpotPrice
11 years ago
Denis Bardadym
25e2ff7b85
Fix not allowed comma, add all allowed special characters
11 years ago
Mark Peek
6f5c64db41
Merge branch 'use-default-volumesize'
11 years ago
Mark Peek
a9716a4dc7
Merge pull request #2797 from jen20/improve-aws-instance-builder-error
...
Add suggestion to AWS Instance builder error message
11 years ago
Mark Peek
fc39f07ecc
Add EbsOptimized to RequestSpotInstances ( #2806 )
11 years ago
Mark Peek
edda3de677
Merge pull request #2806 from abridgett/feature/add_ebs_optimized_support
...
Add ebs_optimized support
11 years ago
Mark Peek
f6c7e3740f
Don't create EBS block device if VirtualName is specified
11 years ago
Mark Peek
914e78f602
builder/amazon/common: go fmt
11 years ago
Mark Peek
581c3574f6
Merge pull request #2672 from lightpriest/b-aws-ebs-block-device
...
Fix and refactor block device mapping builder
11 years ago
Mark Peek
45829c30e5
builder/amazon/*: fix go vet
11 years ago
Adrian Bridgett
da771c469e
spot_price of "0" to mean on demand
...
this helps avoid duplicating packer templates just to select
spot instances or not
11 years ago
Adrian Bridgett
8349e22df9
Add ebs_optimized support
11 years ago
James Nugent
b60e1fd862
Add suggestion to AWS Instance builder error message
...
A common cause of the failure of the bundle volume step is missing the
ec2-bundle-vol command on the target instance. This commit adds a note
about this to the error message produced as Packer output if the
bundling step fails (it is already in the documentation).
11 years ago
James Nugent
632d38a1c5
Tag EBS volumes with volume_tags in EBS builder
...
This change allows specification of a new "volume_tags" array in the
amazon-ebs builder in order to allow tagging of volumes used on the
source instance. It is implemented as a new step which is skipped if
there are no tags specified.
11 years ago
Or Cohen
2a94b596ce
Fix and refactor block device mapping builder
...
Fix NoDevice not properly configured #2398 .
Refactor the mapping builder to match BlockDeviceMapping from AWS SDK:
* If NoDevice is specified, include NoDevice only.
* If VirtualName starts with ephemeral, don't create Ebs (they are mutually
exclusive anyway)
* Otherwise, assume Ebs and create it with the exact specified attributes by
the user.
Change/add tests to reflect these changes.
11 years ago
Chris Bednarski
1a775c05d9
Update calls to amazon to match the upstream
...
- see http://aws.amazon.com/releasenotes/2948141298714307
- run awsmigrate-renamer on each amazon module (chroot, instance, etc.)
11 years ago
Ian Glover
1447af5e42
Populate access and secret key for bundle_upload_command.
11 years ago
Chris Bednarski
4cc443da8e
Update use of ec2rolecreds to match upstream
11 years ago
Chris Bednarski
abb67fdd79
Fix govet issues
11 years ago
Florian Noeding
62c39888b4
amazon builder: always base64 encode ec2 user data
11 years ago
Florian Noeding
98b9d22b68
amazon builder: only fetch password for winrm
11 years ago
Chris Bednarski
a9c299d9c4
Merge pull request #2404 from mitchellh/b-instance-destroy
...
amazon/common: store instance ID earlier for cleanup
11 years ago
Chris Bednarski
28bf1877c2
Updated AWS SDK calls to match the 0.7.0 release of the AWS SDK
11 years ago
Yo Takezawa
628462b919
Use snapshot size if you don't specify a VolumeSize
11 years ago
Tommy Ulfsparre
241903d0b0
no point in setting iops on a standard volumes
11 years ago
Chris Bednarski
c615539929
Reformat long lines
11 years ago
Chris Bednarski
9365a43179
Reformat
11 years ago
Tommy Ulfsparre
ae064207d5
Add test for ephemeral block device mapping
11 years ago
Anthony Spring
224bb78175
Make EBS block device mapping optional for ephemeral virtual names.
11 years ago
Mitchell Hashimoto
26aa3dd575
amazon/common: store instance ID earlier for cleanup
11 years ago
Steven Merrill
0869c9fe64
Fix #2830 .
11 years ago
Mitchell Hashimoto
6dd36075b2
Merge pull request #2352 from mitchellh/b-amazon-bundle
...
builder/amazon/instance: set valid bundle prefix [GH-2328]
11 years ago
Mitchell Hashimoto
98db68e36c
builder/amazon/instance: set valid bundle prefix [GH-2328]
11 years ago
Mitchell Hashimoto
b315e470c8
builder/amazon: set debug flag for get password
11 years ago
Mitchell Hashimoto
0a2e54feaf
builder/amazon: output WinRM password for debug mode [GH-2336]
11 years ago
Mitchell Hashimoto
95dd79740f
Merge pull request #2324 from tcahill/group-launch-permissions
...
Fix setting ami_groups
11 years ago
Mitchell Hashimoto
7b64723a11
Merge pull request #2327 from emate/fix-for-spot-requests-cleanup
...
Fixes spot instance cleanup.
11 years ago
Mitchell Hashimoto
aab5ca7059
update CHANGELOG
11 years ago
Marcin Matlaszek
3eaf7f38b0
Fix adding launch permissions for created ami.
11 years ago
Tom Cahill
6644d76982
Use aws.String to obtain string pointers
11 years ago
Tom Cahill
016d916d83
Fix adding groups to AMI launch permissions.
...
Previously, groups were granted launch permissions by submitting a
ModifyImageAttribute request with the UserGroups parameter set
appropriately. This is no longer valid, as the LaunchPermission
parameter must be set.
11 years ago
Clint Shryock
4d003aa5a3
builder/amazon-instance: Don't specify empty Virtualization Type
11 years ago
Marcin Matlaszek
586cab11ee
Fixes spot instance cleanup.
11 years ago
Tommy Ulfsparre
8ae0cfc759
copy and convert to pointer
11 years ago
Clint
7b9d48799e
Merge pull request #2316 from jjappi/fix-aws-tagging
...
Fix failing AMI snapshot tagging when copying to other regions.
11 years ago
Marcin Matlaszek
dd97a60c9b
Fix for tag creation when creating new ec2 instance.
11 years ago
Jani Jappinen
c537623bc6
Fix failing AMI snapshot tagging when copying to other regions.
11 years ago
Clint Shryock
7af5d5419a
builder/amazon: Fix issue with sharing AMIs with ami_users
11 years ago
Clint Shryock
3a54e6899d
code cleanup
11 years ago
Clint Shryock
29cef0eae4
builder/amazon-chroot: add mount_options configuration option
11 years ago
Clint
3884555007
Merge pull request #2289 from mitchellh/b-amazon-chroot-fixes
...
builder/amazon-chroot: various fixing and debugging of chroot builder
11 years ago
Clint Shryock
5d2ea088a2
builder/amazon-chroot: add root_volume_size to resize chroot root volume
11 years ago
Clint Shryock
8a9a59c3ca
check if newDevice.EBS is nil
11 years ago
Clint Shryock
9f8b0041f0
builder/amazon-chroot: use source image virtualization type, unless specified
11 years ago
Clint Shryock
f374edc2b8
builder/amazon-chroot: Fixes for amazon-chroot builder
...
These are needed for chroot builder to work
11 years ago
Mitchell Hashimoto
5db4d7c01f
fmt
11 years ago
Mitchell Hashimoto
944b4bf46c
common: delete file if checksum fails
11 years ago
Clint
6579219013
Merge pull request #2282 from mitchellh/f-amazon-cleanup-volumes
...
builder/amazon-ebs: Clean up orphan volumes
11 years ago
Mitchell Hashimoto
84189f7a28
builder/*: properly save interpolation context
11 years ago
Clint Shryock
dff6cf1a83
code tweak after review
11 years ago
Clint Shryock
c9714ce69e
builder/amazon-ebs: Clean up orphan volumes
...
Fixes #1783
11 years ago
Mitchell Hashimoto
9c0f37b2c9
builder/amazon: fix weird edge cases with key names [GH-2281]
11 years ago
Mitchell Hashimoto
5c290fdbc7
builder/amazon use proper key pair name
11 years ago
Mitchell Hashimoto
4da0b42fc1
Merge pull request #2054 from garnaat/amazon-chroot-check-before-umount
...
builder/amazon-chroot: Only unmount if path is actually mounted
11 years ago
Mitchell Hashimoto
b7dab2689a
fmt
11 years ago
Mitchell Hashimoto
de2004c1c9
Merge branch 'master' of https://github.com/nyetsche/packer into nyetsche-master
11 years ago
Clint Shryock
d22c4173d3
fix crash when waiting for an instance that has failed
11 years ago
Clint
2372393f64
Merge pull request #2212 from mitchellh/f-amazon-add-tags-to-snapshots
...
Add EBS snapshot tags #846 #1219
11 years ago
Clint
8fca582278
Merge pull request #2221 from mitchellh/f-amazon-force-deregister-artifacts
...
builder/amazon: Add force_deregister option
11 years ago
Mitchell Hashimoto
ccf20568a7
Merge pull request #2240 from mitchellh/f-windows
...
Windows AWS instances
11 years ago
Mitchell Hashimoto
101e5986dc
builder/amazon: enable windows for instance type too
11 years ago
Mitchell Hashimoto
b8d5bd3776
Merge pull request #2242 from emate/spot_network_interfaces_fix
...
Fix network interface spec when requesting spot.
11 years ago
Marcin Matlaszek
b51761ca36
Fix network interface spec when requesting spot.
11 years ago
Mitchell Hashimoto
e9d916a7bc
builder/amazon: don't print windows password
11 years ago
Mitchell Hashimoto
8f6ecfd9e3
builder/amazon: various fixes (minor) to get things going
11 years ago
Mitchell Hashimoto
022a115d19
builder/amazon: improve messaging
11 years ago
Mitchell Hashimoto
d23f254b76
builder/amazon: don't get password if platform not set on image
11 years ago
Mitchell Hashimoto
fd4e0e9da4
builder/amazon: StepGetPassword
11 years ago
Mitchell Hashimoto
115d583cff
helper/communicator: make host more generic
11 years ago
Mitchell Hashimoto
e557928119
builder/amazon: use helper/communicator
11 years ago
Clint Shryock
bec59b535d
builder/amazon: Add force_deregister option, to automatically deregister artifacts with name conflicts
11 years ago
Clint Shryock
86206e316d
add tags test
11 years ago
Clint
2af0f10d59
Merge pull request #2204 from mitchellh/b-aws-iam-profile-upload
...
builder/amazon-instance: Omit access, secrety key if using IAM Instan…
11 years ago
Clint Shryock
1fbf8b7f32
update create_tags for new sdk
11 years ago
Clint Shryock
a8155e17aa
merge acaire/add-ebs-snapshot-tags
11 years ago
Clint Shryock
2056fda4d3
builder/amazon: Allow spaces in AMI names
11 years ago
Clint Shryock
c9b413e3d1
builder/amazon-instance: Omit access, secrety key if using IAM Instance Profile
11 years ago
Mitchell Hashimoto
be4a82dfae
amazon/*: fix some merge conflicts
11 years ago
Mitchell Hashimoto
8e1db0d94c
Merge branch 'fix_amazon_instance_waits' of https://github.com/renat-sabitov/packer into renat-sabitov-fix_amazon_instance_waits
11 years ago
Jan Schumann
802cfa3871
make sure IOPS is not set for empty VolumeType
11 years ago
Jan Schumann
5d600c70f2
added test to illustrate wrong behavior
11 years ago
Clint
b31534d5fe
Merge pull request #2197 from mitchellh/f-aws-fixup-ebs-snapshots
...
Update AWS EBS builder to fix invalid params
11 years ago
Clint Shryock
4da118c64f
fix up tests
11 years ago
Clint Shryock
999b0874cc
Update AWS EBS builder to fix invalid params
11 years ago
Clint Shryock
8c321138f4
Revert "Changing --region to --location"
...
This reverts commit f40fd36c31 .
According to the documentation below, `--region` is the current flag. If you're
using an older version of the tools that use `--location`, you can customize the
commands in your Packer config with `bundle_vol_command` and `bundle_upload_command`
- http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-upload-bundle.html
- https://www.packer.io/docs/builders/amazon-instance.html
11 years ago
Clint
455d57a87f
Merge pull request #2187 from mitchellh/f-aws-add-prevalidate-step
...
builder/aws: Add pre validate step, to validate things before building.
11 years ago
Clint Shryock
68040f786c
show AMI id in error message
11 years ago
Clint Shryock
231f01cd35
builder/aws: Add pre validate step, to validate things before building.
11 years ago
Mitchell Hashimoto
984bbc3a1e
amazon/common: wording nit
11 years ago
Mitchell Hashimoto
8aec42e363
update CHANGELOG
11 years ago
Mitchell Hashimoto
9387cc1ea1
Merge pull request #2175 from henrysher/fix-duplicate-ami
...
check the region before do the ami copy to fix the duplicate ami [GH-2123]
11 years ago
Mitchell Hashimoto
f7e49d92ac
Merge pull request #2178 from henrysher/fix-ami-copy-name
...
"Name" parameter required for copying ami across regions [GH-2172]
11 years ago
Mitchell Hashimoto
769b7d20b9
amazon/ebs: acceptance test for region copy
11 years ago
Henry Huang
052b5e6699
"Name" parameter required for copying ami across regions [GH-2172]
11 years ago
Henry Huang
a5c476c6fe
check the region before do the ami copy to fix [GH-2123]
11 years ago
Seth Vargo
33ca8b7fb5
Migrate to new AWS repo
11 years ago
Mitchell Hashimoto
edf3415c6e
builder/amazon: delete physical private key for debug mode [GH-1801]
11 years ago
Mitchell Hashimoto
913d6f6996
builder/amazon/common: fix compilation issues with latest libs
11 years ago
Mitchell Hashimoto
07734133a3
builder/amazon: fix test failures
11 years ago
Mitchell Hashimoto
8cac7e8d51
Merge pull request #1930 from bhourigan/issue1929
...
Prepending -i to sudo so PATH is inherited from profile.d scripts
11 years ago
Mitchell Hashimoto
3031886aaf
Merge branch 'master' of https://github.com/aocsolutions/packer into aocsolutions-master
11 years ago
Mitchell Hashimoto
11e2fad6d0
Merge pull request #2022 from mefellows/issue/2021
...
Report error during Temporary Security Group creation in AWS EBS builder
11 years ago
Mitchell Hashimoto
b78b119a11
amazon/*: fix merge issues with lib switch
11 years ago
Mitchell Hashimoto
44b980e659
Merge branch 'aws-sdk-go' of https://github.com/jen20/packer into jen20-aws-sdk-go
11 years ago
Mitchell Hashimoto
b9bfae8da3
amazon/chroot: style
11 years ago
Mitchell Hashimoto
20fa7aeeb6
Merge pull request #2046 from danschaffer/amazonchroot-volumes-retry-fix
...
builder/amazon/chroot: fix no attachments on volume error.
11 years ago
jszwedko
b1497b951c
code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
...
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6
Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.
This is a precursor to a PR for #1066 .
11 years ago
Mitchell Hashimoto
c78c4e78ad
amazon/common: sleep 3 seconds if instance doesn't exist
11 years ago
Mitchell Hashimoto
f78d7eefdc
Merge pull request #2129 from lokulin/master
...
Fixes #2128 Retry the AWS API when looking for a newly created instance
11 years ago
Mitchell Hashimoto
034e4e676c
amazon/*: use new interpolation functions
11 years ago
Mitchell Hashimoto
50d7c598e9
amazon/ebs: use new interpolation stuff
11 years ago
Mitchell Hashimoto
fea8bb3566
amazon/ebs: basic acceptance test
11 years ago
lokulin
bda4ef7c65
Retry the AWS API when looking for a newly created instance
...
Sometimes the AWS API responds that it can't find a newly created
instance if you poll it too soon after creation. Retry a few times
to be sure it really hasn't been created.
11 years ago
Mitch Garnaat
fd5f4c61ae
Added a call to grep for path in /proc/mounts before attempting to umount. If path is not there, it is already unmounted.
11 years ago
Dan Schaffer
03436a3745
builder/amazon/chroot: fix no attachments on volume error.
...
This adds retry logic to the amazon/chroot builder. The builder
intermittently fails when ec2conn shows the volume in the attached
state but calling Volumes[0].Attachments return an empty array. The
fix adds a retry logic for when Volumes[0].Attachments has len 0 sleep
for 2 seconds and retry up to 30 times.
When the Volumes[0].Attachments is empty I find within 5 seconds the
Volumes[0].Attachments contains the correct value.
The issue is reported in:
https://github.com/mitchellh/packer/issues/1854
11 years ago
James Nugent
65a9347b1e
Fix potential nil pointer errors in ported code
...
This commit adds extra nil checks for some pointers which were not
necessary when using goamz
11 years ago
James Nugent
33b4f5cc0a
Check for EBS being nil before assigning it
11 years ago
James Nugent
e99cd56b6c
Migrate from mitchellh/goamz to awslabs/aws-sdk-go
...
This commit moves the Amazon builders of Packer away from the Hashicorp
fork of the goamz library to the official AWS SDK for Go, in order that
third party plugins may depend on the more complete official library
more easily.
11 years ago
Matt Fellows
a973dce7d3
Report error code during Temporary Security Group creation ( #2021 )
11 years ago
Brian Hourigan
a4cfd921f4
Adding missing hyphen to sudo options
11 years ago
Nevins Bartolomeo
6686b62347
AWS availability zone could be incorrect when using spot instances with no AZ specified
11 years ago
renat-sabitov-sirca
d046e1cc5b
Fixing transient AWS errors during EBS builds
...
Relates to #1539
AWS is eventually consistent and instance can be not visibile for
some time after creation. This fix eliminates describe-instances
call before going to the proper wait loop
11 years ago
Ash Caire
361e859556
Add EBS snapshot tags
11 years ago
Colin Hebert
a08725f7c5
Add auto discovery of AZ based on the subnet
11 years ago
Emil Hessman
505f51ff27
builder/amazon/ebs: fix incorrect printf verb type
...
Fixes the following vet report:
builder/amazon/ebs/step_create_ami.go:90: arg resp.Return for printf verb %s of wrong type: bool
11 years ago
Emil Hessman
05c2206684
builder/amazon/common: fix incorrect printf verb type in amiRegionCopy
...
Fixes the following vet reports:
builder/amazon/common/step_ami_region_copy.go:81: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region
builder/amazon/common/step_ami_region_copy.go:93: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region
11 years ago
Brian Hourigan
f40fd36c31
Changing --region to --location
11 years ago
Brian Hourigan
8e69403735
Prepending -i to sudo so PATH is inherited from profile.d scripts related to ec2 tooling
11 years ago
Lesko, Matthew (NIH/NLM/NCBI) [C]
43f08b2664
go fmt all the things
12 years ago
Lesko, Matthew (NIH/NLM/NCBI) [C]
62e054c404
simplify output
12 years ago
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.
12 years ago
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)
12 years ago
Mitchell Hashimoto
2dfc5d3e71
builder/amazon: inject special metadata for atlas artifacts
12 years ago
Armon Dadgar
20d040dcba
Merge pull request #1723 from irgeek/fix-1637
...
Use an index loop as range loops over copies, not references
12 years ago
James Sinclair
02ebef9031
Use an index loop as range loops over copies, not references
...
Fixes #1637
12 years ago
Greg Cockburn
dbaf865e59
change ordering of ssh connection IP for amazon. fixes #1559
12 years ago
Mitchell Hashimoto
0db6cd3533
Merge pull request #1330 from qur/qemu-vagrant
...
Qemu vagrant
12 years ago
Mitchell Hashimoto
e422a45449
fmt
12 years ago
Mitchell Hashimoto
716d4719dc
Merge pull request #1622 from delitescere/GH-1533-aws-timeout
...
builder/amazon: Extend timeout and allow user override [GH-1533]
12 years ago
Mitchell Hashimoto
4406c20af1
builder/amazon: prefer token in config [GH-1544]
12 years ago
Josh Graham
5a2c4fe8a0
builder/amazon: Extend timeout and allow user override [GH-1533]
...
- help resolve https://github.com/mitchellh/packer/issues/1533
(although timeouts are always ultimately useless in a distributed
system!)
- makes packer no more idempotent or janitorial than before
- derive maximum number of ticks from timeout
- default timeout to 300s (5m) to cater for global AMI copying
- allow user to override with AWS_TIMEOUT_SECONDS environment variable
12 years ago
Mitchell Hashimoto
010cdb2057
amazon/common: style
12 years ago
Matt Page
6fb2586fb2
fix: Ignore transient network errors when fetching AWS state.
...
Given that state fetching is an idempotent operation, a transient
network error should not cause the entire build to fail. Instead,
retry when such errors are encountered.
12 years ago
Julian Phillips
90a57c411f
Expand Artifact API to expose build state
...
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
12 years ago
Mitchell Hashimoto
75395af12d
Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
...
Conflicts:
builder/parallels/common/step_upload_parallels_tools.go
builder/vmware/common/step_upload_tools.go
provisioner/chef-client/provisioner.go
provisioner/chef-solo/provisioner.go
12 years ago
Mitchell Hashimoto
dc0de7da49
builder/amazon-ebs: don't clean up AMI if doesn't exist [GH-1469]
12 years ago
Mitchell Hashimoto
db90c16118
builder/amazon: support auto spot price discovery [GH-1465]
12 years ago
Mitchell Hashimoto
a587bd47a1
builder/amazon/ebs: clean up AMI in error [GH-1186]
12 years ago
Mitchell Hashimoto
669f26a108
Merge pull request #1186 from henrysher/ami-cleanup
...
Add the cleanup when the process of EBS AMI interrupted
12 years ago
Mitchell Hashimoto
7d1db44ca4
builder/amazon: clean up UI output for spot instances a bit
12 years ago
Mitchell Hashimoto
2e5f3da5c1
builder/amazon: fix {{uuid}} default not being replaced
12 years ago
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
12 years ago
Mitchell Hashimoto
c9cc82d89e
builder/amazon-chroot: add description with time created snapshot
...
[GH-1388]
12 years ago
Mitchell Hashimoto
5db91c84bf
builder/amazon: string fields on device mappings can use variables
12 years ago
Mitchell Hashimoto
ed377c9ff0
builder/amazon-instance: --no-filter by default [GH-1137]
12 years ago
Mitchell Hashimoto
0776d9de34
builder/amazon: ssh_private_ip [GH-1229]
12 years ago
Mitchell Hashimoto
bac54a6645
builder/amazon/common: token [GH-1236]
12 years ago
Mitchell Hashimoto
69cd01bbe2
builder/amazon/common: wait for instance ready before tagging [GH-1367]
12 years ago
Mitchell Hashimoto
77bd024079
builder/*: fix flaky tests, get tests passing
12 years ago
Mitchell Hashimoto
dc74c2bbdd
builder/amazon: tests
12 years ago
Mitchell Hashimoto
2a9cb50b17
builder/amazon: fix broken build
12 years ago
Mitchell Hashimoto
825864a9ea
Merge branch 'additional-user-variables' of github.com:nBerg/packer into nBerg-additional-user-variables
...
Conflicts:
builder/amazon/common/run_config.go
12 years ago
Mitchell Hashimoto
752162c234
fmt
12 years ago
Mitchell Hashimoto
5d1c1e6716
Merge pull request #1373 from anthonybishopric/debug_bundle_commands
...
builder/amazon-instance: Debug the evaluated bundle commands
12 years ago
Mitchell Hashimoto
e8889e56ed
Merge pull request #1381 from pas256/chroot-hvm
...
builder/amazonchroot: can build both PV and HVM images
12 years ago
Mitchell Hashimoto
dac078b451
Merge pull request #1360 from jmassara/ee_fix
...
builder/amazon-chroot: Fix bug with getting ec2 connection instead of source image
12 years ago
Mitchell Hashimoto
704648896e
Merge pull request #1425 from dysinger/1424-amazon-instance-s3-region-not-url
...
builder/amazon-instance: Use Region not S3Endpoint (see Issue 1424)
12 years ago
Ulf Mansson
bebca3bfae
It's not necessary to use an instance-store image to build an instance-store image, see this example http://sorcery.smugmug.com/2014/01/29/instance-store-hvm-amis-for-amazon-ec2/ so there should be no restriction on the ExpectedRootDevice
12 years ago
Tim Dysinger
c79121617c
Use Region not S3Endpoint
12 years ago
Peter Sankauskas
ab9f0bc3c8
Removing my debugging output
12 years ago
Peter Sankauskas
a2c0b104f0
Adding the conditional necessary to construct the right options for both PV and HVM images. Also adding a test to make sure it is doing the right thing
12 years ago
Peter Sankauskas
460e2da248
The mount command for a PV image that is attached to /dev/sdf is:
...
mount /dev/xvdf /mnt/point
while for an HVM image that is attached to /dev/sdf, its mount command is
mount /dev/xvdf1 /mnt/point
so this code enabled that
12 years ago
Peter Sankauskas
6b751cac39
Formatting
12 years ago
Peter Sankauskas
a59ee93bca
To be able to build both PV and HVM images, it is not possible to use both /dev/sd[f-p] and [1-16] as the HVM images get attached at /dev/sdf but must be mounted a /dev/sdf1.
...
This reduces the number of simultaneous packer runs possible significantly, but unless you are Netflix, who have Aminator anyway, this is probably never going to be an issue
12 years ago
abishopric
d62edd6c05
Print the evaluated bundle commands
12 years ago
Henry Huang
97eb744c87
De-register the unavailable image in the cleanup
12 years ago
James Massara
ca84e2ac55
Fix bug with getting ec2 connection instead of source image
12 years ago
Mitchell Hashimoto
7439baf75e
Merge pull request #1343 from fnoeding/templating
...
Added support to use templates for more fields in null-builder and amazon-builder
12 years ago
Mitchell Hashimoto
8250755a23
Merge pull request #1228 from jmassara/enhanced_networking
...
builder/amazon: support for enhanced networking
12 years ago
Florian Noeding
e932ec6978
amazon builders now handle templating of user_data and user_data_file
12 years ago
Nina Berg
bd1a0d07fb
Added some variables to amazon-ebs builder and chef-client provisioner
12 years ago
Ian Delahorne
2d1e1cc83e
Sort AMI names in Artifact.String - fixes random test failures
...
With go tip, the output from Artifact.String will sometimes be output in a
different order than the tests. Sort the AMI strings before outputting.
See https://travis-ci.org/mitchellh/packer/jobs/28748467 for an example of this
failure.
12 years ago
James Massara
be27ecc64b
Add option to enable enhanced networking (SriovNetSupport) for images.
12 years ago
Brandon Turner
b2258dc4e9
Fix chroot builder to work with chef-solo
...
According to be5adb92b5 , the UploadDir
method supports two ways of copying depending on whether a trailing
slash is used:
src = "dir" -> dest/dir
src = "dir/" -> dest
On BSD-based systems (such as OSX, FreeBSD, etc.) the `cp -R` command
handles these two cases automatically. However, Linux treats "src/" and
"src" the same.
To support the trailing slash syntax portably, we can use:
src = "dir" -> dest/dir
src = "dir/." -> dest
This works on BSD and Linux. It is better than using wildcards as it
grabs hidden files as well.
This fixes #1196 that prevents the chef-solo provisioner from working
with the chroot builder.
12 years ago
Henry Huang
da29d684a8
Enable the spot_price in "amazon-instance-store" AMI
12 years ago
Henry Huang
3980c7dcfd
Save the spot request before waiting for its active state
12 years ago
Henry Huang
1e1fa3de26
Add the cleanup for existing spot request
12 years ago
Henry Huang
5d410bddc9
When unexpected state found in waiting, notify the caller func with a correct error message
12 years ago
Henry Huang
3a74c469e5
Add "spot_price" param into template processing
12 years ago
Henry Huang
a411405628
Clean up code via "go fmt"
12 years ago
Henry Huang
c33e7cc867
Add the support of launching spot instances in "amazon-ebs" AMI
12 years ago
Greg Burek
3a45712780
Adds support for encrypted EBS volumes
12 years ago
Henry Huang
43385a58bc
Refine the comments
12 years ago
Henry Huang
e8c09ae223
Add the cleanup when the process of EBS AMI interrupted
12 years ago
Pierre Riteau
5294e0ed61
Remove unused file
12 years ago
Ross Smith II
d92179847d
provisioner/file: set file/directory permissions
...
fixes #1064
12 years ago
Jaime Soriano Pastor
32bb745734
Force LANG=C before appending rest of environment, as only first occurence is used
12 years ago
Nathan Hartwell
be5adb92b5
Appending wildcard to src causes problems
...
It appears that the desired effect was to support
src = "dir" -> dest/dir
src = "dir/" -> dest
but cp -R already handles this, provided the trailing slash does not
get consumed by the shell.
The wildcard causes problems when multiple files match the
shell glob, e.g.
UploadDir("/tmp", "./salt*", [])
where my working dir contains
- salt
- salt-foo
will error.
12 years ago
Mitchell Hashimoto
0417ae3059
builder/amazon: alphabetize some things
12 years ago
Mitchell Hashimoto
0558d56bcf
builder/amazon/chroot: get tests psasing on Windows
12 years ago
Mitchell Hashimoto
e84e5e4f2c
Merge branch 'update-ssh-package' of github.com:higebu/packer into higebu-update-ssh-package
...
Conflicts:
builder/amazon/common/ssh.go
builder/digitalocean/ssh.go
builder/googlecompute/ssh.go
builder/openstack/ssh.go
communicator/ssh/communicator_test.go
communicator/ssh/keychain.go
communicator/ssh/keychain_test.go
12 years ago
Ross Smith II
e38ff2f84e
Merge pull request #1021 from laggyluke/master
...
builder/amazon: configurable virtualization type
12 years ago
Ross Smith II
ef1898083a
Merge pull request #971 from fnoeding/amazon-sshkey
...
optionally use existing ssh key for amazon builders
12 years ago
higebu
f087ce16dc
Fix the build problem by updating ssh package
12 years ago
Ross Smith II
27491f93f8
use old ssh code until higebu's branch is ready, see #1019
12 years ago
George Miroshnykov
fc6e8c0830
builder/amazon: configurable virtualization type
12 years ago
Florian Noeding
6371b70609
optionally use existing ssh key for amazon builders
12 years ago
Nathan Sullivan
e44fb1bd2a
increase SSH timeouts for Amazon builders, they can take a while to spin up at times
12 years ago
Alan Grosskurth
af89b31a40
builder/amazon: Fix S3 endpoint URL for instance-store builds
...
The S3 endpoint URLs don't always include the region name. See:
http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
This mapping is already provided by `goamz` via `region.S3Endpoint`,
so let's use it.
12 years ago
Ross Timson
58444627c1
Use --url flag rather than --location for ec2-upload-bundle
...
AWS docs (http://goo.gl/rNZiCs ) show that --location is deprecated and
to use the --url flag and reference the region endpoint instead.
12 years ago
Mitchell Hashimoto
5c7e7daac9
comments
13 years ago
Mitchell Hashimoto
8204944c0e
builder/amazon: handle cases when amazon SG isn't available [GH-494]
13 years ago
Mitchell Hashimoto
8aabe01bad
builder/amazon/common: run_tags to apply to launch [GH-722]
13 years ago
Mitchell Hashimoto
8e4ce2c591
builder/amazon: alphabetize
13 years ago
Mitchell Hashimoto
4a2793445f
builder/amazon/chroot: mount in device-specific places
13 years ago
Mitchell Hashimoto
ae7459718d
builder/amazon/instance: use US if region us-east-1 for upload [GH-729]
13 years ago
Mitchell Hashimoto
b95ad0c232
builder/amazon/all: launched instances have a name [GH-642]
13 years ago
Mitchell Hashimoto
1234e61cda
builder/amazon/all: get rid of unnecessary field
13 years ago
Mitchell Hashimoto
5e0da21173
builder/amazon/ebs: nicer output
13 years ago
Mitchell Hashimoto
4677f38882
builder/amazon: parallelize AMI region copies [GH-495]
13 years ago
Mitchell Hashimoto
f7b1c2dbc6
builder/amazon/instance: add location to upload command [GH-679]
13 years ago
Mitchell Hashimoto
2110edb690
builder/amazon/chroot: remove unused import
13 years ago
Mitchell Hashimoto
2dad0cdca7
builder/amazon/chroot: block when obtaining lock [GH-689]
13 years ago
Nathan Sullivan
e711255d95
fix some debugging for PublicIpAddress
13 years ago
Nathan Sullivan
4809186c12
remove excess debugging
13 years ago
Nathan Sullivan
6270d759cd
revert whitespace changes - not necessary anymore
13 years ago
Nathan Sullivan
13f55bdec6
working AssociatePublicIpAddress support
13 years ago
Nathan Sullivan
5cbff00afa
goamz aspects of AssociatePublicIpAddress working now
13 years ago
Nathan Sullivan
49a131951a
reverting testing stuff
13 years ago
Nathan Sullivan
0cfb7564d5
lets try a string instead of a bool for AssociatePublicIpAddress
13 years ago
Nathan Sullivan
5df7bc0acf
oops bugfix for work on https://github.com/mitchellh/packer/issues/578
13 years ago
Nathan Sullivan
31bf1f342c
https://github.com/mitchellh/packer/issues/578
13 years ago
Mitchell Hashimoto
cc13e6690c
builder/amazon/chroot: don't choose partition mount point if taken
...
[GH-635]
13 years ago
Mitchell Hashimoto
3adbd09639
builder/amazon/chroot: fix compile error
13 years ago