chef 0.10.0.beta.7 → 0.10.0.beta.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/distro/common/html/knife-bootstrap.1.html +182 -0
  2. data/distro/common/html/knife-client.1.html +216 -0
  3. data/distro/common/html/knife-configure.1.html +170 -0
  4. data/distro/common/html/knife-cookbook-site.1.html +166 -0
  5. data/distro/common/html/knife-cookbook.1.html +233 -0
  6. data/distro/common/html/knife-data-bag.1.html +234 -0
  7. data/distro/common/html/knife-environment.1.html +93 -0
  8. data/distro/common/html/knife-exec.1.html +93 -0
  9. data/distro/common/html/knife-index.1.html +125 -0
  10. data/distro/common/html/knife-node.1.html +268 -0
  11. data/distro/common/html/knife-recipe.1.html +92 -0
  12. data/distro/common/html/knife-role.1.html +136 -0
  13. data/distro/common/html/knife-search.1.html +102 -0
  14. data/distro/common/html/knife-ssh.1.html +101 -0
  15. data/distro/common/html/knife-status.1.html +97 -0
  16. data/distro/common/html/knife-tag.1.html +93 -0
  17. data/distro/common/html/knife.1.html +362 -0
  18. data/distro/common/man/man1/knife-bootstrap.1 +137 -0
  19. data/distro/common/man/man1/knife-client.1 +98 -0
  20. data/distro/common/man/man1/knife-configure.1 +88 -0
  21. data/distro/common/man/man1/knife-cookbook-site.1 +91 -0
  22. data/distro/common/man/man1/knife-cookbook.1 +242 -0
  23. data/distro/common/man/man1/knife-data-bag.1 +130 -0
  24. data/distro/common/man/man1/knife-environment.1 +13 -0
  25. data/distro/common/man/man1/knife-exec.1 +13 -0
  26. data/distro/common/man/man1/knife-index.1 +29 -0
  27. data/distro/common/man/man1/knife-node.1 +153 -0
  28. data/distro/common/man/man1/knife-recipe.1 +13 -0
  29. data/distro/common/man/man1/knife-role.1 +64 -0
  30. data/distro/common/man/man1/knife-search.1 +37 -0
  31. data/distro/common/man/man1/knife-ssh.1 +33 -0
  32. data/distro/common/man/man1/knife-status.1 +17 -0
  33. data/distro/common/man/man1/knife-tag.1 +13 -0
  34. data/distro/common/man/man1/knife.1 +346 -0
  35. data/distro/common/man/{man8/shef.8 → man1/shef.1} +0 -0
  36. data/distro/common/man/{man1/chef-server-webui.1 → man8/chef-server-webui.8} +0 -0
  37. data/distro/common/man/{man1/chef-server.1 → man8/chef-server.8} +0 -0
  38. data/distro/common/man/{man1/chef-solr.1 → man8/chef-solr.8} +0 -0
  39. data/distro/common/markdown/man1/knife-bootstrap.mkd +88 -0
  40. data/distro/common/markdown/man1/knife-client.mkd +101 -0
  41. data/distro/common/markdown/man1/knife-configure.mkd +70 -0
  42. data/distro/common/markdown/man1/knife-cookbook-site.mkd +69 -0
  43. data/distro/common/markdown/man1/knife-cookbook.mkd +136 -0
  44. data/distro/common/markdown/man1/knife-data-bag.mkd +117 -0
  45. data/distro/common/markdown/man1/knife-environment.mkd +8 -0
  46. data/distro/common/markdown/man1/knife-exec.mkd +9 -0
  47. data/distro/common/markdown/man1/knife-index.mkd +30 -0
  48. data/distro/common/markdown/man1/knife-node.mkd +147 -0
  49. data/distro/common/markdown/man1/knife-recipe.mkd +24 -0
  50. data/distro/common/markdown/man1/knife-role.mkd +79 -0
  51. data/distro/common/markdown/man1/knife-search.mkd +56 -0
  52. data/distro/common/markdown/man1/knife-ssh.mkd +64 -0
  53. data/distro/common/markdown/man1/knife-status.mkd +38 -0
  54. data/distro/common/markdown/man1/knife-tag.mkd +8 -0
  55. data/distro/common/markdown/man1/knife.mkd +261 -0
  56. data/lib/chef/cookbook/metadata.rb +76 -40
  57. data/lib/chef/cookbook_version.rb +86 -2
  58. data/lib/chef/cookbook_version_selector.rb +7 -2
  59. data/lib/chef/environment.rb +41 -0
  60. data/lib/chef/knife/configure.rb +4 -0
  61. data/lib/chef/knife/cookbook_upload.rb +4 -1
  62. data/lib/chef/knife/help.rb +98 -0
  63. data/lib/chef/rest.rb +1 -0
  64. data/lib/chef/version.rb +1 -1
  65. metadata +58 -11
  66. data/distro/common/man/man1/chef-indexer.1 +0 -42
  67. data/distro/common/man/man1/chef-solr-indexer.1 +0 -55
  68. data/distro/common/man/man8/chef-solr-rebuild.8 +0 -37
  69. data/distro/common/man/man8/knife.8 +0 -1349
  70. data/distro/common/markdown/knife.mkd +0 -865
