chef 0.10.0.beta.8 → 0.10.0.beta.9
Sign up to get free protection for your applications and to get access to all the features.
- data/distro/common/html/knife-bootstrap.1.html +69 -10
- data/distro/common/html/knife-client.1.html +25 -22
- data/distro/common/html/knife-configure.1.html +1 -1
- data/distro/common/html/knife-cookbook-site.1.html +91 -19
- data/distro/common/html/knife-cookbook.1.html +216 -76
- data/distro/common/html/knife-data-bag.1.html +1 -1
- data/distro/common/html/knife-environment.1.html +177 -3
- data/distro/common/html/knife-exec.1.html +44 -3
- data/distro/common/html/knife-index.1.html +1 -1
- data/distro/common/html/knife-node.1.html +5 -3
- data/distro/common/html/knife-recipe.1.html +1 -1
- data/distro/common/html/knife-role.1.html +83 -19
- data/distro/common/html/knife-search.1.html +43 -2
- data/distro/common/html/knife-ssh.1.html +57 -2
- data/distro/common/html/knife-status.1.html +33 -2
- data/distro/common/html/knife-tag.1.html +45 -1
- data/distro/common/html/knife.1.html +94 -161
- data/distro/common/html/shef.1.html +283 -0
- data/distro/common/man/man1/knife-bootstrap.1 +56 -4
- data/distro/common/man/man1/knife-client.1 +12 -11
- data/distro/common/man/man1/knife-configure.1 +1 -1
- data/distro/common/man/man1/knife-cookbook-site.1 +64 -22
- data/distro/common/man/man1/knife-cookbook.1 +200 -122
- data/distro/common/man/man1/knife-data-bag.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +167 -2
- data/distro/common/man/man1/knife-exec.1 +36 -3
- data/distro/common/man/man1/knife-index.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +2 -1
- data/distro/common/man/man1/knife-role.1 +48 -24
- data/distro/common/man/man1/knife-search.1 +27 -3
- data/distro/common/man/man1/knife-ssh.1 +43 -2
- data/distro/common/man/man1/knife-status.1 +14 -2
- data/distro/common/man/man1/knife-tag.1 +32 -2
- data/distro/common/man/man1/knife.1 +91 -186
- data/distro/common/man/man1/shef.1 +237 -26
- data/distro/common/markdown/man1/knife-bootstrap.mkd +57 -7
- data/distro/common/markdown/man1/knife-client.mkd +19 -17
- data/distro/common/markdown/man1/knife-cookbook-site.mkd +63 -15
- data/distro/common/markdown/man1/knife-cookbook.mkd +220 -103
- data/distro/common/markdown/man1/knife-environment.mkd +144 -1
- data/distro/common/markdown/man1/knife-exec.mkd +29 -1
- data/distro/common/markdown/man1/knife-node.mkd +1 -1
- data/distro/common/markdown/man1/knife-role.mkd +36 -30
- data/distro/common/markdown/man1/knife-search.mkd +0 -1
- data/distro/common/markdown/man1/knife-ssh.mkd +0 -2
- data/distro/common/markdown/man1/knife-status.mkd +0 -2
- data/distro/common/markdown/man1/knife-tag.mkd +31 -0
- data/distro/common/markdown/man1/knife.mkd +93 -165
- data/distro/common/markdown/man1/shef.mkd +189 -0
- data/lib/chef/api_client.rb +36 -35
- data/lib/chef/application/knife.rb +1 -1
- data/lib/chef/client.rb +1 -0
- data/lib/chef/cookbook/cookbook_version_loader.rb +29 -7
- data/lib/chef/cookbook_uploader.rb +55 -36
- data/lib/chef/cookbook_version.rb +3 -1
- data/lib/chef/couchdb.rb +0 -1
- data/lib/chef/knife/cookbook_list.rb +1 -1
- data/lib/chef/knife/cookbook_show.rb +1 -0
- data/lib/chef/knife/core/generic_presenter.rb +3 -3
- data/lib/chef/knife/help.rb +6 -2
- data/lib/chef/knife/tag_create.rb +26 -5
- data/lib/chef/knife/tag_delete.rb +34 -5
- data/lib/chef/knife/tag_list.rb +24 -6
- data/lib/chef/node.rb +1 -0
- data/lib/chef/role.rb +1 -0
- data/lib/chef/shef.rb +1 -0
- data/lib/chef/version.rb +1 -1
- metadata +4 -4
- data/distro/common/man/man1/knife-recipe.1 +0 -13
- data/distro/common/markdown/man1/knife-recipe.mkd +0 -24
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-ENVIRONMENT" "1" "April 2011" "Chef 0.10.0.beta.
|
4
|
+
.TH "KNIFE\-ENVIRONMENT" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-environment\fR \- Define cookbook policies for the environments in your infrastructure
|
@@ -9,5 +9,170 @@
|
|
9
9
|
.SH "SYNOPSIS"
|
10
10
|
\fBknife\fR \fBenvironment\fR \fIsub\-command\fR \fI(options)\fR
|
11
11
|
.
|
12
|
-
.SH "
|
12
|
+
.SH "SUBCOMMANDS"
|
13
|
+
Environment subcommands follow a basic create, read, update, delete (CRUD) pattern\. The following subcommands are available:
|
14
|
+
.
|
15
|
+
.SH "CREATE"
|
16
|
+
\fBknife environment create\fR \fIenvironment\fR \fI(options)\fR
|
17
|
+
.
|
18
|
+
.TP
|
19
|
+
\fB\-d\fR, \fB\-\-description DESCRIPTION\fR
|
20
|
+
The value of the description field\.
|
21
|
+
.
|
22
|
+
.P
|
23
|
+
Create a new environment object on the Chef Server\. The envrionment will be opened in the text editor for editing prior to creation if the \-n option is not present\.
|
24
|
+
.
|
25
|
+
.SH "DELETE"
|
26
|
+
\fBknife environment delete\fR \fIenvironment\fR \fI(options)\fR
|
27
|
+
.
|
28
|
+
.P
|
29
|
+
Destroy an environment on the Chef Server\. A prompt for confirmation will be displayed if the \-y options is not given\.
|
30
|
+
.
|
31
|
+
.SH "EDIT"
|
32
|
+
\fBknife environment edit\fR \fIenvironment\fR \fI(options)\fR
|
33
|
+
.
|
34
|
+
.P
|
35
|
+
Fetch \fIenvironment\fR and display it in the text editor for editing\. The environment will be saved to the Chef Server when the editing session exits\.
|
36
|
+
.
|
37
|
+
.SH "FROM FILE"
|
38
|
+
\fBknife environment from file\fR \fIfile\fR \fI(options)\fR
|
39
|
+
.
|
40
|
+
.P
|
41
|
+
Create or update an environment from the JSON or Ruby format \fIfile\fR\. See \fBformat\fR for the proper format of this file\.
|
42
|
+
.
|
43
|
+
.SH "LIST"
|
44
|
+
\fBknife environment list\fR \fI(options)\fR * \fB\-w\fR, \fB\-\-with\-uri\fR:
|
45
|
+
.
|
46
|
+
.IP "" 4
|
47
|
+
.
|
48
|
+
.nf
|
49
|
+
|
50
|
+
Show the resource URI for each environment
|
51
|
+
.
|
52
|
+
.fi
|
53
|
+
.
|
54
|
+
.IP "" 0
|
55
|
+
.
|
56
|
+
.SH "SHOW"
|
57
|
+
\fBknife environment show\fR \fIenvironment\fR \fI(options)\fR
|
58
|
+
.
|
59
|
+
.SH "DESCRIPTION"
|
60
|
+
Environments provide a means to apply policies to hosts in your infrastructure based on business function\. For example, you may have a separate copy of your infrastructure called "dev" that runs the latest version of your application and should use the newest versions of your cookbooks when configuring systems, and a production instance of your infrastructure where you wish to update code and cookbooks in a more controlled fashion\. In Chef, this function is implemented with \fIenvironments\fR\.
|
61
|
+
.
|
62
|
+
.P
|
63
|
+
Environments contain two major components: a set of cookbook version constraints and environment attributes\.
|
64
|
+
.
|
65
|
+
.SH "SYNTAX"
|
66
|
+
A cookbook version constraint is comprised of a \fIcookbook name\fR and a \fIversion constraint\fR\. The \fIcookbook name\fR is the name of a cookbook in your system, and the \fIversion constraint\fR is a String describing the version(s) of that cookbook allowed in the environment\. Only one \fIversion constraint\fR is supported for a given \fIcookbook name\fR\.
|
67
|
+
.
|
68
|
+
.P
|
69
|
+
The exact syntax used to define a cookbook version constraint varies depending on whether you use the JSON format or the Ruby format\. In the JSON format, the cookbook version constraints for an environment are represented as a single JSON object, like this:
|
70
|
+
.
|
71
|
+
.IP "" 4
|
72
|
+
.
|
73
|
+
.nf
|
74
|
+
|
75
|
+
{"apache2": ">= 1\.5\.0"}
|
76
|
+
.
|
77
|
+
.fi
|
78
|
+
.
|
79
|
+
.IP "" 0
|
80
|
+
.
|
81
|
+
.P
|
82
|
+
In the Ruby format, the cookbook version contraints for an environment are represented as a Ruby Hash, like this:
|
83
|
+
.
|
84
|
+
.IP "" 4
|
85
|
+
.
|
86
|
+
.nf
|
13
87
|
|
88
|
+
{"apache2" => ">= 1\.5\.0"}
|
89
|
+
.
|
90
|
+
.fi
|
91
|
+
.
|
92
|
+
.IP "" 0
|
93
|
+
.
|
94
|
+
.P
|
95
|
+
A \fIversion number\fR is a String comprised of two or three digits separated by a dot (\.) character, or in other words, strings of the form "major\.minor" or "major\.minor\.patch"\. "1\.2" and "1\.2\.3" are examples of valid version numbers\. Version numbers containing more than three digits or alphabetic characters are not supported\.
|
96
|
+
.
|
97
|
+
.P
|
98
|
+
A \fIversion constraint\fR String is composed of an \fIoperator\fR and a \fIversion number\fR\. The following operators are available:
|
99
|
+
.
|
100
|
+
.TP
|
101
|
+
\fB= VERSION\fR
|
102
|
+
Equality\. Only the exact version specified may be used\.
|
103
|
+
.
|
104
|
+
.TP
|
105
|
+
\fB> VERSION\fR
|
106
|
+
Greater than\. Only versions greater than \fBVERSION\fR may be used\.
|
107
|
+
.
|
108
|
+
.TP
|
109
|
+
\fB>= VERSION\fR
|
110
|
+
Greater than or equal to\. Only versions equal to VERSION or greater may be used\.
|
111
|
+
.
|
112
|
+
.TP
|
113
|
+
\fB< VERSION\fR
|
114
|
+
Less than\. Only versions less than VERSION may be used\.
|
115
|
+
.
|
116
|
+
.TP
|
117
|
+
\fB<= VERSION\fR
|
118
|
+
Less than or equal to\. Only versions lesser or equal to VERSION may be used\.
|
119
|
+
.
|
120
|
+
.TP
|
121
|
+
\fB~> VERSION\fR
|
122
|
+
Pessimistic greater than\. Depending on the number of components in the given VERSION, the constraint will be optimistic about future minor or patch revisions only\. For example, \fB~> 1\.1\fR will match any version less than \fB2\.0\fR and greater than or equal to \fB1\.1\.0\fR, whereas \fB~> 2\.0\.5\fR will match any version less than \fB2\.1\.0\fR and greater than or equal to \fB2\.0\.5\fR\.
|
123
|
+
.
|
124
|
+
.SH "FORMAT"
|
125
|
+
The JSON format of an envioronment is as follows:
|
126
|
+
.
|
127
|
+
.IP "" 4
|
128
|
+
.
|
129
|
+
.nf
|
130
|
+
|
131
|
+
{
|
132
|
+
"name": "dev",
|
133
|
+
"description": "The development environment",
|
134
|
+
"cookbook_versions": {
|
135
|
+
"couchdb": "= 11\.0\.0"
|
136
|
+
},
|
137
|
+
"json_class": "Chef::Environment",
|
138
|
+
"chef_type": "environment",
|
139
|
+
"default_attributes": {
|
140
|
+
"apache2": { "listen_ports": [ "80", "443" ] }
|
141
|
+
},
|
142
|
+
"override_attributes": {
|
143
|
+
"aws_s3_bucket": "production"
|
144
|
+
}
|
145
|
+
}
|
146
|
+
.
|
147
|
+
.fi
|
148
|
+
.
|
149
|
+
.IP "" 0
|
150
|
+
.
|
151
|
+
.P
|
152
|
+
The Ruby format of an environment is as follows:
|
153
|
+
.
|
154
|
+
.IP "" 4
|
155
|
+
.
|
156
|
+
.nf
|
157
|
+
|
158
|
+
name "dev"
|
159
|
+
description "The development environment"
|
160
|
+
cookbook_versions "couchdb" => "= 11\.0\.0"
|
161
|
+
default_attributes "apache2" => { "listen_ports" => [ "80", "443" ] }
|
162
|
+
override_attributes "aws_s3_bucket" => "production"
|
163
|
+
.
|
164
|
+
.fi
|
165
|
+
.
|
166
|
+
.IP "" 0
|
167
|
+
.
|
168
|
+
.SH "SEE ALSO"
|
169
|
+
\fBknife\-node(1)\fR \fBknife\-cookbook(1)\fR \fBknife\-role(1)\fR \fIhttp://wiki\.opscode\.com/display/chef/Environments\fR \fIhttp://wiki\.opscode\.com/display/chef/Version+Constraints\fR
|
170
|
+
.
|
171
|
+
.SH "AUTHOR"
|
172
|
+
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
|
173
|
+
.
|
174
|
+
.SH "DOCUMENTATION"
|
175
|
+
This manual page was written by Daniel DeLeo \fIdan@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
|
176
|
+
.
|
177
|
+
.SH "CHEF"
|
178
|
+
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-EXEC" "1" "April 2011" "Chef 0.10.0.beta.
|
4
|
+
.TH "KNIFE\-EXEC" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-exec\fR \- Run user scripts using the Chef API DSL
|
@@ -9,5 +9,38 @@
|
|
9
9
|
.SH "SYNOPSIS"
|
10
10
|
\fBknife\fR \fBexec\fR \fI(options)\fR
|
11
11
|
.
|
12
|
-
.
|
13
|
-
|
12
|
+
.TP
|
13
|
+
\fB\-E\fR, \fB\-\-exec CODE\fR
|
14
|
+
Provide a snippet of code to evaluate on the command line
|
15
|
+
.
|
16
|
+
.SH "DESCRIPTION"
|
17
|
+
\fBknife exec\fR runs arbitrary ruby scripts in a context similar to that of the shef(1) DSL\. See the shef documentation for a description of the commands available\.
|
18
|
+
.
|
19
|
+
.SH "EXAMPLES"
|
20
|
+
.
|
21
|
+
.TP
|
22
|
+
Make an API call against an arbitrary endpoint
|
23
|
+
knife exec \-E \'api\.get("nodes/fluke\.localdomain/cookbooks")\'
|
24
|
+
.
|
25
|
+
.br
|
26
|
+
=> list of cookbooks for the node \fIfluke\.localdomain\fR
|
27
|
+
.
|
28
|
+
.TP
|
29
|
+
Remove the role \fIobsolete\fR from all nodes
|
30
|
+
knife exec \-E \'nodes\.transform(:all){|n| n\.run_list\.delete("role[obsolete]")}\'
|
31
|
+
.
|
32
|
+
.TP
|
33
|
+
Generate the expanded run list for hosts in the \fBwebserver\fR role
|
34
|
+
knife exec \-E \'nodes\.find(:roles => "webserver") {|n| n\.expand!; n[:recipes]}\'
|
35
|
+
.
|
36
|
+
.SH "SEE ALSO"
|
37
|
+
\fBshef(1)\fR
|
38
|
+
.
|
39
|
+
.SH "AUTHOR"
|
40
|
+
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
|
41
|
+
.
|
42
|
+
.SH "DOCUMENTATION"
|
43
|
+
This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
|
44
|
+
.
|
45
|
+
.SH "CHEF"
|
46
|
+
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-INDEX" "1" "April 2011" "Chef 0.10.0.beta.
|
4
|
+
.TH "KNIFE\-INDEX" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-index\fR \- Rebuild the search index on a Chef Server
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-NODE" "1" "April 2011" "Chef 0.10.0.beta.
|
4
|
+
.TH "KNIFE\-NODE" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-node\fR \- Manage the hosts in your infrastructure
|
@@ -19,6 +19,7 @@ When a host communicates with a Chef Server, it authenticates using its \fBnode_
|
|
19
19
|
By default \fBchef\-client\fR(8) will create a node using the FQDN of the host for the node name, though this may be overridden by configuration settings\.
|
20
20
|
.
|
21
21
|
.SH "NODE SUB\-COMMANDS"
|
22
|
+
The following \fBnode\fR subcommands are available:
|
22
23
|
.
|
23
24
|
.SH "BULK DELETE"
|
24
25
|
\fBknife node bulk delete\fR \fIregex\fR \fI(options)\fR
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-ROLE" "1" "April 2011" "Chef 0.10.0.beta.
|
4
|
+
.TH "KNIFE\-ROLE" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-role\fR \- Group common configuration settings
|
@@ -10,13 +10,30 @@
|
|
10
10
|
\fBknife\fR \fBrole\fR \fIsub\-command\fR \fI(options)\fR
|
11
11
|
.
|
12
12
|
.SH "ROLE SUB\-COMMANDS"
|
13
|
-
\fBrole
|
13
|
+
The following \fBrole\fR subcommands are available:
|
14
|
+
.
|
15
|
+
.SH "LIST"
|
16
|
+
\fBknife role list\fR \fI(options)\fR
|
17
|
+
.
|
18
|
+
.TP
|
19
|
+
\fB\-w\fR, \fB\-\-with\-uri\fR
|
20
|
+
Show corresponding URIs
|
14
21
|
.
|
15
22
|
.P
|
16
|
-
|
23
|
+
List roles\.
|
24
|
+
.
|
25
|
+
.SH "SHOW"
|
26
|
+
\fBknife role show ROLE\fR \fI(options)\fR
|
27
|
+
.
|
28
|
+
.TP
|
29
|
+
\fB\-a\fR, \fB\-\-attribute ATTR\fR
|
30
|
+
Show only one attribute
|
17
31
|
.
|
18
32
|
.P
|
19
|
-
|
33
|
+
Show a specific role\.
|
34
|
+
.
|
35
|
+
.SH "CREATE"
|
36
|
+
\fBknife role create ROLE\fR \fI(options)\fR
|
20
37
|
.
|
21
38
|
.TP
|
22
39
|
\fB\-d\fR, \fB\-\-description\fR
|
@@ -25,40 +42,47 @@ The role description
|
|
25
42
|
.P
|
26
43
|
Create a new role\.
|
27
44
|
.
|
28
|
-
.
|
29
|
-
\
|
45
|
+
.SH "EDIT"
|
46
|
+
\fBknife role edit ROLE\fR \fI(options)\fR
|
30
47
|
.
|
31
48
|
.P
|
32
|
-
|
49
|
+
Edit a role\.
|
33
50
|
.
|
34
|
-
.
|
35
|
-
\
|
51
|
+
.SH "FROM FILE"
|
52
|
+
\fBknife role from file FILE\fR \fI(options)\fR
|
36
53
|
.
|
37
54
|
.P
|
38
|
-
|
55
|
+
Create or update a role from a role Ruby DSL (\fB\.rb\fR) or JSON file\.
|
39
56
|
.
|
40
|
-
.
|
41
|
-
\
|
57
|
+
.SH "DELETE"
|
58
|
+
\fBknife role delete ROLE\fR \fI(options)\fR
|
42
59
|
.
|
43
60
|
.P
|
44
|
-
|
61
|
+
Delete a role\.
|
62
|
+
.
|
63
|
+
.SH "BULK DELETE"
|
64
|
+
\fBknife role bulk delete REGEX\fR \fI(options)\fR
|
45
65
|
.
|
46
66
|
.P
|
47
|
-
|
67
|
+
Delete roles on the Chef Server based on a regular expression\. The regular expression (\fIREGEX\fR) should be in quotes, not in //\'s\.
|
48
68
|
.
|
49
|
-
.
|
50
|
-
\
|
51
|
-
Show corresponding URIs
|
69
|
+
.SH "DESCRIPTION"
|
70
|
+
Roles provide a mechanism to group repeated configuration settings\. Roles are data structures that contain \fBdefault_attributes\fR, and \fBoverride_attributes\fR, which are nested hashes of configuration settings, and a \fBrun_list\fR, which is an ordered list of recipes and roles that should be applied to a host by chef\-client\.
|
52
71
|
.
|
53
72
|
.P
|
54
|
-
|
73
|
+
\fBdefault_attributes\fR will be overridden if they conflict with a value on a node that includes the role\. Conversely, \fBoverride_attributes\fR will override any values set on nodes that apply them\.
|
55
74
|
.
|
56
75
|
.P
|
57
|
-
\
|
76
|
+
When \fBchef\-client\fR(8) configures a host, it will "expand" the \fBrun_list\fR included in that host\'s node data\. The expansion process will recursively replace any roles in the run_list with that role\'s run_list\.
|
58
77
|
.
|
59
|
-
.
|
60
|
-
\
|
61
|
-
Show only one attribute
|
78
|
+
.SH "SEE ALSO"
|
79
|
+
\fBknife\-node(1)\fR \fBknife\-environment(1)\fR \fIhttp://wiki\.opscode\.com/display/chef/Roles\fR \fIhttp://wiki\.opscode\.com/display/chef/Attributes\fR
|
62
80
|
.
|
63
|
-
.
|
64
|
-
|
81
|
+
.SH "AUTHOR"
|
82
|
+
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
|
83
|
+
.
|
84
|
+
.SH "DOCUMENTATION"
|
85
|
+
This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
|
86
|
+
.
|
87
|
+
.SH "CHEF"
|
88
|
+
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-SEARCH" "1" "April 2011" "Chef 0.10.0.beta.
|
4
|
+
.TH "KNIFE\-SEARCH" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-search\fR \- Find objects on a Chef Server by query
|
@@ -33,5 +33,29 @@ The order to sort the results in
|
|
33
33
|
\fB\-b\fR, \fB\-\-start ROW\fR
|
34
34
|
The row to start returning results at
|
35
35
|
.
|
36
|
-
.
|
37
|
-
|
36
|
+
.TP
|
37
|
+
\fB\-m\fR, \fB\-\-medium\fR
|
38
|
+
Display medium sized output when searching nodes using the default summary format
|
39
|
+
.
|
40
|
+
.TP
|
41
|
+
\fB\-l\fR, \fB\-\-long\fR
|
42
|
+
Display long output when searching nodes using the default summary format
|
43
|
+
.
|
44
|
+
.SH "DESCRIPTION"
|
45
|
+
Search indexes are a feature of the Chef Server and the search sub\-command allows querying any of the available indexes using SOLR query syntax\. The following data types are indexed for search: * \fInode\fR * \fIrole\fR * \fIenvironment\fR * \fIdata bag\fR
|
46
|
+
.
|
47
|
+
.SH "SYNTAX"
|
48
|
+
.
|
49
|
+
.SH "EXAMPLES"
|
50
|
+
.
|
51
|
+
.SH "SEE ALSO"
|
52
|
+
\fBknife\-ssh\fR(1) \fIhttp://wiki\.opscode\.com/display/chef/Attributes\fR
|
53
|
+
.
|
54
|
+
.SH "AUTHOR"
|
55
|
+
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
|
56
|
+
.
|
57
|
+
.SH "DOCUMENTATION"
|
58
|
+
This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
|
59
|
+
.
|
60
|
+
.SH "CHEF"
|
61
|
+
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-SSH" "1" "April 2011" "Chef 0.10.0.beta.
|
4
|
+
.TH "KNIFE\-SSH" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-ssh\fR \- Run a command or interactive session on multiple remote hosts
|
@@ -29,5 +29,46 @@ The ssh password
|
|
29
29
|
\fB\-x\fR, \fB\-\-ssh\-user USERNAME\fR
|
30
30
|
The ssh username
|
31
31
|
.
|
32
|
-
.
|
32
|
+
.SH "DESCRIPTION"
|
33
33
|
The \fIssh\fR sub\-command opens an ssh session to each of the nodes in the search results of the \fIQUERY\fR\. This sub\-command requires that the net\-ssh\-multi and highline Ruby libraries are installed\. On Debian systems, these are the libnet\-ssh\-multi\-ruby and libhighline\-ruby packages\. They can also be installed as RubyGems (net\-ssh\-multi and highline, respectively)\.
|
34
|
+
.
|
35
|
+
.SH "TERMINAL MULTIPLEXING AND TERMINAL TAB SUPPORT"
|
36
|
+
\fBknife ssh\fR integrates with several terminal multiplexer programs to provide a more convenient means of managing multiple ssh sessions\. When the \fICOMMAND\fR option matches one of these, \fBknife ssh\fR will create multiple interactive ssh sessions running locally in the terminal multiplexer instead of invoking the command on the remote host\.
|
37
|
+
.
|
38
|
+
.P
|
39
|
+
The available multiplexers are: * \fBinteractive\fR:
|
40
|
+
.
|
41
|
+
.IP "" 4
|
42
|
+
.
|
43
|
+
.nf
|
44
|
+
|
45
|
+
A built\-in multiplexer\. `interactive` supports running commands on a
|
46
|
+
subset of the connected hosts in parallel
|
47
|
+
.
|
48
|
+
.fi
|
49
|
+
.
|
50
|
+
.IP "" 0
|
51
|
+
.
|
52
|
+
.TP
|
53
|
+
\fBscreen\fR(1)
|
54
|
+
Runs ssh interactively inside \fBscreen\fR\. ~/\.screenrc will be sourced if it exists\.
|
55
|
+
.
|
56
|
+
.TP
|
57
|
+
\fBtmux\fR(1)
|
58
|
+
Runs ssh interactively inside tmux\.
|
59
|
+
.
|
60
|
+
.TP
|
61
|
+
\fBmacterm\fR (Mac OS X only)
|
62
|
+
Opens a Terminal\.app window and creates a tab for each ssh session\. You must install the rb\-appscript gem before you can use this option\.
|
63
|
+
.
|
64
|
+
.SH "SEE ALSO"
|
65
|
+
\fBknife\-search\fR(1)
|
66
|
+
.
|
67
|
+
.SH "AUTHOR"
|
68
|
+
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
|
69
|
+
.
|
70
|
+
.SH "DOCUMENTATION"
|
71
|
+
This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
|
72
|
+
.
|
73
|
+
.SH "CHEF"
|
74
|
+
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|