knife-rackspace 0.9.3 → 0.10.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
  SHA1:
3
- metadata.gz: 0c27aa6880a3defaf46a9f2d3382070572d612ff
4
- data.tar.gz: 80a1025bd9224abb93fc434de50c6b8c100e0b11
3
+ metadata.gz: 5ede86e1bc5bacb0c7290a6dfd95e7cccbb21f97
4
+ data.tar.gz: bdfcdfbfbca892b07090a26a3cc9f126813bd601
5
5
  SHA512:
6
- metadata.gz: 250232e5118c207910a0c5de1774f128950dbfe56bc4b31e4fff008001438786529b5aac929e3e728546169be23a712f0ac2862cdb5254964dad751d7b6d7edd
7
- data.tar.gz: 374b3f76f8a0b5ce7ab6eaa1a678da8a8cd037a756dd636391511f2f83f804821336c0d986956cc562b015d7e2be3f3b4ffd9802f037483386069bba27bd8e80
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
- :keypair => Chef::Config[:knife][:rackspace_ssh_keypair]
367
+ :key_name => Chef::Config[:knife][:rackspace_ssh_keypair]
352
368
  )
353
369
 
354
370
  if version_one?
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Rackspace
3
- VERSION = '0.9.3'
3
+ VERSION = '0.10.0'
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
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.9.3
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-14 00:00:00.000000000 Z
13
+ date: 2014-06-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: knife-windows