@@ -0,0 +1,130 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-DATA\-BAG" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-data\-bag\fR \- Store arbitrary data on a Chef Server
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBdata bag\fR \fIsub\-command\fR \fI(options)\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Data bags are stores of arbitrary JSON data\. Each data bag is a collection that may contain many items\. Data Bag Items are indexed by the Chef Server and can be searched via \fBknife\-search\fR(1)\.
14
+ .
15
+ .P
16
+ Data bags are available to all nodes configured by \fBchef\-client\fR(8), and are therefore a convenient mechanism to store global information, such as lists of administrative accounts that should be configured on all hosts\.
17
+ .
18
+ .SH "DATA BAG SUB\-COMMANDS"
19
+ .
20
+ .SH "CREATE"
21
+ \fBknife data bag create\fR \fIbag name\fR [item id] \fI(options)\fR
22
+ .
23
+ .TP
24
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
25
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
26
+ .
27
+ .TP
28
+ \fB\-\-secret\-file SECRET_FILE\fR
29
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
30
+ .
31
+ .P
32
+ If \fIitem id\fR is given, creates a new, empty data bag item and opens it for editing in your editor\. The data bag will be created if it does not exist\.
33
+ .
34
+ .P
35
+ If \fIitem id\fR is not given, the data bag will be created\.
36
+ .
37
+ .SH "DELETE"
38
+ \fBknife data bag delete\fR \fIbag name\fR [item id] \fI(options)\fR
39
+ .
40
+ .P
41
+ Delete a data bag, or an item from a data bag\.
42
+ .
43
+ .SH "EDIT"
44
+ \fBknife data bag edit\fR \fIbag name\fR \fIitem id\fR \fI(options)\fR
45
+ .
46
+ .TP
47
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
48
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
49
+ .
50
+ .TP
51
+ \fB\-\-secret\-file SECRET_FILE\fR
52
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
53
+ .
54
+ .P
55
+ Edit an item in a data bag\.
56
+ .
57
+ .SH "FROM FILE"
58
+ \fBknife data bag from file\fR \fIbag name\fR \fIfile\fR \fI(options)\fR
59
+ .
60
+ .TP
61
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
62
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
63
+ .
64
+ .TP
65
+ \fB\-\-secret\-file SECRET_FILE\fR
66
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
67
+ .
68
+ .P
69
+ Load a data bag item from a JSON file\. If \fIfile\fR is a relative or absolute path to the file, that file will be used\. Otherwise, the \fIfile\fR parameter is treated as the base name of a data bag file in a Chef repository, and \fBknife\fR will search for the file in \fB\./data_bags/bag_name/file\fR\. For example \fBknife data bag from file users dan\.json\fR would attempt to load the file \fB\./data_bags/users/dan\.json\fR\.
70
+ .
71
+ .SH "LIST"
72
+ \fBknife data bag list\fR \fI(options)\fR
73
+ .
74
+ .TP
75
+ \fB\-w\fR, \fB\-\-with\-uri\fR
76
+ Show corresponding URIs
77
+ .
78
+ .P
79
+ Lists the data bags that exist on the Chef Server\.
80
+ .
81
+ .SH "SHOW"
82
+ \fBknife data bag show BAG [ITEM]\fR \fI(options)\fR
83
+ .
84
+ .TP
85
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
86
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
87
+ .
88
+ .TP
89
+ \fB\-\-secret\-file SECRET_FILE\fR
90
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
91
+ .
92
+ .P
93
+ Show a specific data bag or an item in a data bag\. The output will be formatted according to the \-\-format option\.
94
+ .
95
+ .SH "ENCRYPTION SUPPORT"
96
+ Data Bag Items may be encrypted to keep their contents secret\. This may be desireable when storing sensitive information such as database passwords, API keys, etc\.
97
+ .
98
+ .P
99
+ Data Bag Item encryption uses the AES\-256 CBC symmetric key algorithm\.
100
+ .
101
+ .P
102
+ \fBCAVEATS:\fR Keys are not encrypted; only values are encrypted\. The "id" of a Data Bag Item is not encrypted, since it is used by Chef Server to store the item in its database\. For example, given the following data bag item:
103
+ .
104
+ .IP "" 4
105
+ .
106
+ .nf
107
+
108
+ {"id": "important_passwords", "secret_password": "opensesame"}
109
+ .
110
+ .fi
111
+ .
112
+ .IP "" 0
113
+ .
114
+ .P
115
+ The key "secret_password" will be visible to an evesdropper, but the value "opensesame" will be protected\. Both the key "id" and its value "important_passwords" will be visible to an evesdropper\.
116
+ .
117
+ .P
118
+ Chef Server does not provide a secure mechanism for distributing encryption keys\.
119
+ .
120
+ .SH "SEE ALSO"
121
+ \fBknife\-search\fR(1)
122
+ .
123
+ .SH "AUTHOR"
124
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
125
+ .
126
+ .SH "DOCUMENTATION"
127
+ 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\.
128
+ .
129
+ .SH "CHEF"
130
+ Knife is distributed with Chef\. http://wiki\.opscode\.com/display/chef/Home
@@ -0,0 +1,13 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-ENVIRONMENT" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-environment\fR \- Define cookbook policies for the environments in your infrastructure
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBenvironment\fR \fIsub\-command\fR \fI(options)\fR
11
+ .
12
+ .SH "ENVIRONMENT SUBCOMMANDS"
13
+
@@ -0,0 +1,13 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-EXEC" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-exec\fR \- Run user scripts using the Chef API DSL
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBexec\fR \fI(options)\fR
11
+ .
12
+ .SH "EXEC SUBCOMMAND"
13
+
@@ -0,0 +1,29 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-INDEX" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-index\fR \- Rebuild the search index on a Chef Server
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBindex rebuild\fR \fI(options)\fR
11
+ .
12
+ .TP
13
+ \fB\-y\fR, \fB\-\-yes\fR
14
+ don\'t bother to ask if I\'m sure
15
+ .
16
+ .SH "DESCRIPTION"
17
+ Rebuilds all the search indexes on the server\. This is accomplished by deleting all objects from the search index, and then forwarding each item in the database to \fBchef\-expander\fR(8) via \fBrabbitmq\-server\fR(1)\. Depending on the number of objects in the database, it may take some time for all objects to be indexed and available for search\.
18
+ .
19
+ .SH "SEE ALSO"
20
+ \fBknife\-search\fR(1)
21
+ .
22
+ .SH "AUTHOR"
23
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
24
+ .
25
+ .SH "DOCUMENTATION"
26
+ 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\.
27
+ .
28
+ .SH "CHEF"
29
+ Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -0,0 +1,153 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-NODE" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-node\fR \- Manage the hosts in your infrastructure
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBnode\fR \fIsub\-command\fR \fI(options)\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Nodes are data structures that represent hosts configured with Chef\. Nodes have a \fBname\fR, a String that uniquely identifies the node, \fBattributes\fR, a nested Hash of properties that describe how the host should be configured, a \fBchef_environment\fR, a String representing the environment to which the node belongs, and a \fBrun_list\fR, an ordered list of \fBrecipes\fR or \fBroles\fR that chef\-client should apply when configuring a host\.
14
+ .
15
+ .P
16
+ When a host communicates with a Chef Server, it authenticates using its \fBnode_name\fR for identification and signs its reqests with a private key\. The Server validates the request by looking up a \fBclient\fR object with a name identical to the \fBnode_name\fR submitted with the request and verifes the signature using the public key for that \fBclient\fR object\. \fBNOTE\fR that the \fBclient\fR is a different object in the system\. It is associated with a node by virtue of having a matching name\.
17
+ .
18
+ .P
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
+ .
21
+ .SH "NODE SUB\-COMMANDS"
22
+ .
23
+ .SH "BULK DELETE"
24
+ \fBknife node bulk delete\fR \fIregex\fR \fI(options)\fR
25
+ .
26
+ .P
27
+ Deletes nodes for which the name matches the regular expression \fIregex\fR on the Chef Server\. The regular expression should be given in quotes, and should not be surrounded with forward slashes (as is typical of regular expression literals in scripting languages)\.
28
+ .
29
+ .SH "CREATE"
30
+ \fBknife node create\fR \fIname\fR \fI(options)\fR
31
+ .
32
+ .P
33
+ Create a new node\. Unless the \-\-no\-editor option is given, an empty node object will be created and displayed in your text editor\. If the editor exits with a successful exit status, the node data will be posted to the Chef Server to create the node\.
34
+ .
35
+ .SH "DELETE"
36
+ \fBknife node delete\fR \fIname\fR \fI(options)\fR
37
+ .
38
+ .P
39
+ Deletes the node identified by \fIname\fR on the Chef Server\.
40
+ .
41
+ .SH "EDIT"
42
+ \fBknife node edit\fR \fIname\fR \fI(options)\fR
43
+ .
44
+ .TP
45
+ \fB\-a\fR, \fB\-\-all\fR
46
+ Display all node data in the editor\. By default, default, override, and automatic attributes are not shown\.
47
+ .
48
+ .P
49
+ Edit the node identified by \fIname\fR\. Like \fBknife node create\fR, the node will be displayed in your text editor unless the \-n option is present\.
50
+ .
51
+ .SH "FROM FILE"
52
+ \fBknife node from file\fR \fIfile\fR \fI(options)\fR
53
+ .
54
+ .P
55
+ Create a node from a JSON format \fIfile\fR\.
56
+ .
57
+ .SH "LIST"
58
+ \fBknife node list\fR \fI(options)\fR
59
+ .
60
+ .TP
61
+ \fB\-w\fR, \fB\-\-with\-uri\fR
62
+ Show corresponding URIs
63
+ .
64
+ .P
65
+ List all nodes\.
66
+ .
67
+ .SH "RUN_LIST ADD"
68
+ \fBknife node run_list add\fR \fIname\fR \fIrun list item\fR \fI(options)\fR
69
+ .
70
+ .TP
71
+ \fB\-a\fR, \fB\-\-after ITEM\fR
72
+ Place the ENTRY in the run list after ITEM
73
+ .
74
+ .P
75
+ Add the \fIrun list item\fR to the node\'s \fBrun_list\fR\. See Run list
76
+ .
77
+ .SH "RUN_LIST REMOVE"
78
+ \fBknife node run_list remove\fR \fInode name\fR \fIrun list item\fR \fI(options)\fR
79
+ .
80
+ .P
81
+ Remove the \fIrun list item\fR from the node\'s \fBrun_list\fR\.
82
+ .
83
+ .SH "SHOW"
84
+ \fBknife node show\fR \fInode name\fR \fI(options)\fR
85
+ .
86
+ .TP
87
+ \fB\-a\fR, \fB\-\-attribute [ATTR]\fR
88
+ Show only one attribute
89
+ .
90
+ .TP
91
+ \fB\-r\fR, \fB\-\-run\-list\fR
92
+ Show only the run list
93
+ .
94
+ .TP
95
+ \fB\-F\fR, \fB\-\-format FORMAT\fR
96
+ Display the node in a different format\.
97
+ .
98
+ .TP
99
+ \fB\-m\fR, \fB\-\-medium\fR
100
+ Display more, but not all, of the node\'s data when using the default \fIsummary\fR format
101
+ .
102
+ .P
103
+ Displays the node identified by \fInode name\fR on stdout\. The amount of content displayed and the output format are modified by the \-\-format option\. Valid formats are:
104
+ .
105
+ .IP "\(bu" 4
106
+ summary: displays the node in a custom, summarized format
107
+ .
108
+ .IP "\(bu" 4
109
+ text displays the node data in its entirety using the colorized tree display
110
+ .
111
+ .IP "\(bu" 4
112
+ json: displays the node in JSON format
113
+ .
114
+ .IP "\(bu" 4
115
+ yaml: displays the node in YAML format
116
+ .
117
+ .IP "\(bu" 4
118
+ pp displays the node using Ruby\'s pretty printer\.
119
+ .
120
+ .IP "" 0
121
+ .
122
+ .P
123
+ For brevity, only the first character of the format is required, for example, \-Fj will produce JSON format output\.
124
+ .
125
+ .SH "RUN LIST ITEM FORMAT"
126
+ Run list items may be either roles or recipes\. When adding a role to a run list, the correct syntax is "role[ROLE_NAME]"
127
+ .
128
+ .P
129
+ When adding a recipe to a run list, there are several valid formats:
130
+ .
131
+ .TP
132
+ Fully Qualified Format
133
+ "recipe[COOKBOOK::RECIPE_NAME]", for example, "recipe[chef::client]"
134
+ .
135
+ .TP
136
+ Cookbook Recipe Format
137
+ For brevity, the recipe part of the fully qualified format may be omitted, and recipes specified as "COOKBOOK::RECIPE_NAME", e\.g\., "chef::client"
138
+ .
139
+ .TP
140
+ Default Recipe Format
141
+ When adding the default recipe of a cookbook to a run list, the recipe name may be omitted as well, e\.g\., "chef::default" may be written as just "chef"
142
+ .
143
+ .SH "SEE ALSO"
144
+ \fBknife\-client\fR(1) \fBknife\-search\fR(1) \fBknife\-role\fR(1)
145
+ .
146
+ .SH "AUTHOR"
147
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
148
+ .
149
+ .SH "DOCUMENTATION"
150
+ 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\.
151
+ .
152
+ .SH "CHEF"
153
+ Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -0,0 +1,13 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-RECIPE" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-recipe\fR \- List the recipes available on a Chef Server
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBrecipe list [PATTERN]\fR
11
+ .
12
+ .P
13
+ List the recipes available on the server\. The results shown can be limited with the optional PATTERN, which is a regular expression\. PATTERN should be given in quotes, without slashes\.
@@ -0,0 +1,64 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-ROLE" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-role\fR \- Group common configuration settings
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBrole\fR \fIsub\-command\fR \fI(options)\fR
11
+ .
12
+ .SH "ROLE SUB\-COMMANDS"
13
+ \fBrole bulk delete REGEX\fR \fI(options)\fR
14
+ .
15
+ .P
16
+ Delete roles on the Chef Server based on a regular expression\. The regular expression (\fIREGEX\fR) should be in quotes, not in //\'s\.
17
+ .
18
+ .P
19
+ \fBrole create ROLE\fR \fI(options)\fR
20
+ .
21
+ .TP
22
+ \fB\-d\fR, \fB\-\-description\fR
23
+ The role description
24
+ .
25
+ .P
26
+ Create a new role\.
27
+ .
28
+ .P
29
+ \fBrole delete ROLE\fR \fI(options)\fR
30
+ .
31
+ .P
32
+ Delete a role\.
33
+ .
34
+ .P
35
+ \fBrole edit ROLE\fR \fI(options)\fR
36
+ .
37
+ .P
38
+ Edit a role\.
39
+ .
40
+ .P
41
+ \fBrole from file FILE\fR \fI(options)\fR
42
+ .
43
+ .P
44
+ Create or update a role from a role Ruby DSL (\fB\.rb\fR) or JSON file\.
45
+ .
46
+ .P
47
+ \fBrole list\fR \fI(options)\fR
48
+ .
49
+ .TP
50
+ \fB\-w\fR, \fB\-\-with\-uri\fR
51
+ Show corresponding URIs
52
+ .
53
+ .P
54
+ List roles\.
55
+ .
56
+ .P
57
+ \fBrole show ROLE\fR \fI(options)\fR
58
+ .
59
+ .TP
60
+ \fB\-a\fR, \fB\-\-attribute ATTR\fR
61
+ Show only one attribute
62
+ .
63
+ .P
64
+ Show a specific role\.
@@ -0,0 +1,37 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-SEARCH" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-search\fR \- Find objects on a Chef Server by query
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBsearch INDEX QUERY\fR \fI(options)\fR
11
+ .
12
+ .TP
13
+ \fB\-a\fR, \fB\-\-attribute ATTR\fR
14
+ Show only one attribute
15
+ .
16
+ .TP
17
+ \fB\-i\fR, \fB\-\-id\-only\fR
18
+ Show only the ID of matching objects
19
+ .
20
+ .TP
21
+ \fB\-R\fR, \fB\-\-rows INT\fR
22
+ The number of rows to return
23
+ .
24
+ .TP
25
+ \fB\-r\fR, \fB\-\-run\-list\fR
26
+ Show only the run list
27
+ .
28
+ .TP
29
+ \fB\-o\fR, \fB\-\-sort SORT\fR
30
+ The order to sort the results in
31
+ .
32
+ .TP
33
+ \fB\-b\fR, \fB\-\-start ROW\fR
34
+ The row to start returning results at
35
+ .
36
+ .P
37
+ 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, \fIclient\fR, \fIdata bag\fR\.