knife-joyent 0.4.12 → 0.4.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbadbfdfac0b82475098817aa9df09ebffc045c6
4
- data.tar.gz: fa9ce1e48f64143ec93718585e971d65dba56eb9
3
+ metadata.gz: 48fd210adbbdd0a110d4fc3dbcc03e53e068f862
4
+ data.tar.gz: 6b5935871add6e57e28c292e7ec1a85c73d87931
5
5
  SHA512:
6
- metadata.gz: 05932dc50d37e0f493c7eb00f79e7080c4e0136e1f2e8f2de52909a3fb9cd6c0a845e2aaf841717ab773efd5c8d8c08ad7e3a0aa8b5b9bdba8805b7d90a051af
7
- data.tar.gz: 112e490a67295fa28c799fb032fa6883e89975242a6eecfdeb2aef060a4307b3481b68437c60390f9ba2da6f2e3275acbd403e0b08f4b62c61c6a982fc2174c0
6
+ metadata.gz: 04830213a591a6eaa707b945bee30615c837c3f8bddf5080fd4fb50be62f7d101643516719ea66aa2d48e6d6f5b5968a9fe44e6eb58198df36b0d9373e35a1e3
7
+ data.tar.gz: d7e940cf02502789ef8352d47429e291264ed2bb630b8ea57d8ad566ff4d00d644663ee5503629cd662f8369c5111ce685a447bbf12b9779f32f7843250716bf
data/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  Knife Joyent
2
2
  ===
3
3
 
