vagrant-simplecloud 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -5
- data/lib/vagrant-simplecloud/helpers/client.rb +2 -2
- data/lib/vagrant-simplecloud/version.rb +1 -1
- data/pkg/vagrant-simplecloud-0.0.1.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94d59d90cf22e15c123153f566c701b593262de5
|
|
4
|
+
data.tar.gz: 9c2a179accc7183dfd95f2dc86d978dd17217f55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1021d202183b64fde267f3b0b6257748165fb92e8d5538392fce4ed60e1f434342da610dd0e62db12dafa711e80a60968f17f6444d8b3186561f70973df52b9a
|
|
7
|
+
data.tar.gz: f1bf1787facc81062a231bb13d63808e92d0c18c2776186c0b2fa75a9666d79e0ca19ee58072c8ce92d454fc3b98ac30860f9fbd69980bb84998102d4302ed9d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Features include:
|
|
|
11
11
|
- setup a SSH public key for authentication
|
|
12
12
|
- create a new user account during droplet creation
|
|
13
13
|
|
|
14
|
-
The provider has been tested with Vagrant 1.1.5+ using
|
|
14
|
+
The provider has been tested with Vagrant 1.1.5+ using Debian 8 guest operating systems.
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
Install
|
|
@@ -49,14 +49,14 @@ end
|
|
|
49
49
|
|
|
50
50
|
The following attributes are available to further configure the provider:
|
|
51
51
|
- `provider.image`
|
|
52
|
-
* A string representing the image to use when creating a new droplet. It defaults to `
|
|
53
|
-
List available images with the `simplecloud-list images $
|
|
52
|
+
* A string representing the image to use when creating a new droplet. It defaults to `123`.
|
|
53
|
+
List available images with the `simplecloud-list images $DO_TOKEN` command. Like when using the SimpleCloud API directly, [it can be an image ID or slug](http://simplecloud.ru/features/api-manual/#_Create-new-VPS).
|
|
54
54
|
- `provider.ipv6`
|
|
55
55
|
* A boolean flag indicating whether to enable IPv6
|
|
56
56
|
- `provider.region`
|
|
57
|
-
* A string representing the region to create the new droplet in. It defaults to `base`. List available regions with the `simplecloud-list regions $
|
|
57
|
+
* A string representing the region to create the new droplet in. It defaults to `base`. List available regions with the `simplecloud-list regions $DO_TOKEN` command.
|
|
58
58
|
- `provider.size`
|
|
59
|
-
* A string representing the size to use when creating a new droplet (e.g. `
|
|
59
|
+
* A string representing the size to use when creating a new droplet (e.g. `1`). It defaults to `1`. List available sizes with the `simplecloud-list sizes $DO_TOKEN` command.
|
|
60
60
|
- `provider.private_networking`
|
|
61
61
|
* A boolean flag indicating whether to enable a private network interface (if the region supports private networking). It defaults to `false`.
|
|
62
62
|
- `provider.backups_enabled`
|
|
@@ -141,3 +141,5 @@ To release a new version of vagrant-simplecloud you will need to do the followin
|
|
|
141
141
|
4. Then, when John Doe runs the following, they will receive the updated vagrant-simplecloud plugin:
|
|
142
142
|
* `vagrant plugin update`
|
|
143
143
|
* `vagrant plugin update vagrant-simplecloud`
|
|
144
|
+
* `export DO_TOKEN="digital ocean type token"`
|
|
145
|
+
* `vagrant up --provider=simple_cloud`
|
|
@@ -29,8 +29,8 @@ module VagrantPlugins
|
|
|
29
29
|
req['Authorization'] = connection_options[:headers][:authorization]
|
|
30
30
|
req.set_form_data(params)
|
|
31
31
|
res = https.request(req)
|
|
32
|
-
unless /^2\d\d$/ =~
|
|
33
|
-
raise "Server response error #{
|
|
32
|
+
unless /^2\d\d$/ =~ res.code.to_s
|
|
33
|
+
raise "Server response error #{res.code} #{path} #{params} #{res.message} #{res.body}"
|
|
34
34
|
end
|
|
35
35
|
JSON.parse(res.body)
|
|
36
36
|
end
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-simplecloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Bender
|
|
@@ -106,6 +106,7 @@ files:
|
|
|
106
106
|
- lib/vagrant-simplecloud/provider.rb
|
|
107
107
|
- lib/vagrant-simplecloud/version.rb
|
|
108
108
|
- locales/en.yml
|
|
109
|
+
- pkg/vagrant-simplecloud-0.0.1.gem
|
|
109
110
|
- test/Vagrantfile
|
|
110
111
|
- test/cookbooks/test/recipes/default.rb
|
|
111
112
|
- test/scripts/provision.sh
|