Petr Hosek
eaef2961cb
Support specifying licenses for Google Compute images
...
This is needed to enable features such as the nested virtualization:
https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
2018-02-03 14:15:16 -06:00
Evan Brown
bada7b73c1
builder/googlecompute: Selectively set default network
...
If a network is not specified, it should only be set to "default" if a
subnetwork is also not specified.
2017-11-06 16:41:42 -08:00
Evan Brown
1b3eb1c34d
builder/googlecompute: Set default network_project_id
...
If network_project_id is not specified in the GCE builder config, it
should default to the project_id.
2017-11-06 16:41:42 -08:00
Atsushi Ishibashi
210dd08326
Change args of NewConfig
2017-10-17 13:48:15 +09:00
Atsushi Ishibashi
5310d5629b
Modify clean_image_name not defined error
2017-10-17 12:31:50 +09:00
Peter Mounce
ac8eedf171
Introduce a new configuration parameter instead
...
... so that one can have a different list compared to instances.
2017-09-18 17:53:40 +01:00
Patrick Decat
a7283f2281
Add support for setting labels on GCE instance
2017-09-06 10:58:08 +02:00
Saulius Grusnys
b6783a1180
Adding sanity checks in Prepare when adding accelerators and tests for accelerator configuration
2017-07-19 11:28:49 +01:00
Saulius Grusnys
200113b8c1
Switch googlecompute builder to use compute/v0.beta and add support for accelerator api
2017-07-17 15:39:41 +01:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
d1b20b3d9c
remove a bunch of dead code.
...
https://github.com/dominikh/go-tools/tree/master/cmd/unused
2017-03-28 20:36:20 -07:00
Rickard von Essen
eac5b6392d
googlecompute: Correct values for on_host_maintenance
...
If preemptible is true then on_host_maintenance must be TERMINATE.
Also corrected order in docs.
Closes #4620
2017-03-08 19:44:07 +01:00
Dimitri Rudnev
2009fcd9df
OnHostMaintenance, googlecompute updating documenation , additional option for validation and setting defaults
2017-02-10 11:57:15 -08:00
Dimitri Rudnev
bab590c177
Adding OnHostMaintenance option for googlecompue builder
2017-02-10 10:58:57 -08:00
Troy Toman
12f279fa79
add ability to set a different project-id for a network in the googlecloud builder
2016-12-02 15:22:36 -06:00
Rickard von Essen
6947a74151
Merge pull request #4162 from classmarkets/google-source-image-family
...
builder/googlecompute: support source image family
2016-11-26 17:26:47 +01:00
Rickard von Essen
96e9a8e6e9
Removed default value for ssh_username
2016-11-17 22:30:34 +01:00
Peter Schultz
bcb319640e
builder/googlecompute: support source image family
...
Closes #4100
2016-11-13 16:54:04 +01:00
YAMADA Tsuyoshi
da7d317e46
googlecompute: Run instance with custom scopes
2016-10-22 15:46:14 +09:00
Valentin Tjoncke
6f545af7f7
builder/googlecompute: -force
2016-09-23 14:21:43 +02:00
crunk1
55b5a45ae4
Created googlecompute-export post-processor. Modified the googlecompute builder to pass a few configuration values to its resulting artifact. These values can then be used in googlecompute-export post-processor.
...
Added documentation and changed authentication stuff on temporary VM.
2016-08-15 14:36:26 -07:00
Evan Brown
a5c598264f
builder/googlecompute: Support provisioning VM without external IP address
...
This change adds an `omit_external_ip` configuration property that, when true,
will cause no external IP address to be associated with the Google Compute
Engine VM provisioned to create an image. When using `omit_external_ip`, you
must also set the `use_internal_ip` configuration property to true.
Addresses #3296
2016-08-02 13:43:04 -07:00
Scott Crunkleton
7190fbeed8
Adding support for googlecompute startup scripts.
...
- Startup scripts can be provided through the instance creation metadata field 'startup-script'.
- Script log can be copied to a GCS location by setting the metadata field 'startup-script-log-dest'.
Added Retry method to googlecompute package.
Added GetSerialPortOutput to googlecompute Drivers.
Added StepWaitInstanceStartup (and associated test) which waits for an
instance startup-script to finish.
Changed the instance service account to use the same service account as the one provided in the Packer config template. It was the project default service account.
Tested googlecompute package with 'go test' and also performed builds
with a startup script and without a startup script.
2016-07-20 14:54:36 -07:00
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
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
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
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
Chris Bednarski
1c71eaaa91
Change panic to multierror
2015-07-07 17:12:21 -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
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
Andrew Bayer
ebdd0d991a
Adds support for using the internal IP rather than NAT IP in GCE
2015-05-29 14:50:11 -07:00
Mitchell Hashimoto
5aa30caa64
builder/googlecompute: new interpolation
2015-05-27 12:57:48 -07: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
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
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
Mitchell Hashimoto
b5c0c63ebc
builder/googlecompute: use new auth scheme
2014-09-05 09:47:20 -07:00
Matt Page
8f237b7b94
Allow specifying project for source images in GCE
...
Within GCE, images may be shared across projects. Prior to this
commit, there was no way to inform the GCE builder that a source
image belonged to a specific project. This adds an optional
'source_image_project_id' key to the GCE builder config.
2014-08-20 10:20:28 -07:00
Jessica Frazelle
8bc696ce9e
add disk size to google compute, so as to avoid disk size errors on exporting the image
2014-08-08 14:39:03 -04:00
Mitchell Hashimoto
5fac6c79c4
fmt
2014-04-26 11:12:43 -07:00
Mitchell Hashimoto
0da1f2d8c6
builder/googlecompute: template process instance name
2014-04-26 11:02:25 -07:00