knife-joyent 0.3.5 → 0.3.6

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: ee2fcd7ed58b4dc501d0499506fe5086d13d2d25
4
- data.tar.gz: 9271025e54762e4a8c4d424fe09f87f832570c70
3
+ metadata.gz: 97840b8a3ec364a32ca0735ec200d7f0a0823351
4
+ data.tar.gz: 298e8434baa3a3c1d469fa0a39b748c3f04af02f
5
5
  SHA512:
6
- metadata.gz: ff52fed01168a0c8c36a71ba3e0ad3b2be6fcc1bc62645ba3e7d659ed34824ec28df21cbe4f06b1298c3d77eb0ecd6743e1cee18ef4c4daa0742b18f62d91df0
7
- data.tar.gz: e7836fd3d2caeaf2684868409c04a57005c76b711fe45b684734bec5002be0dead2603c88c1b59316cb6cbee47afa9a552de967245358a70f19a1a0075f43403
6
+ metadata.gz: b24792faf5a1d8b15c6e1ba29630a5f1213fe95872d863b94664dc52f0de3017204b117916584b4d2df4044378ac2d1e6670987c5f4212fd09088eb17079f0b0
7
+ data.tar.gz: 16b9f5f771f78863116eb109397c467e459b348ca0e3b1d27da71c3bd711570575f617c9a930ab503319566fd859ab707f4c6ff361d4d494ebf9144ccb2a7da2
data/README.md CHANGED
@@ -110,9 +110,18 @@ to automatically unlock the key for authentication.
110
110
 
111
111
  **``joyent_api_url``**
112
112
 
113
- Specify a custom API endpoint, this is required if you want to specify
114
- where you want to provision your machines, or if you are using knife with a
115
- provider powered by [SmartDataCenter](http://www.joyent.com/products/smartdatacenter/).
113
+ Specifies a custom CloudAPI endpoint, this is required if you want to manage
114
+ machines located in another datacenter or if you want to interface with any CloudAPI
115
+ instance powered by [SmartDataCenter](http://www.joyent.com/products/smartdatacenter/).
116
+
117
+ Defaults to us-west-1
118
+
119
+ Available datacenters (currently) are:
120
+
121
+ https://eu-ams-1.api.joyentcloud.com
122
+ https://us-west-1.api.joyentcloud.com
123
+ https://us-sw-1.api.joyentcloud.com
124
+ https://us-east-1.api.joyentcloud.com
116
125
 
117
126
  # Defaults to https://us-west-1.api.joyentcloud.com/
118
127
  knife[:joyent_api_url] = "https://us-sw-1.api.joyentcloud.com/"
@@ -19,7 +19,7 @@ class Chef
19
19
 
20
20
  option :server_name,
21
21
  :short => "-S NAME",
22
- :long => "--server-name <name>",
22
+ :long => "--server-name NAME",
23
23
  :description => "The Joyent server name (may contain letters, numbers, dashes, and periods)"
24
24
 
25
25
  option :chef_node_name,
@@ -104,6 +104,13 @@ class Chef
104
104
  :boolean => true,
105
105
  :default => false
106
106
 
107
+ option :ssh_gateway,
108
+ :short => "-w GATEWAY",
109
+ :long => "--ssh-gateway GATEWAY",
110
+ :description => "The ssh gateway server",
111
+ :proc => Proc.new { |key| Chef::Config[:knife][:ssh_gateway] = key }
112
+
113
+
107
114
  def is_linklocal(ip)
108
115
  linklocal = IPAddr.new "169.254.0.0/16"
109
116
  return linklocal.include?(ip)
@@ -238,9 +245,6 @@ class Chef
238
245
  Chef::Log.debug("Bootstrap ssh_user = #{config[:ssh_user]}")
239
246
  bootstrap.config[:ssh_user] = config[:ssh_user]
240
247
 
241
- Chef::Log.debug("Bootstrap identity_file = #{config[:identity_file]}")
242
- bootstrap.config[:identity_file] = config[:identity_file]
243
-
244
248
  Chef::Log.debug("Bootstrap chef_node_name = #{config[:chef_node_name]}")
245
249
  bootstrap.config[:chef_node_name] = config[:chef_node_name] || server.id
246
250
 
@@ -259,6 +263,13 @@ class Chef
259
263
  Chef::Log.debug("Bootstrap no_host_key_verify = #{config[:no_host_key_verify]}")
260
264
  bootstrap.config[:no_host_key_verify] = config[:no_host_key_verify]
261
265
 
266
+ Chef::Log.debug("Bootstrap identity_file = #{config[:identity_file]}")
267
+ bootstrap.config[:identity_file] = config[:identity_file]
268
+
269
+ Chef::Log.debug("Bootstrap ssh_gateway= #{config[:ssh_gateway]}")
270
+ bootstrap.config[:ssh_gateway] = config[:ssh_gateway]
271
+
272
+
262
273
  Chef::Log.debug("Bootstrap json_attributes = #{config[:json_attributes]}")
263
274
  bootstrap.config[:first_boot_attributes] = config[:json_attributes]
264
275
 
@@ -296,7 +307,7 @@ class Chef
296
307
  # add some validation here ala knife-ec2
297
308
  unless config[:server_name] || config[:chef_node_name]
298
309
  ui.error("You have not provided a valid server or node name.")
299
- show_usage
310
+ puts show_usage
300
311
  exit 1
301
312
  end
302
313
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeJoyent
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-joyent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Chan