Chris Bednarski
2f0e1218dc
Move regexp to package scope so it will be validated by the compiler instead of at runtime
2016-05-13 15:37:25 -07:00
Peter Schultz
a99a417db9
builder/googlecompute: validate image_family
2016-05-13 15:24:02 -07:00
Peter Schultz
8546aafec5
builder/googlecompute: support image family
2016-05-13 15:24:02 -07:00
Christopher Boumenot
2d1347c1ec
Insert Packer's version into the User Agent. ( #3465 )
2016-05-05 13:10:55 -07:00
Chris Bednarski
1b1bbb604e
Merge branch 'googlecompute-disk-type' of https://github.com/meatballhat/packer into f-google-disk-type
2016-03-10 14:51:30 -08:00
Chris Bednarski
4458de4ea0
Reformat
2016-02-11 23:53:40 -08:00
Matt Morrison
daf57c7632
Add tests and documentation for subnetwork attribute
2016-02-11 21:54:48 +13:00
Matt Morrison
942aaa7a85
Add support for Google subnetworks. Closes #3062 . Fixes an issue with how packer populates instances metadata. Closes #3181
2016-02-11 17:31:46 +13:00
Ryan Uber
7732cf45a0
builder/googlecompute: fix image name defaults
2016-01-19 11:12:19 -08:00
Caius Howcroft
069c3c21b1
Added support for GCE external static IPs
2015-12-24 19:15:41 -06:00
YAMADA Tsuyoshi
18d79cfb3d
added test
2015-12-05 15:48:07 +09:00
YAMADA Tsuyoshi
afd314959b
supported `preemptible` in googlecompute builder
2015-12-05 05:13:35 +09:00
Dan Buch
cac93d311c
builder/googlecompute: accept disk type, default pd-standard
2015-10-13 20:18:26 -04:00
Dave Cunningham
1fea962a3a
account_file can be verbatim JSON string
2015-10-08 02:40:18 -04:00
Rickard von Essen
9cf99289c5
Fixed GCE builder after dependency change.
...
See
4af91da601
2015-09-20 10:14:07 +02:00
Chris Bednarski
32b714e085
Update code.google.com/gosshold/ssh to point to golang.org/x/crypto/ssh, since this has been moved into core now
...
Fixes #2515
2015-07-30 19:19:59 -07:00
Chris Bednarski
1c71eaaa91
Change panic to multierror
2015-07-07 17:12:21 -06:00
Chris Bednarski
775450f46a
Merge branch 'fix_gce_image_name' of https://github.com/samitpal/packer into b-google-image-name
2015-07-07 16:19:55 -06:00
Chris Bednarski
bd6c31c2d9
Added TestImageName and moved private methods to the bottom of the file
2015-07-07 16:18:31 -06:00
Samit Pal
6d6b3e1ac2
The default image name in the code has a bug. It is being set to packer-{{timestamp}}, the {{timestamp}} part needs to be interpolated. Without the interpolation the GCE builder fails with
...
the following error
==> googlecompute: Creating image...
==> googlecompute: Error waiting for image: googleapi: Error 400: Invalid value for field 'resource.name': 'packer-{{timestamp}}'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)', invalid
2015-07-07 05:27:58 +00:00
Mitchell Hashimoto
6c7a7b6068
builder/googlecompute: default SSH settings properly [GH-2340]
2015-06-29 09:56:33 -07:00
Mitchell Hashimoto
84189f7a28
builder/*: properly save interpolation context
2015-06-22 09:22:42 -07:00
Mitchell Hashimoto
9bb7d0a2d5
Merge pull request #2152 from abayer/gce-optional-internal-ip
...
builder/google: Adds support for using the internal IP rather than NAT IP in GCE
2015-06-18 10:15:27 +02:00
Mitchell Hashimoto
115d583cff
helper/communicator: make host more generic
2015-06-13 19:23:33 -04:00
Mitchell Hashimoto
502076c92e
builder/googlecompute: use helper/comm
2015-06-13 18:30:16 -04:00
Mark Peek
f398352996
Fix a bug where interpolation was broken in some builders
2015-06-12 14:00:59 -07:00
Mitchell Hashimoto
23a48d6619
go fmt
2015-06-08 21:34:20 -07:00
Mitchell Hashimoto
9dff0adfb1
builder/google: don't hardcode SSH timeout [GH-1781]
2015-06-08 21:13:25 -07:00
Andrew Bayer
ebdd0d991a
Adds support for using the internal IP rather than NAT IP in GCE
2015-05-29 14:50:11 -07:00
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 .
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto
5aa30caa64
builder/googlecompute: new interpolation
2015-05-27 12:57:48 -07:00
duftler
6d28ee931c
Delete GCE disk on SIGINT.
2015-04-21 18:02:05 +00:00
Dave Cunningham
982934dfb9
Use new Google API and OAuth libs, add UserAgent string
2015-04-17 15:12:39 -04:00
Emil Hessman
002e50f493
builder/googlecompute: fix formatting directives
...
Fixes the following vet reports:
builder/googlecompute/step_create_instance_test.go:42: possible formatting directive in Fatal call
builder/googlecompute/step_teardown_instance_test.go:29: possible formatting directive in Fatal call
builder/googlecompute/step_teardown_instance_test.go:39: possible formatting directive in Fatal call
2015-02-25 05:29:53 +01:00
Ross Smith II
10dee1bd68
Temporarily fix build by forking golang.org/x/oauth2 @ b3f9a68
2014-12-21 11:22:24 -08:00
Eric Johnson
24a774f0d3
Merge pull request #1737 from dcarlino/failfast_gce
...
Check if image already exists before doing anything else on GCE.
2014-12-09 12:10:05 -08:00
Dustin Carlino
fe47f45800
Remove bucket_name from GCE config.
...
Fixes #1732 . Forgot to do this in 23c947acf0
.
2014-12-09 08:44:01 -08:00
Dustin Carlino
7c67228912
Check if image already exists before doing anything else on GCE.
...
This fixes #1729 .
2014-12-09 08:42:34 -08:00
rhapsodhy
dd547af0c4
fix googlecompute oauth dependency
2014-11-30 04:15:44 +00:00
Dustin Carlino
23c947acf0
Create GCE image from persistent disk instead of from a tarball.
...
The new flow:
1) Provision the instance
2) Tear down the instance, but keep the boot disk
3) Create an image from the disk
4) Tear down the disk
The step to update gcloud is no longer needed, since gceimagebundle isn't used anymore.
Fixes #1507 and addresses https://github.com/mitchellh/packer/issues/1447#issuecomment-61610235 .
2014-11-25 17:07:06 -08:00
Eric Johnson
87001dba60
Merge pull request #1679 from evandbrown/gce-service-accounts
...
Use golang/oauth2, no longer require client_secrets.json, and use
2014-11-24 05:43:11 -08:00
Evan Brown
ff149df30f
Use golang/oauth2, no longer require client_secrets.json, and use
...
Service Account when run from a GCE Instance.
2014-11-21 12:45:27 -08:00
Misha Brukman
74e1be7469
Added the Ubuntu image project for GCE.
...
The documentation:
https://cloud.google.com/compute/docs/operating-systems#ubuntu
shows that `ubuntu-os-cloud` is the proper project name.
2014-11-17 23:00:52 -05:00
Mitchell Hashimoto
0db6cd3533
Merge pull request #1330 from qur/qemu-vagrant
...
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto
e422a45449
fmt
2014-10-28 08:35:21 -07:00
Matt Page
0fe61fa1e0
fix: Respect metadata supplied for GCE builders.
...
Previously, any per instance metadata supplied via the GCE builder
was ignored.
Test plan:
- make test
- Manual testing via:
-- Created a packer config that contained a GCE builder with custom
metadata set.
-- Ran `packer build`.
-- Verified the instance had the correct metadata in the GCE console.
2014-10-06 14:18:34 -07:00
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.
2014-09-22 11:15:47 +01:00
Mitchell Hashimoto
b9f82ef17e
fmt
2014-09-05 10:23:49 -07:00
Mitchell Hashimoto
b5c0c63ebc
builder/googlecompute: use new auth scheme
2014-09-05 09:47:20 -07:00
Mitchell Hashimoto
752162c234
fmt
2014-09-02 09:55:06 -07:00