foreman_digitalocean 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/fog_extensions/digitalocean/server.rb +1 -1
- data/app/models/foreman_digitalocean/digitalocean.rb +11 -2
- data/app/views/compute_resources_vms/form/digitalocean/_base.html.erb +2 -0
- data/app/views/compute_resources_vms/show/_digitalocean.html.erb +1 -0
- data/lib/foreman_digitalocean/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7357254f2c88d41cd0a69e13f1d7b3a3a8729ef7
|
4
|
+
data.tar.gz: a1234f4af26b017a3dba33e3994718f1cedb2c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da0c4205ea0098f68aff3b6d177d70b81cb65cb48e104dc7ccb4520dea82bf73041b78a73e159cc320f9b7da2fb82d4b8a116b17ad91d4964ba30af9dccfe50d
|
7
|
+
data.tar.gz: 9cf73094139dd599e51bfaefa1d3e7c9daa0220dd8b6a8b6a319144b65f7dacc553ca9cfe6f5f43f5bbd174b35e68c05a5b7e5a12bc2688e61d2c0537282d8bc
|
@@ -17,7 +17,11 @@ module ForemanDigitalocean
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def provided_attributes
|
20
|
-
super.merge(
|
20
|
+
super.merge(
|
21
|
+
:uuid => :identity_to_s,
|
22
|
+
:ip => :ipv4_address,
|
23
|
+
:ip6 => :ipv6_address,
|
24
|
+
)
|
21
25
|
end
|
22
26
|
|
23
27
|
def self.model_name
|
@@ -44,7 +48,12 @@ module ForemanDigitalocean
|
|
44
48
|
end
|
45
49
|
|
46
50
|
def available_images
|
47
|
-
|
51
|
+
images = []
|
52
|
+
collection = client.images
|
53
|
+
begin
|
54
|
+
images += collection.to_a
|
55
|
+
end until !collection.next_page
|
56
|
+
images
|
48
57
|
end
|
49
58
|
|
50
59
|
def regions
|
@@ -5,3 +5,5 @@
|
|
5
5
|
<div id='region_selection'>
|
6
6
|
<%= select_region(f, compute_resource) %>
|
7
7
|
</div>
|
8
|
+
<%= checkbox_f f, :ipv6, { :help_inline => _('Enable IPv6 networking for this VM.'), :label => _('IPv6 Support'), :label_size => "col-md-2" }, true, false if new_host %>
|
9
|
+
<%= checkbox_f f, :private_networking, { :help_inline => _('Enable private networking for this VM.'), :label => _('Private Networking'), :label_size => "col-md-2" }, true, false if new_host %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommy McNeely, Daniel Lobato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.2.2
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: Provision and manage DigitalOcean droplets from Foreman
|
@@ -82,3 +82,4 @@ test_files:
|
|
82
82
|
- test/factories/compute_resources.rb
|
83
83
|
- test/test_plugin_helper.rb
|
84
84
|
- test/unit/foreman_digitalocean/digitalocean_test.rb
|
85
|
+
has_rdoc:
|