4
- This is a [Knife](http://wiki.opscode.com/display/chef/Knife) plug-in for Joyent CloudAPI. This plug-in gives knife
5
- the ability to create, bootstrap, and manage servers on the [Joyent Public Cloud](http://www.joyentcloud.com/) as well as Cloud providers powered by Joyent's [SmartDataCenter](http://www.joyent.com/products/smartdatacenter/) product offering.
4
+ This is a [Knife](http://docs.chef.io/knife.html) plug-in for Joyent
5
+ CloudAPI. This plug-in gives knife the ability to create, bootstrap, and
6
+ manage servers on the [Joyent Public Cloud](https://www.joyent.com/) as
7
+ well as cloud providers powered by Joyent's [Private Cloud](https://www.joyent.com/private-cloud/)
8
+ product offering.
6
9
 
7
- For more information on Joyent CloudAPI, see: [CloudAPI Documentation](http://api.joyentcloud.com/docs)
10
+ For more information on Joyent CloudAPI, see: [CloudAPI Documentation](https://apidocs.joyent.com/cloudapi/).
8
11
 
9
12
  ## Installation
10
13
 
@@ -109,38 +112,42 @@ or username and password
109
112
  knife[:joyent_username] = "Your Joyent CloudAPI username"
110
113
  knife[:joyent_password] = "Your Joyent CloudAPI password"
111
114
 
112
- When authenticating with your ssh key (which we highly recommend), knife-joyent will
113
- attempt to use ssh-agent to sign the request using the key configured with
114
- ``knife[:joyent_keyname]``. If no ssh-agent is present or if the specified identity
115
- isn't found in the agent, you may be prompted for a pass-phrase. If you do not want
116
- to use an ``ssh-agent``, you may optionally configure ``knife[:joyent_passphrase]``
117
- to automatically unlock the key for authentication.
115
+ When authenticating with your ssh key (which we highly recommend),
116
+ knife-joyent will attempt to use ssh-agent to sign the request using the
117
+ key configured with ``knife[:joyent_keyname]``. If no ssh-agent is
118
+ present or if the specified identity isn't found in the agent, you may
119
+ be prompted for a pass-phrase. If you do not want to use an
120
+ ``ssh-agent``, you may optionally configure
121
+ ``knife[:joyent_passphrase]`` to automatically unlock the key for
122
+ authentication.
118
123
 
119
124
  #### Optional Configuration
120
125
 
121
126
  **``joyent_api_url``**
122
127
 
123
- Specifies a custom CloudAPI endpoint, this is required if you want to manage
124
- machines located in another datacenter or if you want to interface with any CloudAPI
125
- instance powered by [SmartDataCenter](http://www.joyent.com/products/smartdatacenter/).
128
+ Specifies a custom CloudAPI endpoint, this is required if you want to
129
+ manage machines located in another datacenter or if you want to
130
+ interface with any CloudAPI instance powered by
131
+ [SmartDataCenter](http://www.joyent.com/products/smartdatacenter/).
126
132
 
127
- Defaults to us-west-1
133
+ Defaults to us-sw-1
128
134
 
129
135
  Available datacenters (currently) are:
130
136
 
131
- https://eu-ams-1.api.joyentcloud.com
132
- https://us-west-1.api.joyentcloud.com
133
- https://us-sw-1.api.joyentcloud.com
134
- https://us-east-1.api.joyentcloud.com
137
+ https://eu-ams-1.api.joyent.com
138
+ https://us-west-1.api.joyent.com
139
+ https://us-sw-1.api.joyent.com
140
+ https://us-east-1.api.joyent.com
135
141
 
136
- # Defaults to https://us-west-1.api.joyentcloud.com/
137
- knife[:joyent_api_url] = "https://us-sw-1.api.joyentcloud.com/"
142
+ # Defaults to https://us-sw-1.api.joyent.com/
143
+ knife[:joyent_api_url] = "https://us-sw-1.api.joyent.com/"
138
144
 
139
145
  **``joyent_metadata``**
140
146
 
141
- Metadata to apply to each provisioned machine via the Metadata API. This should take
142
- the form of a hash with a single level of nesting. See the
143
- [Metadata API](http://wiki.joyent.com/wiki/display/sdc/Using+the+Metadata+API) for more info.
147
+ Metadata to apply to each provisioned machine via the Metadata API. This
148
+ should take the form of a hash with a single level of nesting. See the
149
+ [Metadata API](http://wiki.joyent.com/wiki/display/sdc/Using+the+Metadata+API)
150
+ for more info.
144
151
 
145
152
  knife[:joyent_metadata] = {
146
153
  "some_data" => "value"
@@ -148,39 +155,42 @@ the form of a hash with a single level of nesting. See the
148
155
 
149
156
  **``joyent_version``**
150
157
 
151
- By default, knife-joyent will use the version of the Joyent Cloud API that fog prefers. This
152
- can be overridden in knife.rb as follows:
158
+ By default, knife-joyent will use the version of the Joyent Cloud API
159
+ that fog prefers. This can be overridden in knife.rb as follows:
153
160
 
154
161
  knife[:joyent_version] = "~7.1"
155
162
 
156
- Some command line options to knife-joyent subcommands may depend on the Joyent API version set.
163
+ Some command line options to knife-joyent subcommands may depend on the
164
+ Joyent API version set.
157
165
 
158
166
  **``joyent_verify_peer``**
159
167
 
160
- Set to ``false`` to Disable SSL Certificate verification, required if the CloudAPI instance
161
- uses a self-signed cert. (Default: ``true``)
168
+ Set to ``false`` to Disable SSL Certificate verification, required if
169
+ the CloudAPI instance uses a self-signed cert. (Default: ``true``)
162
170
 
163
171
  **``provisioner``**
164
172
 
165
- Machines provisioned will be tagged with key ``provisioner`` containing the value specified.
166
- This is useful for tracking source of provisions for accounts where machines are provisioned
167
- by/from different sources / users.
173
+ Machines provisioned will be tagged with key ``provisioner`` containing
174
+ the value specified. This is useful for tracking source of provisions
175
+ for accounts where machines are provisioned by/from different sources /
176
+ users.
168
177
 
169
178
  ## Contributors
170
179
 
171
- - [Sean Omera](https://github.com/someara) - Opscode
180
+ - [Sean Omera](https://github.com/someara) - Chef Software
172
181
  - [Eric Saxby](https://github.com/sax) - Wanelo
173
182
  - [Stephen Lauck](https://github.com/stephenlauck) - ModCloth
174
183
  - [Konstantin Gredeskoul](https://github.com/kigster) - Wanelo
175
184
 
176
185
  ## Bootstrap template for smartos
177
186
 
178
- To bootstrap chef on SmartOS, use the script provided at [joyent/smartmachine_cookbooks](https://github.com/joyent/smartmachine_cookbooks)
187
+ To bootstrap chef on SmartOS, use the script provided at
188
+ [joyent/smartmachine_cookbooks](https://github.com/joyent/smartmachine_cookbooks)
179
189
  which sets up chef-client with SMF and installs the basic essentials.
180
190
 
181
191
  ## License
182
192
 
183
- Copyright 2012 Joyent, Inc
193
+ Copyright 2015 Joyent, Inc
184
194
 
185
195
  Author: Kevin Chan <kevin@joyent.com>
186
196
 
@@ -7,10 +7,11 @@ Gem::Specification.new do |s|
7
7
  s.version = KnifeJoyent::VERSION
8
8
  s.has_rdoc = true
9
9
  s.authors = ["Kevin Chan"]
10
- s.email = ["kevin@joyent.com"]
11
- s.homepage = "https://github.com/kevinykchan/knife-joyent"
10
+ s.email = ["rubygems@joyent.com"]
11
+ s.homepage = "https://github.com/joyent/knife-joyent"
12
12
  s.summary = "Joyent CloudAPI Support for Chef's Knife Command"
13
13
  s.description = s.summary
14
+ s.license = "Apache 2.0"
14
15
  s.extra_rdoc_files = ["README.md", "LICENSE"]
15
16
 
16
17
  s.files = `git ls-files`.split("\n")
@@ -20,7 +21,7 @@ Gem::Specification.new do |s|
20
21
  s.add_dependency "fog", '~> 1.23'
21
22
  s.add_dependency "multi_json", "~> 1.7"
22
23
  s.add_dependency "joyent-cloud-pricing", ">= 1.1.0"
23
- s.add_dependency 'chef', '>= 11.16.2', '< 12.1'
24
+ s.add_dependency 'chef', '>= 11.16.2', '< 13'
24
25
  s.add_development_dependency 'rspec'
25
26
 
26
27
  s.require_paths = ["lib"]
@@ -272,7 +272,7 @@ class Chef
272
272
  end
273
273
 
274
274
  # src: https://github.com/chef/knife-ec2/blob/master/lib/chef/knife/ec2_server_create.rb#L741-L770
275
- def determine_ssh_gateway
275
+ def determine_ssh_gateway(hostname)
276
276
  # ssh_gateway config takes precedence over derived value
277
277
  if config[:ssh_gateway]
278
278
  Chef::Log.debug("Using ssh gateway #{config[:ssh_gateway]} from knife config")
@@ -1,3 +1,3 @@
1
1
  module KnifeJoyent
2
- VERSION = "0.4.12"
2
+ VERSION = "0.4.14"
3
3
  end
metadata CHANGED
@@ -1,102 +1,102 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-joyent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.12
4
+ version: 0.4.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Chan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.23'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.23'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: joyent-cloud-pricing
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.1.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: chef
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 11.16.2
62
- - - "<"
62
+ - - <
63
63
  - !ruby/object:Gem::Version
64
- version: '12.1'
64
+ version: '13'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">="
69
+ - - '>='
70
70
  - !ruby/object:Gem::Version
71
71
  version: 11.16.2
72
- - - "<"
72
+ - - <
73
73
  - !ruby/object:Gem::Version
74
- version: '12.1'
74
+ version: '13'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - '>='
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  description: Joyent CloudAPI Support for Chef's Knife Command
90
90
  email:
91
- - kevin@joyent.com
91
+ - rubygems@joyent.com
92
92
  executables: []
93
93
  extensions: []
94
94
  extra_rdoc_files:
95
95
  - README.md
96
96
  - LICENSE
97
97
  files:
98
- - ".gitignore"
99
- - ".rspec"
98
+ - .gitignore
99
+ - .rspec
100
100
  - CHANGES.md
101
101
  - Gemfile
102
102
  - LICENSE
@@ -139,8 +139,9 @@ files:
139
139
  - lib/knife-joyent/fw.rb
140
140
  - lib/knife-joyent/version.rb
141
141
  - spec/spec_helper.rb
142
- homepage: https://github.com/kevinykchan/knife-joyent
143
- licenses: []
142
+ homepage: https://github.com/joyent/knife-joyent
143
+ licenses:
144
+ - Apache 2.0
144
145
  metadata: {}
145
146
  post_install_message:
146
147
  rdoc_options: []
@@ -148,17 +149,17 @@ require_paths:
148
149
  - lib
149
150
  required_ruby_version: !ruby/object:Gem::Requirement
150
151
  requirements:
151
- - - ">="
152
+ - - '>='
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  required_rubygems_version: !ruby/object:Gem::Requirement
155
156
  requirements:
156
- - - ">="
157
+ - - '>='
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0'
159
160
  requirements: []
160
161
  rubyforge_project:
161
- rubygems_version: 2.4.5
162
+ rubygems_version: 2.0.3
162
163
  signing_key:
163
164
  specification_version: 4
164
165
  summary: Joyent CloudAPI Support for Chef's Knife Command