Commit Graph

39 Commits

Author SHA1 Message Date
Dana Hoffman
226361184e provider/google: add support for networkIP in compute instance templates (#13515) 2017-05-01 17:16:05 -07:00
Dana Hoffman
43d968cabe provider/google: set subnetwork_project to computed 2017-02-08 15:26:47 -08:00
Christophe van de Kerchove
5b551718d5 This should resolve #11547
This should force terraform to recreate the resource after updating it.
2017-01-31 09:33:29 -05:00
zbikmarc
17af2f69af providers/google: Add subnetwork_project field to enable cross-project networking in instance templates (#11110)
* Add subnetwork_project field to allow for XPN in GCE instance templates

* Missing os import

* Removing unneeded check

* fix formatting

* Add subnetwork_project to read
2017-01-12 16:05:13 +02:00
Paddy
121b587aec Fix instance/template metadata support
Update our instance template to include metadata_startup_script, to
match our instance resource. Also, we've resolved the diff errors around
metadata.startup-script, and people want to use that to create startup
scripts that don't force a restart when they're changed, so let's stop
disallowing it.

Also, we had a bunch of calls to `schema.ResourceData.Set` that ignored
the errors, so I added error handling for those calls. It's mostly
bundled with this code because I couldn't be sure whether it was the
root of bugs or not, so I took care of it while addressing the startup
script issue.
2016-12-05 02:45:28 -08:00
Matt Morrison
c502799c23 Make network attribute more consistent.
Some google resources required network be refernced by resource URL (aka self_link), while others required network name.
This change allows either to be supplied.

DRY it out, and add a fix for #5552.
2016-09-05 08:02:54 +12:00
Sarah Zelechoski
6274922488 email is variable, not string 2016-08-23 17:32:46 -04:00
Sarah Zelechoski
b6afd6bf68 Allow custom Compute Engine service account 2016-08-23 17:04:13 -04:00
Noah Webb
05eecb60f7 provider/google: changed the format of source_image in autoscaler tests 2016-08-19 14:05:28 -04:00
Noah Webb
edc998b132 provider/google: Support Import of 'google_compute_instance_template' 2016-08-15 10:03:31 -04:00
Igor Wiedler
a3188d0885 [provider/google] Use resource-specific project when waiting for creation
Creating most google cloud resources uses the compute_operation to
wait for the creation to complete. However, the computeOperationWait*
functions always uses the global `config.Project`, instead of the resource-
specific one.

This means that creating resource in a project other than the main one
fails with a 404 on the operation resource.

This patch uses the project from google_compute_instance instead of the
global one.
2016-06-10 11:55:21 +02:00
Evan Brown
1dd7de97a9 providers/google: support optionial uuid naming for Instance Template (#6604)
Auto-generating an Instance Template name (or just its suffix) allows the
create_before_destroy lifecycle option to function correctly on the
Instance Template resource. This in turn allows Instance Group Managers
to be updated without being destroyed.
2016-05-11 22:54:47 +01:00
Seth Vargo
e2c5e9a1d5 Update documentation to include new "project" attribute
This commit also normalizes the format we display attributes.
2016-04-10 17:34:15 -04:00
Seth Vargo
9756d62378 Accept "project" as an attribute to GCP resources
This is the first step in removing the config dependency on "project".
This change is backwards-compatible because the value for this new
attribute defaults to the value from the provider.
2016-04-10 13:01:24 -04:00
Seth Vargo
63bd4b8dd1 Switch the order of gcp buildNetworks func to be more go-like
The current implementation returns error as the first parameter, 
but it is usually the last parameter.
2016-04-10 13:01:23 -04:00
Eric Robert
f0784f3a45 Fix Google instance template creation for preemptible VM 2016-03-08 16:18:23 +00:00
Matt Morrison
b5c5cbd5d4 Add more acceptance tests, and fix some test cases 2016-02-18 08:37:58 -08:00
Matt Morrison
9fd044c0f0 Update google resources where necessary to make use of subnetworks, update som docs 2016-02-18 08:37:58 -08:00
Trevor Pounds
a77d60e006 Use built-in schema.HashString. 2016-02-07 16:29:34 -08:00
Lars Wander
af69d1cd76 provider/google: Updated Read(..) behavior to handle deleted resources 2016-01-07 10:39:04 -05:00
Lars Wander
70ba555ecb provider/google: Added url map resource + tests & documentation 2015-11-02 17:12:41 -05:00
Lars Wander
8e8b9e763a provider/google: Added preemtible flag to instance_template 2015-10-30 16:07:11 -04:00
Dave Cunningham
0e57a9f049 Merge pull request #3242 from lwander/b-gce-network-interface-name
provider/gce: Instance Template Network Interface Should be URL
2015-09-25 16:40:16 -04:00
Lars Wander
05503f4f9c Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
Lars Wander
8ecb976e57 Fix "malformed url" bug in instance template when using network name 2015-09-15 15:59:26 -04:00
Dave Cunningham
bd6e057c0d Fix #2901 2015-08-19 02:57:04 -04:00
Dave Cunningham
1fc9b27913 Merge branch 'master' into gce_autoscaling 2015-07-20 14:25:26 -04:00
Dave Cunningham
a4037a0f61 Add ForceNew metadata_startup_script field 2015-07-01 21:24:34 -04:00
Dave Cunningham
0801e6cf1b Merge autoscaler & instance group PR from dwatson
Additionally:
Update CHANGELOG
Make cooldown period optional for autoscaler
Refactor autoscaler and add more error checking
Instance template now supports image aliases
Replace instance group manager 'size' -- use target_size (now writeable)
Add documentation for autoscaler
Add beta warnings to docs
2015-05-16 20:14:38 -04:00
Dave Cunningham
90c5bf8f0e Merge pull request #980 from BashtonLtd/gce_instance_template_network_update
Update Instance Template network definition to match changes to Instance.
2015-05-12 15:46:04 -04:00
Paul Hinze
4208e83c64 provider/google: compute template metadata to map
Needs to match instance, since shared processing helper functions are
used.

Closes #1665
2015-05-06 12:33:35 -05:00
Mitchell Hashimoto
52b43d550a Merge pull request #1239 from BashtonLtd/gce_fix_false_bools
providers/google: Updates to GCE Instances and Instance Templates to allow for false bools.
2015-03-26 10:20:52 -07:00
David Watson
8cfd51bed7 Updates to GCE Instances and Instance Templates to allow for false values to be set for the auto_delete setting. 2015-03-18 17:50:03 +00:00
David Watson
56c5854e5b Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
David Watson
2187833dee Remove old todo comment. 2015-02-19 11:43:18 +00:00
David Watson
c3776cae0f Update Instance Template network definition to match changes to Instances. 2015-02-16 17:04:56 +00:00
David Watson
cdfdf0faeb Remove leftover todo comment. 2015-02-10 14:31:43 +00:00
David Watson
177dc25184 Add optional to disk_name field. 2015-02-10 10:49:20 +00:00
David Watson
8782cff95e Add Instance Template support to google provider. 2015-02-10 10:29:27 +00:00