knife-rackspace 0.9.3 → 0.10.0
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 +5 -0
- data/README.rdoc +14 -0
- data/lib/chef/knife/rackspace_server_create.rb +17 -1
- 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: 5ede86e1bc5bacb0c7290a6dfd95e7cccbb21f97
|
4
|
+
data.tar.gz: bdfcdfbfbca892b07090a26a3cc9f126813bd601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bef3b8c302354dbaeea7d5df24b9edf743684a733d4658cac11539332b69f3377ca69eb0c8fd5fbc85ea959994a553946a80422329c085eb3bfe4eefeba294a4
|
7
|
+
data.tar.gz: 11909f2b2796829132da6ab7fcd9a4eff906761f758bcd735b479a6faf6031fd7671fc14061ca3a2f8346dfb78d25395a8a8636160427a7b971a30f7444048b0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## v0.10.0
|
2
|
+
* KNIFE-498 knife rackspace uses direct TCP connection on port 22 to verify SSHD
|
3
|
+
* Update Windows bootstrapping instructions in the README
|
4
|
+
* Fix warning for deprecated :keypair for :key_name
|
5
|
+
|
1
6
|
## v0.9.3
|
2
7
|
* KNIFE-497 Create server command does not honor timeout parameter
|
3
8
|
|
data/README.rdoc
CHANGED
@@ -94,6 +94,20 @@ You may specify a custom network using the <tt>--network [LABEL_OR_ID]</tt> opti
|
|
94
94
|
|
95
95
|
Note: If you are using one of the `performanceX-X` machines, you need to put `-f` or `--flavor` in quotes.
|
96
96
|
|
97
|
+
=== Windows
|
98
|
+
|
99
|
+
Windows Servers require special treatment with the knife-rackspace gem.
|
100
|
+
|
101
|
+
First, you'll need to ensure you've installed the knife-windows gem. Installation instructions can be found over here: http://docs.opscode.com/plugin_knife_windows.html#install-this-plugin
|
102
|
+
|
103
|
+
Secondly, you need to make sure that the image you're using has WinRM pre-configured. Unfortuantely, none of the Rackspace Windows image have this done by default, so you'll need to run the following instructions in a Windows machine, then save a Snapshot to use when creating servers with knife rackspace: http://docs.opscode.com/plugin_knife_windows.html#requirements
|
104
|
+
|
105
|
+
Thirdly, you must pass two extra parameters to the knife rackspace create command:
|
106
|
+
|
107
|
+
--bootstrap-protocol winrm --distro windows-chef-client-msi
|
108
|
+
|
109
|
+
If you have troubles, make sure you add the <tt>-VV</tt> switch for extra verbosity. The <tt>--server-create-timeout </tt> switch may also be your friend, as Windows machines take a long time to build compared to Linux ones.
|
110
|
+
|
97
111
|
== knife rackspace server delete
|
98
112
|
|
99
113
|
Deletes an existing server in the currently configured Rackspace Cloud account by the server/instance id. You can find the instance id by entering <tt>knife rackspace server list</tt>. Please note - this does not delete the associated node and client objects from the Chef server unless you pass the <tt>-P</tt> or <tt>--purge</tt> command option. Using the <tt>--purge</tt> option with v2 nodes will attempt to delete the node and client by the name of the node.
|
@@ -167,6 +167,17 @@ class Chef
|
|
167
167
|
:boolean => true,
|
168
168
|
:default => true
|
169
169
|
|
170
|
+
option :tcp_test_ssh,
|
171
|
+
:long => "--[no-]tcp-test-ssh",
|
172
|
+
:description => "Check that SSH is available using a TCP check directly on port 22, enabled by default",
|
173
|
+
:boolean => true,
|
174
|
+
:default => true
|
175
|
+
|
176
|
+
option :ssh_wait_timeout,
|
177
|
+
:long => "--ssh-wait-timeout TIMEOUT",
|
178
|
+
:description => "The ssh wait timeout, before attempting ssh",
|
179
|
+
:default => "0"
|
180
|
+
|
170
181
|
option :default_networks,
|
171
182
|
:long => "--[no-]default-networks",
|
172
183
|
:description => "Include public and service networks, enabled by default",
|
@@ -234,6 +245,11 @@ class Chef
|
|
234
245
|
end
|
235
246
|
|
236
247
|
def tcp_test_ssh(hostname)
|
248
|
+
sleep config[:ssh_wait_timeout].to_i
|
249
|
+
|
250
|
+
# if this feature is disabled, just return true to skip it
|
251
|
+
return true if not config[:tcp_test_ssh]
|
252
|
+
|
237
253
|
ssh_port = Chef::Config[:knife][:ssh_port] || config[:ssh_port]
|
238
254
|
tcp_socket = TCPSocket.new(hostname, ssh_port)
|
239
255
|
readable = IO.select([tcp_socket], nil, nil, 5)
|
@@ -348,7 +364,7 @@ class Chef
|
|
348
364
|
:user_data => user_data,
|
349
365
|
:config_drive => locate_config_value(:rackspace_config_drive) || false,
|
350
366
|
:personality => files,
|
351
|
-
:
|
367
|
+
:key_name => Chef::Config[:knife][:rackspace_ssh_keypair]
|
352
368
|
)
|
353
369
|
|
354
370
|
if version_one?
|
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: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-06-
|
13
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: knife-windows
|