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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40e7592a3281e8c3a309dea6de05fe97d6e38625
4
- data.tar.gz: 84c63f6d23de034071ee0fb632cbbed358eb18cb
3
+ metadata.gz: 7357254f2c88d41cd0a69e13f1d7b3a3a8729ef7
4
+ data.tar.gz: a1234f4af26b017a3dba33e3994718f1cedb2c44
5
5
  SHA512:
6
- metadata.gz: 441f829ee9a1642edfc3144000aa71ae7046ac903915a266dd6d075ee7ec1cbaeb0cd5bb76ea3b1b7700b0e45862fc88927ef3280b87eb6d7ca50091b7f9025f
7
- data.tar.gz: 6e35c6b39759de2a4ac1bdfb3ebcfb346a55f767e3a4cfdb0e2b5a333bdf9ccbc0ea56e15c911993df395baa112cc1fc91f43970337663adf391cda8dfc6d3a3
6
+ metadata.gz: da0c4205ea0098f68aff3b6d177d70b81cb65cb48e104dc7ccb4520dea82bf73041b78a73e159cc320f9b7da2fb82d4b8a116b17ad91d4964ba30af9dccfe50d
7
+ data.tar.gz: 9cf73094139dd599e51bfaefa1d3e7c9daa0220dd8b6a8b6a319144b65f7dacc553ca9cfe6f5f43f5bbd174b35e68c05a5b7e5a12bc2688e61d2c0537282d8bc
@@ -43,7 +43,7 @@ module FogExtensions
43
43
  end
44
44
 
45
45
  def ip_addresses
46
- [public_ip_address, private_ip_address].flatten.select(&:present?)
46
+ [ipv4_address, ipv6_address].flatten.select(&:present?)
47
47
  end
48
48
 
49
49
  def state
@@ -17,7 +17,11 @@ module ForemanDigitalocean
17
17
  end
18
18
 
19
19
  def provided_attributes
20
- super.merge(:uuid => :identity_to_s, :ip => :public_ip_address)
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
- client.images
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 %>
@@ -4,6 +4,7 @@
4
4
  <tr><th colspan="2">Properties</th></tr>
5
5
  <%= prop :public_ip_address %>
6
6
  <%= prop :private_ip_address %>
7
+ <%= prop :ipv6_address %>
7
8
  <%= prop :state %>
8
9
  <%= prop :created_at, 'Created' %>
9
10
  <%= prop :image_name, 'Image' if @vm.image.present? %>
@@ -1,3 +1,3 @@
1
1
  module ForemanDigitalocean
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
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.1.0
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-10-03 00:00:00.000000000 Z
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.5.0
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: