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
Paul Stack
4582cbeb5e
provider/digitalocean: Add Test for DO Tag Import ( #7602 )
...
```
% make testacc TEST=./builtin/providers/digitalocean TESTARGS='-run=TestAccDigitalOceanTag_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
TF_ACC=1 go test ./builtin/providers/digitalocean -v
-run=TestAccDigitalOceanTag_ -timeout 120m
=== RUN TestAccDigitalOceanTag_importBasic
--- PASS: TestAccDigitalOceanTag_importBasic (2.42s)
=== RUN TestAccDigitalOceanTag_Basic
--- PASS: TestAccDigitalOceanTag_Basic (1.72s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/digitalocean
4.151s
```
2016-07-12 13:16:34 +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
Paul Stack
70578d4e99
provider/digitalocean: Support Import `digitalocean_floating_ip` ( #7343 )
...
```
make testacc TEST=./builtin/providers/digitalocean
TESTARGS='-run=TestAccDigitalOceanFloatingIP_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/digitalocean -v -run=TestAccDigitalOceanFloatingIP_ -timeout 120m
=== RUN TestAccDigitalOceanFloatingIP_importBasicRegion
--- PASS: TestAccDigitalOceanFloatingIP_importBasicRegion (3.76s)
=== RUN TestAccDigitalOceanFloatingIP_importBasicDroplet
--- PASS: TestAccDigitalOceanFloatingIP_importBasicDroplet (72.41s)
=== RUN TestAccDigitalOceanFloatingIP_Region
--- PASS: TestAccDigitalOceanFloatingIP_Region (3.46s)
=== RUN TestAccDigitalOceanFloatingIP_Droplet
--- PASS: TestAccDigitalOceanFloatingIP_Droplet (74.49s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/digitalocean
154.128s
```
2016-06-29 16:30:11 +01:00
Paul Stack
bc163cadaa
provider/digitalocean: Support Import `digitalocean_domain` ( #7342 )
...
```
make testacc TEST=./builtin/providers/digitalocean
TESTARGS='-run=TestAccDigitalOceanDomain_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/digitalocean -v -run=TestAccDigitalOceanDomain_ -timeout 120m
=== RUN TestAccDigitalOceanDomain_importBasic
--- PASS: TestAccDigitalOceanDomain_importBasic (3.07s)
=== RUN TestAccDigitalOceanDomain_Basic
--- PASS: TestAccDigitalOceanDomain_Basic (1.99s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/digitalocean
5.072s
```
2016-06-29 16:10:56 +01:00
Paul Stack
ae2bd7a0ff
provider/digitalocean: Support Import `digitalocean_ssh_key` ( #7345 )
...
```
make testacc TEST=./builtin/providers/digitalocean
TESTARGS='-run=TestAccDigitalOceanSSHKey_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/digitalocean -v -run=TestAccDigitalOceanSSHKey_ -timeout 120m
=== RUN TestAccDigitalOceanSSHKey_importBasic
--- PASS: TestAccDigitalOceanSSHKey_importBasic (2.13s)
=== RUN TestAccDigitalOceanSSHKey_Basic
--- PASS: TestAccDigitalOceanSSHKey_Basic (1.52s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/digitalocean
3.665s
```
2016-06-29 16:09:34 +01:00
Paul Stack
7a1b78593b
provider/digitalocean: Reassign Floating IP when droplet changes ( #7411 )
...
Fixes #6673
When a floating IP is changed in the DO console, this PR will allow it
to be reassociated to the machine that Terraform attached it to and
change it back
2016-06-29 16:05:36 +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
fed666a5b6
provider/digitalocean: Check for nil response
...
This applies the same fix to `digitalocean_ssh_key` as #5588 applies to
droplets. Fixes #5402 . The report there gives weight to my theory that
this occurs when there are transport issues.
2016-03-21 14:25:11 +00:00
James Nugent
d9d8208a91
Fix panic in digital_ocean_droplet if resp is nil
...
Fixes #5583 .
2016-03-11 16:00:13 +00:00
James Nugent
463fde2509
Fix typo
2016-02-22 13:31:59 -05:00
James Nugent
7d1c43b3fc
Merge branch 'f-digitalocean-record-fqdn' of https://github.com/stack72/terraform into stack72-f-digitalocean-record-fqdn
2016-02-22 13:29:42 -05:00
Trevor Pounds
3eb65f2cbb
Enable `go vet -unusedresult` check and fix warnings.
2016-02-17 11:59:50 -08:00
stack72
b57a3094f6
provider/digitalocean: Addsa FQDN out to the `digitalocean_record`
...
resource. This is a computed field
2016-02-09 16:57:42 +00:00
James Nugent
1b3908633c
Merge pull request #4767 from monkeylittleinc/v0.6.9-branch
...
Add support for multiple final states on the WaitForState resource
2016-01-21 18:19:52 -05:00
Colin Hebert
f6d80f2215
provider/digitalocean: allow reassignment of floating IPs
...
Do not force the creation of a new IP when the droplet_id changes, and
unassignment of the the floating IP without destroying it.
2016-01-21 07:16:59 -05: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
Paul Hinze
764dad06ae
provider/digitalocean: move floating ip test out of region w/ capacity problems
...
Should fix error seen here:
https://travis-ci.org/hashicorp/terraform/builds/100990006
2016-01-08 08:12:18 -06:00
Paul Hinze
adf4280aff
provider/digitalocean: prevent collision on domain acctest
2016-01-04 16:36:07 -06:00
Paul Hinze
028664a015
provider/digitalocean: acctest improvements
...
* Add SSH Keys to all droplets in tests, this prevents acctests from
spamming account owner email with root password details
* Add a new helper/acctest package to be a home for random string / int
implementations used in tests.
* Insert some random details into record tests to prevent collisions
* Normalize config style in tests to hclfmt conventions
2016-01-04 15:30:35 -06:00
James Nugent
8e538b68ec
Fix errors with gofmt compliance
2015-12-17 12:35:19 -05:00
stack72
22388139a3
Changing the DigitalOcean FloatingIP Read func to check for Droplet Region and then fallback to FloatingIP Region
2015-12-08 17:08:02 +00:00
stack72
4b5cb07475
Fixing the digitalocean floatingip resource for a panic when droplet wasn't available
2015-12-08 16:29:13 +00:00
Alex Berghage
53f02fc4a2
Analogous to #3768 -- just for DNS and keys.
...
The error string for 404s on DNS domains has (apparently)
changed, causing things to be a little sad when you modify
DNS domains from the DO console instead of terraform. This
is just the same fix as was applied to droplets around this
time last month.
While I was at it I just fixed this everywhere I saw it in the
DO provider source tree.
2015-12-06 07:13:14 -05:00
chrislovecnm
811a82d9b3
updating printf formating to correct syntax with int
2015-11-25 07:59:46 +00:00
stack72
3fc9107333
Using the laterst version of the DO API to get the Assign of an IP working without a time.Sleep
2015-11-24 11:08:43 +00:00
stack72
74c93d3a46
Reording the code for the creation of a Floating IP for a droplet. The call to the DO api takes a few seconds to propagate so I had to sacriface some kittens and added a short 10 second sleep
2015-11-20 19:12:31 +02:00
stack72
7bda855590
Adding the work to assign a Floating IP to a Droplet
2015-11-20 19:12:31 +02:00
stack72
9cf1c2943c
Adding the first pass of the work to get a floatingip assigned to a region
2015-11-20 19:12:30 +02:00
Paul Hinze
887839ce23
provider/digitalocean: remove relative CNAME test
...
Heard back from DO support:
> we require it to be a FQDN for a CNAME record in our DNS system.
/cc @paystee, the original author here
2015-11-19 18:36:58 -06:00
Paul Hinze
75d056c878
provider/digitalocean: comment out test for relative DNS records
...
Until we hear back from DigitalOcean on whether this behavior is
supposed to be supported or not.
2015-11-19 16:11:42 -06: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
Paul Hinze
bf11be82c8
provider/digitalocean: enhance user_data test
...
Checks to ensure that the droplet is recreated. Commenting out
`ForceNew` on `user_data` fails the test now.
/cc @stack72
2015-11-04 15:20:52 -06: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
Anthony Scalisi
198e1a5186
remove various typos
2015-09-11 11:56:20 -07:00
Rui Lopes
02791d70df
provider/digitalocean: check if the droplet no longer exists.
2015-06-25 22:17:56 +01:00
Paul Hinze
ace47c1c5b
providers/digitalocean: fix ssh key test
...
there's now validation on the public key field
2015-04-02 09:04:59 -05:00
Anton Tereshchenkov
6f76340192
providers/digitalocean: add dot in GET response
...
Added tests for relative and external CNAME values.
2015-03-26 10:57:46 -07:00
Anton Tereshchenkov
3565ae034e
providers/digitalocean: force fqdn in dns rr value
...
Fixes a bug that forces DNS record to be recreated when dealing with
records that have domain values (CNAME, MX, NS, etc.)
2015-03-26 10:57:46 -07:00
Pablo Lalloni
ac58a450ba
Add DigitalOcean SSH Key resource
2015-02-27 08:40:11 -03: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