clint shryock
dc2a87c505
update with go fmt
2015-10-29 17:10:44 -05:00
Lars Wander
17e36a2b84
provider/google: Added scheduling block to compute_instance
2015-10-26 16:16:06 -04:00
Paul Hinze
aff63007d2
provider/google: one more fix to GCE metadata
...
In #3501 @lwander got us almost all the way there, but we still had
tests failing. This seemed to be because GCE sets
`metadata.startup-script` to a blank string on instance creation, and if
a user specifies any `metadata` in their config this is seen as the
desired full contents of metadata, so we get a diff trying to remove
`startup-script`.
Here, to address this, we just proactively remove the "startup-script"
key from `Read`, and then we enforce that "metadata_startup_script"
is the only way to configure startup scripts on instances.
2015-10-14 21:34:33 -05:00
Lars Wander
4182880ca5
Provider GCE, fixed metadata state update bug
2015-10-14 12:47:54 -05:00
Radek Simko
0c20852709
gofmt files from recently merged PRs
2015-10-07 13:35:06 -07:00
Lars Wander
05503f4f9c
Refactored wait code to delete duplicated code & share functionality
2015-09-24 16:30:12 -04:00
Lars Wander
7eb5ad3bb8
Refactored project/instance metadata to use same code whenever possible
...
Also added optimistic locking to instance metadata
2015-09-15 14:06:26 -04:00
Clint Shryock
a9f813a93b
provider/google: Misc. cleanups for tests to pass
2015-08-31 09:06:25 -05:00
Dave Cunningham
a4037a0f61
Add ForceNew metadata_startup_script field
2015-07-01 21:24:34 -04:00
Mitchell Hashimoto
14ff9f2912
fmt
2015-06-23 22:31:24 -07:00
Dave Cunningham
27319e1366
Allow local SSDs, Fix #1088
2015-05-11 21:40:37 -04:00
Dave Cunningham
b39460bd62
Use a set for service account scopes. Fix #1759
2015-04-30 21:21:21 -04:00
Mitchell Hashimoto
b99fce59e3
Merge pull request #1426 from dainis/master
...
provider/google: add additional options to google provider
2015-04-22 08:50:22 +02:00
Mitchell Hashimoto
0f7483ab54
Merge pull request #1484 from sparkprime/deprecate-network
...
deprecate google instance 'network' attribute in favor of network_interface
2015-04-22 08:49:04 +02:00
Paul Hinze
a985b68edb
google: simplify instance metadata schema
...
It doesn't need to be a List of Maps, it can just be a Map.
We're also safe to remove a previous workaround I stuck in there.
The config parsing is equivalent between a list of maps and a plain map,
so we just need a state migration to make this backwards compatible.
2015-04-15 11:01:35 -05:00
Dave Cunningham
d55ac06b4f
deprecate google instance 'network' attribute in favor of network_interface
2015-04-10 17:03:51 -04:00
Dave Cunningham
f1e26ba5de
Avoid 'source' being undefined in legacy network Read
2015-04-09 13:29:59 -04:00
Dainis Tillers
74b4f960cb
Just removing network refresh wont cut it, value from config must be used
2015-04-08 15:38:07 +03:00
Dainis Tillers
28e29aec19
Fix #1394 , network value for network_interface isn't a computed value and there is no need to refresh it each time instance data is read
2015-04-08 15:29:46 +03:00
Dainis Tillers
c3317e3560
Added - disk device name
2015-04-08 14:34:37 +03: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
Mitchell Hashimoto
2acedf19a6
Merge pull request #1154 from stuntgoat/gce-add-network
...
providers/google: add network field to the network_interface
2015-03-26 10:19:00 -07:00
Mitchell Hashimoto
a8917b2b34
Merge pull request #1236 from BashtonLtd/gce_update_imports
...
Update Google API import to point to the new location.
2015-03-26 10:14:33 -07:00
Nolan Darilek
0cca21d927
Add disk size to google_compute_instance disk blocks.
2015-03-24 11:45:20 -05: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
stungtoat
86913b0363
add network field to the network_interface
2015-03-06 22:13:07 -08:00
Mitchell Hashimoto
dee37aa1dd
providers/google: set only top-level configs for lists [GH-929]
2015-03-02 10:00:24 -08:00
Dave Cunningham
8a96c0c41e
Remove unnecessary ;
2015-02-23 13:35:07 -05:00
Dave Cunningham
4d28f60235
Fix argument order
2015-02-23 13:30:41 -05:00
Mitchell Hashimoto
9b5d40c2e3
fmt
2015-02-20 10:22:26 -08:00
Dave Cunningham
e4cf7e8924
Make Google Instance disk attribute all ForceNew. Fix #608 .
2015-02-13 14:23:49 -05:00
Dave Cunningham
95943e4a3f
Merge branch 'master' into gcp_image
2015-02-10 03:25:45 -05:00
Paul Hinze
c80ce9bb19
Merge pull request #937 from sparkprime/pr_network_interface
...
Deprecated 'network', introduce 'network_interface'
2015-02-09 18:49:56 -06:00
Dave Cunningham
f307417694
Deprecated 'network', introduce 'network_interface'
2015-02-06 03:21:22 -05:00
Paul Hinze
8b64b7ec27
Merge pull request #906 from BashtonLtd/gce_instance_selflink
...
Expose SelfLink field for GCE instances.
2015-02-03 15:46:46 -06:00
Dave Cunningham
284a27c364
Remove service_accounts (legacy dupe of service_account)
2015-02-03 16:16:41 -05:00
David Watson
33c817e1b5
Expose SelfLink for GCE instances to allow other resources to reference instances.
2015-02-02 09:46:35 +00:00
Dave Cunningham
038debbba9
Multiple gcp improvements and new resources
2015-01-30 10:32:35 -06:00
Dave Cunningham
d9add1b513
Allow specifying project or full URL when specifying image
2015-01-29 20:00:02 -05:00
Paul Hinze
4bc9add477
providers/google: fix instance creation
...
with this commit, the google compute instance acceptance tests are
passing
- remove GOOGLE_CLIENT_FILE requirement from provider tests to finish
out #452
- skip extra "#" key that shows up in metadata maps, fixes #757 and
sprouts #883 to figure out core issue
- more verbose variablenames in metadata parsing, since it took me
awhile to grok and i thought there might have been a shadowing bug in
there for a minute. maybe someday when i'm a golang master i'll be
smart enough to be comfortable with one-char varnames. :)
2015-01-28 15:50:56 -06:00
Jeff Goldschrafe
c7c90dd595
Support service accounts on GCE instances
...
Update the Google Compute Engine provider to add support for service
accounts on `google_compute_instance`. Both gcloud shorthand (`compute-ro`,
`storage-ro`, etc.) and OAuth2 API endpoints are supported.
This feature is currently limited to a single service account (supporting
multiple scopes) and an automatically-generated service account email.
2015-01-02 01:25:19 -05:00
Sander van Harmelen
ede6d4bc80
Refactoring the resourceInstanceTags func just a little
...
My eye caught this somewhat un-logic mixed use of ‘vs’ and
‘v.(*schema.Set)’, so thought to make it a little cleaner…
2014-11-20 11:32:15 +01:00
stungtoat
3e2a09fc38
set default host on connection info
2014-10-19 00:04:17 -07:00
stungtoat
3851afbac7
consistent spacing
2014-10-18 23:17:14 -07:00
stungtoat
db1f68ad4a
go fmt
2014-10-18 23:15:43 -07:00
stungtoat
298788b716
providers/google: add external_address; needed for connection
2014-10-18 23:03:37 -07:00
Mitchell Hashimoto
d9fefb9ee0
fmt
2014-10-10 14:50:35 -07:00
Mitchell Hashimoto
08e7a5bd85
Merge pull request #372 from jgoldschrafe/feature-google-compute-disk-types
...
Configurable disk types for GCE
2014-10-08 10:50:38 -07:00
Jeff Goldschrafe
ac46b83119
Support IP forwarding on GCE instances
...
This change exposes the CanIpForward property of the Instance, allowing
users to create instances that are allowed to function as NAT or VPN
gateways.
2014-10-07 12:28:20 -04:00