knife-zero 1.1.2 → 1.1.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +15 -0
- data/lib/knife-zero/bootstrap_ssh.rb +2 -2
- data/lib/knife-zero/core/bootstrap_context.rb +1 -1
- data/lib/knife-zero/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe277e202a431b5550d53d94a074b05f2b9bfdc3
|
4
|
+
data.tar.gz: fdfb3c66fa15928b6ad189d711d7a9f235e09126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d683f8f4c1368c6abc7d85fc7cf02b3ecd2bd3fdab2f69a432ee8f267d97109b2c4a80fd5c9606c6c86574c57c319d47aaaabac40bc06e554eeb2e26af63e97
|
7
|
+
data.tar.gz: 1f2c039b2f8295bc2b0c0a368476553c3f03167895c3ea3975c4d4e3fa3789a2320cd5a49d17b73cd5ad1c0d7dac2f42c75a6d8e0621550967aacf9065999a7c
|
data/CHANGELOG.md
CHANGED
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
|
-
|
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(
|
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
|
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
|
data/lib/knife-zero/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|