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.
2014-06-30 09:07:36 -05:00
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.
2014-05-27 19:02:29 -05:00
Greg Burek
3a45712780
Adds support for encrypted EBS volumes
2014-05-22 11:36:22 -07:00
Pierre Riteau
5294e0ed61
Remove unused file
2014-05-15 17:22:40 +01:00
Jaime Soriano Pastor
32bb745734
Force LANG=C before appending rest of environment, as only first occurence is used
2014-05-08 17:11:19 +02:00
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.
2014-05-02 11:18:56 -05:00
Mitchell Hashimoto
0417ae3059
builder/amazon: alphabetize some things
2014-04-30 15:43:11 -07:00
Mitchell Hashimoto
0558d56bcf
builder/amazon/chroot: get tests psasing on Windows
2014-04-26 12:31:55 -07:00
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
2014-04-26 11:12:06 -07:00
Ross Smith II
e38ff2f84e
Merge pull request #1021 from laggyluke/master
...
builder/amazon: configurable virtualization type
2014-04-21 18:08:32 -07:00
Ross Smith II
ef1898083a
Merge pull request #971 from fnoeding/amazon-sshkey
...
optionally use existing ssh key for amazon builders
2014-04-21 08:10:05 -07:00
higebu
f087ce16dc
Fix the build problem by updating ssh package
2014-04-15 10:17:26 +09:00
Ross Smith II
27491f93f8
use old ssh code until higebu's branch is ready, see #1019
2014-04-11 08:23:12 -07:00
George Miroshnykov
fc6e8c0830
builder/amazon: configurable virtualization type
2014-04-10 15:16:31 +03:00
Florian Noeding
6371b70609
optionally use existing ssh key for amazon builders
2014-03-24 12:47:00 +01:00
Nathan Sullivan
e44fb1bd2a
increase SSH timeouts for Amazon builders, they can take a while to spin up at times
2014-03-04 11:31:14 +10:00
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.
2014-02-23 22:49:10 -08:00
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.
2014-02-13 09:36:45 +00:00
Mitchell Hashimoto
5c7e7daac9
comments
2013-12-28 10:04:15 -07:00
Mitchell Hashimoto
8204944c0e
builder/amazon: handle cases when amazon SG isn't available [GH-494]
2013-12-28 10:03:22 -07: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
8e4ce2c591
builder/amazon: alphabetize
2013-12-21 14:22:05 -08:00
Mitchell Hashimoto
4a2793445f
builder/amazon/chroot: mount in device-specific places
2013-12-21 09:16:09 -08:00
Mitchell Hashimoto
ae7459718d
builder/amazon/instance: use US if region us-east-1 for upload [GH-729]
2013-12-18 09:00:20 -08:00
Mitchell Hashimoto
b95ad0c232
builder/amazon/all: launched instances have a name [GH-642]
2013-12-16 18:11:23 -08: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
Mitchell Hashimoto
4677f38882
builder/amazon: parallelize AMI region copies [GH-495]
2013-12-12 12:24:32 -08:00
Mitchell Hashimoto
f7b1c2dbc6
builder/amazon/instance: add location to upload command [GH-679]
2013-12-06 19:04:40 -08:00
Mitchell Hashimoto
2110edb690
builder/amazon/chroot: remove unused import
2013-12-06 18:32:21 -08:00
Mitchell Hashimoto
2dad0cdca7
builder/amazon/chroot: block when obtaining lock [GH-689]
2013-12-06 18:28:48 -08:00
Nathan Sullivan
e711255d95
fix some debugging for PublicIpAddress
2013-11-26 15:03:45 +10:00
Nathan Sullivan
4809186c12
remove excess debugging
2013-11-26 15:02:43 +10:00
Nathan Sullivan
6270d759cd
revert whitespace changes - not necessary anymore
2013-11-26 15:01:57 +10:00
Nathan Sullivan
13f55bdec6
working AssociatePublicIpAddress support
2013-11-26 14:45:06 +10:00
Nathan Sullivan
5cbff00afa
goamz aspects of AssociatePublicIpAddress working now
2013-11-26 14:14:43 +10: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
5df7bc0acf
oops bugfix for work on https://github.com/mitchellh/packer/issues/578
2013-11-26 12:05:37 +10:00
Nathan Sullivan
31bf1f342c
https://github.com/mitchellh/packer/issues/578
2013-11-26 11:32:08 +10:00
Mitchell Hashimoto
cc13e6690c
builder/amazon/chroot: don't choose partition mount point if taken
...
[GH-635]
2013-11-19 12:50:33 -08:00
Mitchell Hashimoto
3adbd09639
builder/amazon/chroot: fix compile error
2013-11-08 11:19:10 -08:00
Mitchell Hashimoto
3780b57a1f
builder/amazon/chroot: allow no such file errors on upload [GH-588]
2013-11-08 10:53:54 -08:00
Mitchell Hashimoto
17f1ee3e98
builder/amazon/chroot: quote commands and pass through a shell [GH-581]
2013-11-08 10:22:56 -08: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
f4b404627c
builder/amazon/instance: support AZ here too
2013-10-23 20:44:38 -07:00
Mitchell Hashimoto
b95a56899f
builder/amazon: rename availzone to availability zone
2013-10-23 20:44:11 -07:00
Matthew Hooker
1aa551a49c
builder/amazon/common: Add AvailZone to StepRunSourceInstance struct
...
[GH-536]
2013-10-21 08:08:00 -07:00