Michael Nikitochkin
343c594bb3
Added UserDataFile support for DigitalOcean builder config.
2016-09-28 15:00:57 +02:00
Orivej Desh
6762965696
Add -on-error command line argument to allow preserving artifacts on builder errors
...
Resolves #409
2016-09-16 12:15:00 +00:00
Rickard von Essen
f446c1a1b7
builders/digitalocean: fixes timeout waiting for snapshot #3853
2016-09-08 10:32:43 +02:00
Toby Jaffey
37ef03c41c
Use config StateTimeout for DigitalOcean unlock and off transitions. ( #3444 )
...
Use config StateTimeout for DigitalOcean unlock and off transitions.
When DigitalOcean's API is responding slowly, the hardcoded timeouts are too short.
2016-08-14 21:12:30 +02:00
Andrew Starr-Bochicchio
6d31470757
Look up snapshot ID based by Droplet, not user.
2016-02-09 11:29:06 -05:00
Vasiliy Tolstov
ec4e95493d
builder/digitalocean: add ability to specify api url
...
This is useful in case of using DigitalOcean compatibility api hosting.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-06 14:15:32 +00:00
Chris Bednarski
d6c02f5aeb
Change test to use something that looks like a real region code
2016-01-21 11:29:39 -08:00
Chris Bednarski
7b468af6b8
Merge pull request #2939 from bitrise-io/digitalocean_timeout_increase
...
increased DigitalOcean unlock wait timeouts
2016-01-13 14:11:09 -08:00
Andrew Starr-Bochicchio
2212125f46
Return DigitalOcean image ID in output.
2015-12-15 12:00:04 -05:00
Viktor Benei
eda2c9c605
actually make it 20 mins
2015-11-14 14:14:33 +01:00
Viktor Benei
7e568644a5
increased DigitalOcean unlock wait timeouts
2015-11-14 12:11:44 +01:00
Andy Williams
d36b653d3f
Make DigitalOcean artifact ID match AWS format
...
The Vagrant post processor expects the DO artifact ID to look like an
AWS artifact ID (region_id:snapshot_id). This commit makes the DO
artifact Id() function output this format.
2015-11-08 14:38:56 -05:00
Chris Bednarski
32b714e085
Update code.google.com/gosshold/ssh to point to golang.org/x/crypto/ssh, since this has been moved into core now
...
Fixes #2515
2015-07-30 19:19:59 -07:00
Chris Bednarski
51804e9132
Find a public IP address to provision a digital ocean box
2015-06-29 14:47:28 -07:00
Mitchell Hashimoto
84189f7a28
builder/*: properly save interpolation context
2015-06-22 09:22:42 -07:00
Mitchell Hashimoto
115d583cff
helper/communicator: make host more generic
2015-06-13 19:23:33 -04:00
Mitchell Hashimoto
669f301881
builder/digitalocean: use helper/comm
2015-06-13 18:26:13 -04:00
Mark Peek
16320372d6
Make some builder config usage more consistent with other builders
2015-06-12 14:02:09 -07:00
Mitchell Hashimoto
3933cc3217
Merge pull request #2208 from mitchellh/b-do-user
...
builder/digitalocean: user data support [GH-2113]
2015-06-11 16:57:04 -04:00
Mitchell Hashimoto
dcf140f99f
builder/digitalocean: more robust wait for pending
2015-06-10 19:53:07 -07:00
Mitchell Hashimoto
0e0cd28071
builder/digitalocean: fix failing unit tests
2015-06-10 19:31:48 -07:00
Mitchell Hashimoto
5cfd26a0d3
builder/digitalocean: user data support [GH-2113]
2015-06-10 19:29:48 -07:00
Mitchell Hashimoto
c9c9e2871c
builder/digitalocean: fix build
2015-06-10 18:58:50 -07:00
Mitchell Hashimoto
7dc59677f9
Merge branch 'do_certificate' of https://github.com/ColinHebert/packer into ColinHebert-do_certificate
2015-06-10 18:57:56 -07:00
Mitchell Hashimoto
5da56d2aa6
builder/digitalocean: image, region, etc. required
2015-06-10 18:54:51 -07:00
Mitchell Hashimoto
311c9eb5c2
builder/digitalocean: fix unit tests
2015-06-10 14:28:05 -07:00
Mitchell Hashimoto
9a393a5601
builder/digitalocean: only list user images
2015-06-10 14:18:38 -07:00
Mitchell Hashimoto
486c7e4ae6
builder/digitalocean: remove unused things
2015-06-10 14:07:24 -07:00
Mitchell Hashimoto
d9c48e82fb
builder/digitalocean: switch to new lib
2015-06-10 14:02:06 -07:00
Mitchell Hashimoto
23a48d6619
go fmt
2015-06-08 21:34:20 -07:00
Mitchell Hashimoto
60b60d9f75
Merge pull request #2036 from mojotalantikite/digitalocean_private
...
Fix digitalocean provider for private images [fixes mitchellh/packer#1792 ]
2015-06-08 21:18:33 -07:00
jszwedko
b1497b951c
code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
...
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6
Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.
This is a precursor to a PR for #1066 .
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto
1d3a4d6aa2
packer: remove ConfigTemplate
2015-05-27 17:56:45 -07:00
Mitchell Hashimoto
7d0f94834e
builder/digitalocean: interpolation change
2015-05-27 12:50:43 -07:00
Mojo Talantikite
d174ffe1fa
Fix digitalocean provider for private images [ fixes mitchellh/packer#1792 ]
2015-03-12 19:01:51 -04:00
Emil Hessman
413b84af6b
builder/digitalocean: fix incorrect printf verb types
...
Fixes the following vet reports:
builder/digitalocean/builder_test.go:267: arg b.config.SSHUsername for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:300: arg b.config.RawSSHTimeout for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:341: arg b.config.RawStateTimeout for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:382: arg b.config.PrivateNetworking for printf verb %s of wrong type: bool
builder/digitalocean/builder_test.go:397: arg b.config.PrivateNetworking for printf verb %s of wrong type: bool
2015-02-25 05:29:53 +01:00
Ryan Uber
78d6dda005
builder/digitalocean: fix response decoding after api changes
2015-01-26 13:19:46 -08:00
Colin Hebert
42d05368ae
Save the generated SSH key as a file in debug mode
2015-01-10 23:52:45 +11:00
Ryan Uber
010c77d05f
builder/digitalocean: default to nyc3
2014-12-10 00:26:56 -08:00
Armon Dadgar
dd5de1e342
Merge pull request #1692 from nitrous-io/digitalocean-image-id
...
Use DigitalOcean image ID for artifact Id()
2014-12-08 11:16:08 -08:00
Cheah Chu Yeow
3d6865fafc
builder/digitalocean: use DigitalOcean image ID for artifact Id().
2014-11-24 08:14:05 +00:00
Vasiliy Tolstov
1e87e796dc
fix using private ip address in digitalocean builder
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-12 22:57:29 +03:00
Vasiliy Tolstov
8af85df822
add error code for failed auth
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-02 18:47:11 +03:00
Vasiliy Tolstov
a5dc41a730
fix digitalocean v2 api content-type when using json
...
In case of using json we need to set content-type header.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-02 01:47:04 +03:00
Vasiliy Tolstov
e5ea82f920
fix digitalocean v2 api size response
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-30 22:16:21 +03:00
Mitchell Hashimoto
0db6cd3533
Merge pull request #1330 from qur/qemu-vagrant
...
Qemu vagrant
2014-10-28 08:42:17 -07:00
Vasiliy Tolstov
10612b5d89
try to avoid pagination
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-28 16:05:37 +03:00
Vasiliy Tolstov
e614a8c3d5
remove debug output
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 01:47:51 +04:00
Vasiliy Tolstov
f4c756a2cb
fix copy/paste error
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 00:02:46 +04:00
Julian Phillips
90a57c411f
Expand Artifact API to expose build state
...
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00