chef-fork 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/fork/commands/bootstrap.rb +5 -0
- data/lib/chef/fork/commands/ssh.rb +7 -0
- data/lib/chef/fork/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: 27ab8b8ac21df3a0d5b098212c5ffbeb9e04d451
|
4
|
+
data.tar.gz: 36b026de407cc595256b0e3e6c48479ed8eaa1fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ded002d6b1c0f3f4765b3f2ef53a8841abf2cbfad90f2b44dc11844a3303fa33eec65a5add1202e56394e89af8b53b66ffc746dfb5ede4ce671fbbc2e0e10f3e
|
7
|
+
data.tar.gz: 3ed37a840b18dec190520d9c095aeb8bd55b46cbda682cac6990057e2ae4ad55d32e2c06a0659091347377b0e31e4dc4916083ba470681e7839d380077f804b4
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# -*- coding: utf-8 -*-
|
3
3
|
|
4
4
|
require "chef"
|
5
|
+
require "chef/config"
|
5
6
|
require "chef/knife/core/bootstrap_context"
|
6
7
|
require "erubis"
|
7
8
|
require "json"
|
@@ -36,10 +37,12 @@ class Chef
|
|
36
37
|
|
37
38
|
optparse.on("--bootstrap-version VERSION", "The version of Chef to install") do |value|
|
38
39
|
options[:bootstrap_version] = value
|
40
|
+
Chef::Config[:knife][:bootstrap_version] = value
|
39
41
|
end
|
40
42
|
|
41
43
|
optparse.on("--bootstrap-proxy PROXY_URL", "The proxy server for the node being bootstrapped") do |value|
|
42
44
|
options[:bootstrap_proxy] = value
|
45
|
+
Chef::Config[:knife][:bootstrap_proxy] = value
|
43
46
|
end
|
44
47
|
|
45
48
|
optparse.on("-d DISTRO", "--distro DISTRO", "Bootstrap a distro using a template") do |value|
|
@@ -64,10 +67,12 @@ class Chef
|
|
64
67
|
|
65
68
|
optparse.on("-s SECRET", "--secret SECRET", "The secret key to use to encrypt data bag item values") do |value|
|
66
69
|
options[:secret] = value
|
70
|
+
Chef::Config[:knife][:secret] = value
|
67
71
|
end
|
68
72
|
|
69
73
|
optparse.on("--secret-file SECRET_FILE", "A file containing the secret key to use to encrypt data bag item values") do |value|
|
70
74
|
options[:secret_file] = value
|
75
|
+
Chef::Config[:knife][:secret_file] = value
|
71
76
|
end
|
72
77
|
end
|
73
78
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- coding: utf-8 -*-
|
3
3
|
|
4
|
+
require "chef/config"
|
4
5
|
require "shellwords"
|
5
6
|
require "chef/fork/commands"
|
6
7
|
|
@@ -32,26 +33,32 @@ class Chef
|
|
32
33
|
|
33
34
|
optparse.on("-x USERNAME", "--ssh-user USERNAME", "The ssh username") do |value|
|
34
35
|
options[:ssh_user] = value
|
36
|
+
Chef::Config[:knife][:ssh_user] = value
|
35
37
|
end
|
36
38
|
|
37
39
|
optparse.on("-p PORT", "--ssh-port PORT", "The ssh port") do |value|
|
38
40
|
options[:ssh_port] = value
|
41
|
+
Chef::Config[:knife][:ssh_port] = value
|
39
42
|
end
|
40
43
|
|
41
44
|
optparse.on("-G GATEWAY", "--ssh-gateway GATEWAY", "The ssh gateway") do |value|
|
42
45
|
options[:ssh_gateway] = value
|
46
|
+
Chef::Config[:knife][:ssh_gateway] = value
|
43
47
|
end
|
44
48
|
|
45
49
|
optparse.on("-A", "--[no-]forward-agent", "Enable SSH agent forwarding") do |value|
|
46
50
|
options[:forward_agent] = value
|
51
|
+
Chef::Config[:knife][:forward_agent] = value
|
47
52
|
end
|
48
53
|
|
49
54
|
optparse.on("-i IDENTITY_FILE", "--identity-file IDENTITY_FILE") do |value|
|
50
55
|
options[:identity_file] = value
|
56
|
+
Chef::Config[:knife][:identity_file] = value
|
51
57
|
end
|
52
58
|
|
53
59
|
optparse.on("--[no-]host-key-verify", "Verify host key, disabled by default") do |value|
|
54
60
|
options[:host_key_verify] = value
|
61
|
+
Chef::Config[:knife][:host_key_verify] = value
|
55
62
|
end
|
56
63
|
|
57
64
|
optparse.on("--[no-]dry-run", "Don't take action, only print what would happen") do |value|
|
data/lib/chef/fork/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-fork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yamashita Yuu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|