Paul Stack
eac6546e33
provider/digitalocean: Enforce Lowercase on IPV6 Addresses ( #7652 )
...
IPV6 Addresses are generally case insensitive but it is recommented to
store them as lowercase (https://tools.ietf.org/html/rfc5952#section-4.3 )
When Terraform didn't store them as LowerCase, we got the following
error when using in DNS records:
```
-/+ digitalocean_record.web6
domain: "mydomain.com" => "mydomain.com"
fqdn: "web02.in.mydomain.com" => "<computed>"
name: "web02.in" => "web02.in"
port: "0" => "<computed>"
priority: "0" => "<computed>"
type: "AAAA" => "AAAA"
value: "2a03:b0c0:0003:00d0:0000:0000:0b66:6001" => "2A03:B0C0:0003:00D0:0000:0000:0B66:6001" (forces new resource)
weight: "0" => "<computed>"
```
There was no need for this to be the case. We now enforce lowercase on both state and also when responses are returned from the API
2016-08-15 15:52:48 +01:00
Antoine Grondin
3d6fe76b52
provider/digitalocean: adds a volume resource ( #7560 )
...
* provider/digitalocean: add support for volumes
* provider/digitalocean: add documentation for volume resource
2016-07-13 15:36:37 +01:00
Tommy Murphy
0c6856f85c
digitalocean tag support ( #7500 )
...
* vendor: update godo to support tags
* digitalocean: introduce tag resource
* website: update for digitalocean_tag resource
2016-07-11 12:09:06 +01:00
Paul Stack
e905aa2840
provider/digitalocean: Support Import `digitalocean_droplet` ( #7344 )
...
```
ake testacc TEST=./builtin/providers/digitalocean
TESTARGS='-run=TestAccDigitalOceanDroplet_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/digitalocean -v -run=TestAccDigitalOceanDroplet_ -timeout 120m
=== RUN TestAccDigitalOceanDroplet_importBasic
--- PASS: TestAccDigitalOceanDroplet_importBasic (39.42s)
=== RUN TestAccDigitalOceanDroplet_Basic
--- PASS: TestAccDigitalOceanDroplet_Basic (38.46s)
=== RUN TestAccDigitalOceanDroplet_Update
--- PASS: TestAccDigitalOceanDroplet_Update (244.82s)
=== RUN TestAccDigitalOceanDroplet_UpdateUserData
--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (73.05s)
=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6
--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (67.24s)
PASS
```
2016-06-29 20:28:47 +01:00
Benjamin Chelli
cc22cef085
DigitalOcean - droplet always being recreated ( #7044 )
...
The region returned by the API is always lowercase therefore when you specify a region uppercase in your config file it forces the droplet to be regenerated on every ```terraform apply``` (even when it is not needed).
2016-06-09 10:23:44 +02:00
James Nugent
d9d8208a91
Fix panic in digital_ocean_droplet if resp is nil
...
Fixes #5583 .
2016-03-11 16:00:13 +00:00
Ian Duffy
47ac10d66b
Change resource.StateChangeConf to use an array for target states
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-01-21 01:20:41 +00:00
stack72
6a811e2e4f
Logging that the DO droplet wasn't found before removing it
2015-11-05 17:32:57 +00:00
stack72
2504cb4624
Changing the DigitalOcean Droplet 404 from a message string to an actual 404 status code
2015-11-05 16:33:29 +00:00
stack72
032a42797e
Fixing the DigitalOcean Droplet 404 potential on refresh of state
2015-11-05 15:01:07 +00:00
stack72
ffdd4de326
Making user_data force a new droplet for DigitalOcean
2015-11-03 20:53:54 +00:00
Antoine Grondin
7594c09623
provider/digitalocean: fix issue #3628 by accepting SSH fingerprints
2015-10-25 16:29:01 -04:00
Paul Hinze
97cb207fc5
Merge pull request #3333 from aybabtme/use-official-digitalocean-client
...
use official Go client for DigitalOcean provider
2015-10-16 09:11:04 -05:00
Antoine Grondin
0bcf557198
use official Go client for DigitalOcean provider
2015-09-27 01:09:51 -04:00
stack72
9ac39a3edf
Enforcing lowercase on the DO Size. This is used for the sizeslug property of API calls - according to their [docs]( https://developers.digitalocean.com/documentation/v1/sizes/ ) this always looks to be lowercase on the slug. I cannot find any definite answer to this question though
2015-09-18 19:42:37 +01:00
Rui Lopes
02791d70df
provider/digitalocean: check if the droplet no longer exists.
2015-06-25 22:17:56 +01:00
Jack Pearkes
5c74a63f3d
Merge pull request #1062 from hashicorp/configure-wait-checks
...
providers/digitalocean: Configure wait checks
2015-02-26 14:55:24 -08:00
Jack Pearkes
8ab4d37f7c
providers/digitalocean: be more lenient for droplets 404ing on creation
2015-02-26 10:00:54 -08:00
Jack Pearkes
74b7137cdc
providers/digitalocean: use real bools for droplet creation
...
Fixes #792
Depends on https://github.com/pearkes/digitalocean/pull/5
2015-02-26 09:37:05 -08:00
Jack Pearkes
3f217763c7
providers/digitalocean: wait for droplet to be unlocked before destroy
2015-02-25 16:54:39 -08:00
Jack Pearkes
f2e92cfeab
providers/digitalocean: increase timeout for droplet wait to 60 mins
...
fixes #325
2015-02-25 16:08:35 -08:00
Mitchell Hashimoto
9a8cb2c526
providers/digitalocean: style
2015-02-18 15:14:50 -08:00
Sander van Harmelen
4ace4865d7
Making all function names consistent
...
Before all providers were using the helper.Schema approach the helper
function had these names. Now they all use names consistent with the Go
naming conventions except for these last few…
2014-12-15 15:26:17 +01:00
Joseph Anthony Pasquale Holsten
5b0894b5cd
simplify digitalocean_droplet.image loading
...
If a droplet's image slug is empty and its image id is empty, then the
image attribute should be empty, so we may assign from either. So it is
unnecessary to check if the image id is empty.
* remove unnecessary check for emptiness of image id
* reverse order of the conditions for assigning the image attribute,
with the default case (using the slug) first, and the fallback case
(using the id) second
2014-12-01 11:36:05 -08:00
Sander van Harmelen
6be4b2e807
A really small update fixing a cosmetic inconsistentie
...
For the OCD types among us, this inconsistentie (only location where
droplet is spelled with a capital) drives me mad
😝
2014-11-20 15:09:22 +01:00
Sander van Harmelen
12f6ccb731
Refactor the DigitalOcean provider
...
With this refactor the DigitalOcean provider is updated to use the
schema.Provider approach released with TF 0.2.
2014-11-18 11:26:59 +01:00
Jack Pearkes
ecf66ad7b5
providers/digitalocean: compat for changes to API for droplet size
...
Upstream in the digitalocean API, the size slug became a size
string, breaking pearkes/digitalocean.
https://github.com/pearkes/digitalocean/pull/1
This fixes compatibility for changes to that library.
closes #510
2014-11-02 14:50:59 -08:00
Mitchell Hashimoto
9b2b3a963f
ResourceDiff => InstanceDiff
2014-09-17 16:33:24 -07:00
Mitchell Hashimoto
aafbc2ab7c
providers/digitalocean: tests passing, compiling
2014-09-16 17:28:22 -07:00
Jack Pearkes
28692656e2
providers/digitalocean: add user_data for create droplet
...
fixes #267
2014-09-05 11:16:12 -04:00
Alex Gaynor
46154ca1d3
Fixed a ton of typos in docs and comments
2014-08-07 00:19:56 -07:00
Jack Pearkes
61122beec4
providers/digitalocean: fix comment
2014-08-01 11:05:32 -04:00
Jack Pearkes
d9bfe1c2fe
providers/digitalocean: only save private ip address if private
2014-08-01 10:12:29 -04:00
Jack Pearkes
2fe6f2e2b1
providers/digitalocean: restart droplet in failed resize
2014-08-01 10:10:52 -04:00
Jack Pearkes
872acb3740
providers/digitalocean: fix ip address when using private networking
...
This adds a new `ipv4_address_private` and `ipv4_address_public`
computed attr. Also pulls in upstream changes from pearkes/digitalocean
2014-07-29 19:04:10 -04:00
Armon Dadgar
0b4950976c
Revert "providers/digitalocean: don't save status and locked"
...
This reverts commit b9414b832c
.
2014-07-28 13:04:17 -04:00
Armon Dadgar
bf3ac46c36
provider/digitalocean: less aggressive retry
2014-07-28 12:58:19 -04:00
Jack Pearkes
b9414b832c
providers/digitalocean: don't save status and locked
2014-07-24 23:32:42 -04:00
Jack Pearkes
9d75352fd3
providers/digitalocean: fix 404 check
2014-07-24 17:57:23 -04:00
Jack Pearkes
bcf92e8d39
providers/digitalocean: handle destroyed droplets
2014-07-24 17:31:39 -04:00
Armon Dadgar
a6e536c718
provider/digitalocean: Support ConnInfo for provisioning
2014-07-24 13:51:43 -04:00
Jack Pearkes
ed8980714c
providers/digitalocean: handle locked droplets and retry
2014-07-21 11:05:24 -04:00
Jack Pearkes
7be85deb92
providers/digitalocean: updates
2014-07-19 12:33:25 -04:00
Jack Pearkes
0965332b88
providers/digitalocean: WaitForAttribute
2014-07-19 09:45:42 -04:00
Jack Pearkes
5dcd453db8
providers/digitalocean: alphabetize all the things
2014-07-18 20:41:02 -04:00
Jack Pearkes
4455a6120c
providers/digitalocean: initial commit
2014-07-18 20:20:28 -04:00