foreman_gridscale 1.0.3 → 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
- SHA256:
3
- metadata.gz: 6b3ca9cf64877394d258c167486a3f8b5b218a8614f57221de9e3d2ed662cfb1
4
- data.tar.gz: 39d4bfd03ef18f39f99743381872e323e607790de748e70befc3c3a194bdde64
2
+ SHA1:
3
+ metadata.gz: 74dbd2f455c4aa0a87e2042ea4ce080933b53b39
4
+ data.tar.gz: d510dae2686a4863adfb79c0cb0caab9a34b310f
5
5
  SHA512:
6
- metadata.gz: 1d7d621c97b3f8652e6da769538bb579533b75ab1e5940518f2019d6234dbc5ef690910b7ef2e827028404be9a7a20377d30703077ab79cd7b16856e197e68c3
7
- data.tar.gz: ee2bb3933b1ad2e1a6192af637dd3ce526f6cf187154ef743cd11600f7f15057c4c0d04f97aba50ccb6a92fc060dc414850b733b9aaae51bf0e08ad3951c732a
6
+ metadata.gz: fc8d295c4203319b2d852765383ee07a75ac495de16db3408546335de2c7e6dbb911f2b00fa368fd41dd93cf51736cc49054ceb8c544d8c82dc70c4623b9a87d
7
+ data.tar.gz: 99918b81ac7a2b7a76530393b172f9e331f253788ede3859644bdf169e39b44adde74ce4e31f879f6513b49d0353a3e890b62f4fa56f8ac71abc17abcda49509
data/README.md CHANGED
@@ -82,8 +82,6 @@ Go to Infrastructure > Compute resource and select the compute resource for grid
82
82
  * When creating a host, multiple network interfaces can be set to bootable. The gridscale platform does not support this, which is why only one of the interfaces will actually be set to bootable if this is the case
83
83
  * When creating a compute profile, the chosen network interface configuration is not saved
84
84
  * The Virtual Machines overview of a compute resource can take a long time to load
85
- * The data shown in the VM tab of a host is not complete. More input about which information is useful is needed
86
85
  * Opening the console of a host in Foreman has not been implemented, but a link to gridscale is supplied
87
86
  * Acpi power off fails to shut down a system which did not boot
88
- * MAC, IP4 and IP6 information is in the VM tab, not Interface
89
87
 
@@ -9,7 +9,7 @@ module GridscaleImagesHelper
9
9
  def select_ipv4(f, compute_resource)
10
10
  addresses = Array.new
11
11
  compute_resource.ips.each do |ip|
12
- if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==4 and ip.failover = false
12
+ if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==4 and ip.failover == false
13
13
  addresses << ip
14
14
  end
15
15
  end
@@ -29,7 +29,7 @@ module GridscaleImagesHelper
29
29
  def select_ipv6(f, compute_resource)
30
30
  addresses = Array.new
31
31
  compute_resource.ips.each do |ip|
32
- if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==6 and ip.failover = false
32
+ if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==6 and ip.failover == false
33
33
  addresses << ip
34
34
  end
35
35
  end
@@ -4,6 +4,8 @@ module FogExtensions
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  attr_accessor :object_uuid, :mac, :server_uuid, :interfaces_attributes, :ipv4_address, :ipv6_address
7
+ alias_attribute :ip, :ipv4_address
8
+ alias_attribute :ip6, :ipv6_address
7
9
 
8
10
  def state
9
11
  requires :status
@@ -57,7 +59,10 @@ module FogExtensions
57
59
  :mac
58
60
  end
59
61
 
60
-
62
+ def select_nic(fog_nics, nic)
63
+ # foreman-xenserver uses fog_nics[0] here, so I'll just copy that for now.
64
+ fog_nics[0]
65
+ end
61
66
  end
62
67
  end
63
68
  end
@@ -35,7 +35,7 @@ module ForemanGridscale
35
35
  end
36
36
 
37
37
  def provided_attributes
38
- super.merge({})
38
+ super.merge({:mac => :mac})
39
39
  end
40
40
 
41
41
  def get_ip(ipaddr_uuid)
@@ -1,3 +1,3 @@
1
1
  module ForemanGridscale
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_gridscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aldemuro Haris
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-07 00:00:00.000000000 Z
12
+ date: 2019-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -106,7 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.0.3
109
+ rubyforge_project:
110
+ rubygems_version: 2.5.2.3
110
111
  signing_key:
111
112
  specification_version: 4
112
113
  summary: Provision and manage gridscale instances from Foreman