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 +4 -4
- data/lib/chef/knife/cloud/vcenter_service.rb +1 -1
- data/lib/chef/knife/cloud/vcenter_service_helpers.rb +6 -6
- data/lib/chef/knife/vcenter_vm_clone.rb +8 -8
- data/lib/chef/knife/vcenter_vm_create.rb +5 -5
- data/lib/chef/knife/vcenter_vm_list.rb +1 -1
- data/lib/knife-vcenter/version.rb +1 -1
- metadata +17 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 623c199e59de931af1b1f631c4e2179cf3d2edfc5ba53366b3ed1060fc186759
|
4
|
+
data.tar.gz: 354d21619fbbbc382007fabaa6bcbc462d579ecb27d6d47f132d85f39ff79a9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00ba3056b9745793ff226fc7b4f452fa2dc288b71221515972d030435b2170147e5a13612c20d308e5ef91d3ea372f577a61c130fde94e6bbd257ccece6dce59
|
7
|
+
data.tar.gz: 8461ae70e178bae44c55a2dbfb4669e47942a191ab36c8c77ba5d21dc42455c03ba52879bd83bbf31b2269bb5a7d01a7fab1232fbf22bd255a8812b40445c7be
|
@@ -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)
|
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:
|
35
|
-
password:
|
36
|
-
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
|
-
!
|
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|
|
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)
|
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:
|
93
|
-
targethost:
|
94
|
-
datacenter:
|
95
|
-
poweron: !
|
96
|
-
folder:
|
97
|
-
resource_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] =
|
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)
|
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:
|
79
|
-
folder:
|
80
|
-
datastore:
|
81
|
-
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)
|
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");
|
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
|
+
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-
|
11
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: chef
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
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.
|
122
|
+
version: '2.6'
|
115
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
124
|
requirements:
|
117
125
|
- - ">="
|