knife-vcenter 4.0.0 → 5.0.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
  SHA256:
3
- metadata.gz: a18b0fb0f0566f205387e35a898d22f165094ba06b8cc33ee71fcc5b7c208eea
4
- data.tar.gz: d1a55640efce845f23d91c47df0637509511a6b218a47573366e96b7e502e41a
3
+ metadata.gz: 623c199e59de931af1b1f631c4e2179cf3d2edfc5ba53366b3ed1060fc186759
4
+ data.tar.gz: 354d21619fbbbc382007fabaa6bcbc462d579ecb27d6d47f132d85f39ff79a9e
5
5
  SHA512:
6
- metadata.gz: f472a8ba902b6c266573ac0d456713a40fda80b4ed3fd64b6972e92d866f44ce08fe00c6466b3990ccf19afaad3da904b42c5653ebda7ac62265821f3464a3ca
7
- data.tar.gz: ad94e19796787df7474f2648e924f163ad3ad04d9586129ce8d72bcf4aabadf3686b7a83665be9c79c7657c0acad11085244631140f15e94b7fc6fc8b954855e
6
+ metadata.gz: 00ba3056b9745793ff226fc7b4f452fa2dc288b71221515972d030435b2170147e5a13612c20d308e5ef91d3ea372f577a61c130fde94e6bbd257ccece6dce59
7
+ data.tar.gz: 8461ae70e178bae44c55a2dbfb4669e47942a191ab36c8c77ba5d21dc42455c03ba52879bd83bbf31b2269bb5a7d01a7fab1232fbf22bd255a8812b40445c7be
@@ -104,7 +104,7 @@ class Chef
104
104
  @ipaddress = clone_obj.clone
105
105
 
106
106
  # return an object from the restapi
107
- return get_server(options[:name])
107
+ get_server(options[:name])
108
108
 
109
109
  when "create"
110
110
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
3
  # Author:: Chef Partner Engineering (<partnereng@chef.io>)
4
- # Copyright:: Copyright (c) 2017-2018 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # License:: Apache License, Version 2.0
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -31,16 +31,16 @@ class Chef
31
31
  # Creates the object for vCenterService
32
32
  #
33
33
  def create_service_instance
34
- Chef::Knife::Cloud::VcenterService.new(username: locate_config_value(:vcenter_username),
35
- password: locate_config_value(:vcenter_password),
36
- host: locate_config_value(:vcenter_host),
34
+ Chef::Knife::Cloud::VcenterService.new(username: config[:vcenter_username],
35
+ password: config[:vcenter_password],
36
+ host: config[:vcenter_host],
37
37
  verify_ssl: verify_ssl?)
38
38
  end
39
39
 
40
40
  # Do we have valid SSL?
41
41
  #
42
42
  def verify_ssl?
43
- !locate_config_value(:vcenter_disable_ssl_verify)
43
+ !config[:vcenter_disable_ssl_verify]
44
44
  end
45
45
 
46
46
  # Validate the options and fail out if something isn't there
@@ -54,7 +54,7 @@ class Chef
54
54
  #
55
55
  # @param [Object] keys makes sure that the values are all not nil
56
56
  def check_for_missing_config_values!(*keys)
57
- missing = keys.select { |x| locate_config_value(x).nil? }
57
+ missing = keys.select { |x| config[x].nil? }
58
58
 
59
59
  unless missing.empty?
60
60
  ui.error(format("The following required parameters are missing: %s", missing.join(", ")))
@@ -2,7 +2,7 @@
2
2
 
3
3
  #
4
4
  # Author:: Chef Partner Engineering (<partnereng@chef.io>)
5
- # Copyright:: Copyright (c) 2017-2018 Chef Software, Inc.
5
+ # Copyright:: Copyright (c) Chef Software Inc.
6
6
  # License:: Apache License, Version 2.0
7
7
  #
8
8
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -89,12 +89,12 @@ class Chef
89
89
  @create_options = {
90
90
  name: @name_args[0],
91
91
  type: "clone",
92
- template: locate_config_value(:template),
93
- targethost: locate_config_value(:targethost),
94
- datacenter: locate_config_value(:datacenter),
95
- poweron: !locate_config_value(:disable_power_on),
96
- folder: locate_config_value(:folder),
97
- resource_pool: locate_config_value(:pool),
92
+ template: config[:template],
93
+ targethost: config[:targethost],
94
+ datacenter: config[:datacenter],
95
+ poweron: !config[:disable_power_on],
96
+ folder: config[:folder],
97
+ resource_pool: config[:pool],
98
98
  }
99
99
  end
100
100
 
@@ -103,7 +103,7 @@ class Chef
103
103
  def before_bootstrap
104
104
  super
105
105
 
106
- config[:chef_node_name] = locate_config_value(:chef_node_name) || server.name
106
+ config[:chef_node_name] = config[:chef_node_name] || server.name
107
107
 
108
108
  config[:bootstrap_ip_address] = hostname_for_server
109
109
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
3
  # Author:: Chef Partner Engineering (<partnereng@chef.io>)
4
- # Copyright:: Copyright (c) 2017-2018 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # License:: Apache License, Version 2.0
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -75,10 +75,10 @@ class Chef
75
75
  @create_options = {
76
76
  name: @name_args[0],
77
77
  type: "create",
78
- targethost: locate_config_value(:targethost),
79
- folder: locate_config_value(:folder),
80
- datastore: locate_config_value(:datastore),
81
- resource_pool: locate_config_value(:resource_pool),
78
+ targethost: config[:targethost],
79
+ folder: config[:folder],
80
+ datastore: config[:datastore],
81
+ resource_pool: config[:resource_pool],
82
82
  }
83
83
 
84
84
  puts @create_options
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
3
  # Author:: Chef Partner Engineering (<partnereng@chef.io>)
4
- # Copyright:: Copyright (c) 2017-2018 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # License:: Apache License, Version 2.0
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -20,5 +20,5 @@
20
20
  # Provisions machines in vCenter
21
21
  module KnifeVcenter
22
22
  # The version of this amazing Gem, you should <3 it.
23
- VERSION = "4.0.0"
23
+ VERSION = "5.0.0"
24
24
  end
metadata CHANGED
@@ -1,23 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-vcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Partner Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-09 00:00:00.000000000 Z
11
+ date: 2020-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: knife-cloud
14
+ name: chef
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.2'
20
- - - "<"
19
+ version: '15.11'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '15.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: knife-cloud
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
21
32
  - !ruby/object:Gem::Version
22
33
  version: '4.0'
23
34
  type: :runtime
@@ -25,9 +36,6 @@ dependencies:
25
36
  version_requirements: !ruby/object:Gem::Requirement
26
37
  requirements:
27
38
  - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '1.2'
30
- - - "<"
31
39
  - !ruby/object:Gem::Version
32
40
  version: '4.0'
33
41
  - !ruby/object:Gem::Dependency
@@ -111,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
119
  requirements:
112
120
  - - ">="
113
121
  - !ruby/object:Gem::Version
114
- version: '2.5'
122
+ version: '2.6'
115
123
  required_rubygems_version: !ruby/object:Gem::Requirement
116
124
  requirements:
117
125
  - - ">="