knife-rackspace 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/chef/knife/rackspace_server_create.rb +14 -10
- data/lib/knife-rackspace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7811a3b0274045c7eef68f84c9c98937c921da04
|
4
|
+
data.tar.gz: 1ac4c493912be152364421c62bc340bf678dfc95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9110fa351cbb6d96c601338209879c47931fe5a4546f977a6e16a332dc91db361ab6951ed368db7892a01c878e9362b30efdaf2a0b101b3e08a1816bf38d3ffd
|
7
|
+
data.tar.gz: f999ed0ce979560b67ee47135a46fc89ff8da14a5aedff4fc9163d613719fe654787a5d11177c890b01e6c256c89be93e47019dd06491b3fd96aafa4f9ee7a5a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## v1.0.3
|
2
|
+
* Fix to encrypted_data_bag_secret and encrypted_data_bag_secret_file options (#138)
|
3
|
+
* Fix em-winrm dependencies and close TCP sockets (#134)
|
4
|
+
|
5
|
+
## v1.0.2
|
6
|
+
* Fix issue in error message when no flavor is supplied (#132)
|
7
|
+
|
1
8
|
## v1.0.1
|
2
9
|
* Fix Server List exception (#131)
|
3
10
|
* Fix bug preferring knife over CLI configurations items (#128)
|
@@ -45,7 +45,7 @@ class Chef
|
|
45
45
|
:long => "--flavor FLAVOR",
|
46
46
|
:description => "The flavor of server; default is 2 (512 MB)",
|
47
47
|
:proc => Proc.new { |f| Chef::Config[:knife][:flavor] = f.to_s },
|
48
|
-
:default => 2
|
48
|
+
:default => "2"
|
49
49
|
|
50
50
|
option :image,
|
51
51
|
:short => "-I IMAGE",
|
@@ -258,10 +258,15 @@ class Chef
|
|
258
258
|
:proc => Proc.new { |v| Chef::Config[:knife][:rackspace_ssh_keypair] = v },
|
259
259
|
:default => nil
|
260
260
|
|
261
|
+
option :secret,
|
262
|
+
:long => "--secret",
|
263
|
+
:description => "The secret key to us to encrypt data bag item values",
|
264
|
+
:proc => lambda { |s| Chef::Config[:knife][:secret] = s }
|
265
|
+
|
261
266
|
option :secret_file,
|
262
267
|
:long => "--secret-file SECRET_FILE",
|
263
268
|
:description => "A file containing the secret key to use to encrypt data bag item values",
|
264
|
-
:proc =>
|
269
|
+
:proc => lambda { |sf| Chef::Config[:knife][:secret_file] = sf }
|
265
270
|
|
266
271
|
option :bootstrap_vault_file,
|
267
272
|
:long => "--bootstrap-vault-file VAULT_FILE",
|
@@ -284,10 +289,9 @@ class Chef
|
|
284
289
|
|
285
290
|
def load_winrm_deps
|
286
291
|
require "winrm"
|
287
|
-
require "
|
292
|
+
require "chef/knife/winrm"
|
288
293
|
require "chef/knife/bootstrap_windows_winrm"
|
289
294
|
require "chef/knife/core/windows_bootstrap_context"
|
290
|
-
require "chef/knife/winrm"
|
291
295
|
end
|
292
296
|
|
293
297
|
def tcp_test_ssh(server, bootstrap_ip)
|
@@ -351,8 +355,8 @@ class Chef
|
|
351
355
|
end
|
352
356
|
|
353
357
|
def tcp_test_winrm(hostname, port)
|
354
|
-
TCPSocket.new(hostname, port)
|
355
|
-
|
358
|
+
tcp_socket = TCPSocket.new(hostname, port)
|
359
|
+
true
|
356
360
|
rescue SocketError
|
357
361
|
sleep 2
|
358
362
|
false
|
@@ -369,6 +373,7 @@ class Chef
|
|
369
373
|
rescue Errno::ENETUNREACH
|
370
374
|
sleep 2
|
371
375
|
false
|
376
|
+
tcp_socket && tcp_socket.close
|
372
377
|
end
|
373
378
|
|
374
379
|
def run
|
@@ -601,11 +606,10 @@ class Chef
|
|
601
606
|
bootstrap.config[:template_file] = locate_config_value(:template_file)
|
602
607
|
bootstrap.config[:first_boot_attributes] = locate_config_value(:first_boot_attributes)
|
603
608
|
bootstrap.config[:bootstrap_proxy] = locate_config_value(:bootstrap_proxy)
|
604
|
-
|
605
|
-
|
606
|
-
# bootstrap.config[:encrypted_data_bag_secret_file] = config[:encrypted_data_bag_secret_file]
|
609
|
+
bootstrap.config[:encrypted_data_bag_secret] = locate_config_value(:secret)
|
610
|
+
bootstrap.config[:encrypted_data_bag_secret_file] = locate_config_value(:secret_file)
|
607
611
|
bootstrap.config[:secret] = locate_config_value(:secret)
|
608
|
-
bootstrap.config[:secret_file] = locate_config_value(:secret_file)
|
612
|
+
bootstrap.config[:secret_file] = locate_config_value(:secret_file)
|
609
613
|
|
610
614
|
Chef::Config[:knife][:hints] ||= {}
|
611
615
|
Chef::Config[:knife][:hints]["rackspace"] ||= {}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-rackspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: knife-windows
|