knife-zero 1.1.2 → 1.1.3

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: b4f417037c797a6cf4921577c191829666804d2f
4
- data.tar.gz: 824e43c64afbe0e7eeb9c2a67794eef97f0d2967
3
+ metadata.gz: fe277e202a431b5550d53d94a074b05f2b9bfdc3
4
+ data.tar.gz: fdfb3c66fa15928b6ad189d711d7a9f235e09126
5
5
  SHA512:
6
- metadata.gz: 7e4ad66a243415814429987f81aab3d329522e43a1e15bdb5719ec46250d5138eb72420c450fb09ab357b62f73ed62f898f8e20082b9417a51c24a97504cfb43
7
- data.tar.gz: ca56dbb596b41ac23dec1f49cd8a8715eaa390e8f481702b7a819e8ad5c8116493bc9cad328b1de6018c4a3f8a824d7fb29237de0fd44071c7e420128e5ab834
6
+ metadata.gz: 8d683f8f4c1368c6abc7d85fc7cf02b3ecd2bd3fdab2f69a432ee8f267d97109b2c4a80fd5c9606c6c86574c57c319d47aaaabac40bc06e554eeb2e26af63e97
7
+ data.tar.gz: 1f2c039b2f8295bc2b0c0a368476553c3f03167895c3ea3975c4d4e3fa3789a2320cd5a49d17b73cd5ad1c0d7dac2f42c75a6d8e0621550967aacf9065999a7c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog of knife-zero
2
2
 
3
+ ## v1.1.3
4
+
5
+ - Feature: allow plural bootstrapping
6
+
3
7
  ## v1.1.2
4
8
 
5
9
  - Bugfix: delete version line from bootstrap template
data/README.md CHANGED
@@ -31,6 +31,14 @@ Or install it yourself as:
31
31
 
32
32
  $ gem install knife-zero
33
33
 
34
+ ### With Chef-DK
35
+
36
+ Install via `chef gem` subcommand.
37
+
38
+ ```
39
+ $ chef gem install knife-zero
40
+ ```
41
+
34
42
  ## Usage
35
43
 
36
44
  ```
@@ -177,6 +185,13 @@ e.g.) `bundle install --path vendor/bundle --binstubs`
177
185
  `./bin/knife zero bootstrap host.example.com [-r "${your-run-list}"]`
178
186
  1. chef-client will run using resources on local chef-repo.
179
187
 
188
+ ### Need test on Vagrant ?
189
+
190
+ You can test cookbooks easily by Test-Kitchen before manage remote nodes instead of using knife-zero for vagrant VM.
191
+
192
+ See [Getting Started knife-zero with test-kitchen](https://github.com/higanworks/knife-zero-with-kitchen).
193
+
194
+
180
195
  ## Contributing
181
196
 
182
197
  1. Fork it ( https://github.com/[my-github-username]/knife-zero/fork )
@@ -11,13 +11,13 @@ class Chef
11
11
  def ssh_command(command, subsession=nil)
12
12
  chef_zero_port = config[:chef_zero_port] ||
13
13
  Chef::Config[:knife][:chef_zero_port] ||
14
- 8889
14
+ URI.parse(Chef::Config.chef_server_url).port
15
15
  chef_zero_host = config[:chef_zero_host] ||
16
16
  Chef::Config[:knife][:chef_zero_host] ||
17
17
  '127.0.0.1'
18
18
  (subsession || session).servers.each do |server|
19
19
  session = server.session(true)
20
- session.forward.remote(8889, chef_zero_host, chef_zero_port)
20
+ session.forward.remote(chef_zero_port, chef_zero_host, chef_zero_port)
21
21
  end
22
22
  super
23
23
  end
@@ -10,7 +10,7 @@ class Chef
10
10
  s = "#{client_path} -j /etc/chef/first-boot.json"
11
11
  s << ' -l debug' if @config[:verbosity] and @config[:verbosity] >= 2
12
12
  s << " -E #{bootstrap_environment}" if ::Chef::VERSION.to_f != 0.9 # only use the -E option on Chef 0.10+
13
- s << " -S http://127.0.0.1:8889"
13
+ s << " -S http://127.0.0.1:#{URI.parse(Chef::Config.chef_server_url).port}"
14
14
  s << " -W" if @config[:why_run]
15
15
  s
16
16
  end
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-24 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler