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 +4 -4
- data/README.md +12 -3
- data/lib/chef/knife/joyent_server_create.rb +16 -5
- data/lib/knife-joyent/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97840b8a3ec364a32ca0735ec200d7f0a0823351
|
4
|
+
data.tar.gz: 298e8434baa3a3c1d469fa0a39b748c3f04af02f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
114
|
-
|
115
|
-
|
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
|
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
|
data/lib/knife-joyent/version.rb
CHANGED