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

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.
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,8 @@
1
+ knife-environment(1) -- Define cookbook policies for the environments in your infrastructure
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __environment__ _sub-command_ _(options)_
7
+
8
+ ## ENVIRONMENT SUBCOMMANDS
@@ -0,0 +1,9 @@
1
+ knife-exec(1) -- Run user scripts using the Chef API DSL
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __exec__ _(options)_
7
+
8
+ ## EXEC SUBCOMMAND
9
+
@@ -0,0 +1,30 @@
1
+ knife-index(1) -- Rebuild the search index on a Chef Server
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __index rebuild__ _(options)_
7
+
8
+ * `-y`, `--yes`:
9
+ don't bother to ask if I'm sure
10
+
11
+ ## DESCRIPTION
12
+ Rebuilds all the search indexes on the server. This is accomplished by
13
+ deleting all objects from the search index, and then forwarding each
14
+ item in the database to __chef-expander__(8) via __rabbitmq-server__(1).
15
+ Depending on the number of objects in the database, it may take some
16
+ time for all objects to be indexed and available for search.
17
+
18
+ ## SEE ALSO
19
+ __knife-search__(1)
20
+
21
+ ## AUTHOR
22
+ Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
23
+
24
+ ## DOCUMENTATION
25
+ This manual page was written by Joshua Timberman <joshua@opscode.com>.
26
+ Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
27
+
28
+ ## CHEF
29
+ Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
30
+
@@ -0,0 +1,147 @@
1
+ knife-node(1) -- Manage the hosts in your infrastructure
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __node__ _sub-command_ _(options)_
7
+
8
+ ## DESCRIPTION
9
+ Nodes are data structures that represent hosts configured with Chef.
10
+ Nodes have a __name__, a String that uniquely identifies the node,
11
+ __attributes__, a nested Hash of properties that describe how the host
12
+ should be configured, a __chef\_environment__, a String representing the
13
+ environment to which the node belongs, and a __run\_list__, an ordered
14
+ list of __recipes__ or __roles__ that chef-client should apply when
15
+ configuring a host.
16
+
17
+ When a host communicates with a Chef Server, it authenticates using its
18
+ __node\_name__ for identification and signs its reqests with a private
19
+ key. The Server validates the request by looking up a __client__ object
20
+ with a name identical to the __node\_name__ submitted with the request
21
+ and verifes the signature using the public key for that __client__
22
+ object. __NOTE__ that the __client__ is a different object in the
23
+ system. It is associated with a node by virtue of having a matching
24
+ name.
25
+
26
+ By default __chef-client__(8) will create a node using the FQDN of the
27
+ host for the node name, though this may be overridden by configuration
28
+ settings.
29
+
30
+ ## NODE SUB-COMMANDS
31
+
32
+
33
+ ## BULK DELETE
34
+ __knife node bulk delete__ _regex_ _(options)_
35
+
36
+ Deletes nodes for which the name matches the regular expression _regex_
37
+ on the Chef Server. The regular expression should be given in quotes,
38
+ and should not be surrounded with forward slashes (as is typical of
39
+ regular expression literals in scripting languages).
40
+
41
+ ## CREATE
42
+ __knife node create__ _name_ _(options)_
43
+
44
+ Create a new node. Unless the --no-editor option is given, an empty node
45
+ object will be created and displayed in your text editor. If the editor
46
+ exits with a successful exit status, the node data will be posted to the
47
+ Chef Server to create the node.
48
+
49
+ ## DELETE
50
+ __knife node delete__ _name_ _(options)_
51
+
52
+ Deletes the node identified by _name_ on the Chef Server.
53
+
54
+ ## EDIT
55
+ __knife node edit__ _name_ _(options)_
56
+
57
+ * `-a`, `--all`:
58
+ Display all node data in the editor. By default, default, override,
59
+ and automatic attributes are not shown.
60
+
61
+ Edit the node identified by _name_. Like __knife node create__, the node
62
+ will be displayed in your text editor unless the -n option is present.
63
+
64
+ ## FROM FILE
65
+ __knife node from file__ _file_ _(options)_
66
+
67
+ Create a node from a JSON format _file_.
68
+
69
+ ## LIST
70
+ __knife node list__ _(options)_
71
+
72
+ * `-w`, `--with-uri`:
73
+ Show corresponding URIs
74
+
75
+ List all nodes.
76
+
77
+ ## RUN\_LIST ADD
78
+ __knife node run_list add__ _name_ _run list item_ _(options)_
79
+
80
+ * `-a`, `--after ITEM`:
81
+ Place the ENTRY in the run list after ITEM
82
+
83
+ Add the _run list item_ to the node's `run_list`. See Run list
84
+
85
+ ## RUN\_LIST REMOVE
86
+ __knife node run_list remove__ _node name_ _run list item_ _(options)_
87
+
88
+ Remove the _run list item_ from the node's `run_list`.
89
+
90
+ ## SHOW
91
+ __knife node show__ _node name_ _(options)_
92
+
93
+ * `-a`, `--attribute [ATTR]`:
94
+ Show only one attribute
95
+ * `-r`, `--run-list `:
96
+ Show only the run list
97
+ * `-F`, `--format FORMAT`:
98
+ Display the node in a different format.
99
+ * `-m`, `--medium`:
100
+ Display more, but not all, of the node's data when using the default
101
+ _summary_ format
102
+
103
+ Displays the node identified by _node name_ on stdout. The amount of
104
+ content displayed and the output format are modified by the --format
105
+ option. Valid formats are:
106
+
107
+ * summary:
108
+ displays the node in a custom, summarized format
109
+ * text
110
+ displays the node data in its entirety using the colorized tree
111
+ display
112
+ * json:
113
+ displays the node in JSON format
114
+ * yaml:
115
+ displays the node in YAML format
116
+ * pp
117
+ displays the node using Ruby's pretty printer.
118
+
119
+ For brevity, only the first character of the format is required, for
120
+ example, -Fj will produce JSON format output.
121
+
122
+ ## RUN LIST ITEM FORMAT
123
+ Run list items may be either roles or recipes. When adding a role to a
124
+ run list, the correct syntax is "role[ROLE\_NAME]"
125
+
126
+ When adding a recipe to a run list, there are several valid formats:
127
+
128
+ * Fully Qualified Format:
129
+ "recipe[COOKBOOK::RECIPE\_NAME]", for example, "recipe[chef::client]"
130
+ * Cookbook Recipe Format:
131
+ For brevity, the recipe part of the fully qualified format may be omitted, and recipes specified as "COOKBOOK::RECIPE\_NAME", e.g., "chef::client"
132
+ * Default Recipe Format:
133
+ 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"
134
+
135
+ ## SEE ALSO
136
+ __knife-client__(1) __knife-search__(1) __knife-role__(1)
137
+
138
+ ## AUTHOR
139
+ Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
140
+
141
+ ## DOCUMENTATION
142
+ This manual page was written by Joshua Timberman <joshua@opscode.com>.
143
+ Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
144
+
145
+ ## CHEF
146
+ Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
147
+
@@ -0,0 +1,24 @@
1
+ knife-recipe(1) -- List the recipes available on a Chef Server
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __recipe list [PATTERN]__
7
+
8
+ List the recipes available on the server. The results shown can be
9
+ limited with the optional PATTERN, which is a regular expression.
10
+ PATTERN should be given in quotes, without slashes.
11
+
12
+ ## SEE ALSO
13
+ __knife-cookbook__(1)
14
+
15
+ ## AUTHOR
16
+ Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
17
+
18
+ ## DOCUMENTATION
19
+ This manual page was written by Joshua Timberman <joshua@opscode.com>.
20
+ Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
21
+
22
+ ## CHEF
23
+ Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
24
+
@@ -0,0 +1,79 @@
1
+ knife-role(1) -- Group common configuration settings
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __role__ _sub-command_ _(options)_
7
+
8
+ ## DESCRIPTION
9
+ Roles provide a mechanism to group repeated configuration settings.
10
+ Roles are data structures that contain __default\_attributes__, and
11
+ __override_attributes__, which are nested hashes of configuration
12
+ settings, and a __run_list__, which is an ordered list of recipes and
13
+ roles that should be applied to a host by chef-client.
14
+
15
+ __default_attributes__ will be overridden if they conflict with a value
16
+ on a node that includes the role. Conversely, __override_attributes__
17
+ will override any values set on nodes that apply them.
18
+
19
+ When __chef-client__(8) configures a host, it will "expand" the
20
+ __run_list__ included in that host's node data. The expansion process
21
+ will recursively replace any roles in the run\_list with that role's
22
+ run\_list.
23
+
24
+
25
+ ## ROLE SUB-COMMANDS
26
+
27
+ __knife role bulk delete REGEX__ _(options)_
28
+
29
+ Delete roles on the Chef Server based on a regular expression. The regular expression (_REGEX_) should be in quotes, not in //'s.
30
+
31
+ __knife role create ROLE__ _(options)_
32
+
33
+ * `-d`, `--description`:
34
+ The role description
35
+
36
+ Create a new role.
37
+
38
+ __knife role delete ROLE__ _(options)_
39
+
40
+ Delete a role.
41
+
42
+ __knife role edit ROLE__ _(options)_
43
+
44
+ Edit a role.
45
+
46
+ __knife role from file FILE__ _(options)_
47
+
48
+ Create or update a role from a role Ruby DSL (`.rb`) or JSON file.
49
+
50
+ __knife role list__ _(options)_
51
+
52
+ * `-w`, `--with-uri`:
53
+ Show corresponding URIs
54
+
55
+ List roles.
56
+
57
+ __knife role show ROLE__ _(options)_
58
+
59
+ * `-a`, `--attribute ATTR`:
60
+ Show only one attribute
61
+
62
+ Show a specific role.
63
+
64
+
65
+ ## SEE ALSO
66
+ __knife-node__(1)
67
+
68
+ <http://wiki.opscode.com/display/chef/Attributes>
69
+
70
+ ## AUTHOR
71
+ Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
72
+
73
+ ## DOCUMENTATION
74
+ This manual page was written by Joshua Timberman <joshua@opscode.com>.
75
+ Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
76
+
77
+ ## CHEF
78
+ Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
79
+
@@ -0,0 +1,56 @@
1
+ knife-search(1) -- Find objects on a Chef Server by query
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __search INDEX QUERY__ _(options)_
7
+
8
+ * `-a`, `--attribute ATTR`:
9
+ Show only one attribute
10
+ * `-i`, `--id-only`:
11
+ Show only the ID of matching objects
12
+ * `-R`, `--rows INT`:
13
+ The number of rows to return
14
+ * `-r`, `--run-list`:
15
+ Show only the run list
16
+ * `-o`, `--sort SORT`:
17
+ The order to sort the results in
18
+ * `-b`, `--start ROW`:
19
+ The row to start returning results at
20
+ * `-m`, `--medium`:
21
+ Display medium sized output when searching nodes using the default
22
+ summary format
23
+ * `-l`, `--long`:
24
+ Display long output when searching nodes using the default summary
25
+ format
26
+
27
+ ## DESCRIPTION
28
+
29
+ Search indexes are a feature of the Chef Server and the search
30
+ sub-command allows querying any of the available indexes using SOLR
31
+ query syntax. The following data types are indexed for search:
32
+ * _node_
33
+ * _role_
34
+ * _environment_
35
+ * _data bag_
36
+
37
+ ## SYNTAX
38
+
39
+ ## EXAMPLES
40
+
41
+ ## SEE ALSO
42
+ __knife-ssh__(1)
43
+
44
+ <http://wiki.opscode.com/display/chef/Attributes>
45
+
46
+ ## AUTHOR
47
+ Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
48
+
49
+ ## DOCUMENTATION
50
+ This manual page was written by Joshua Timberman <joshua@opscode.com>.
51
+ Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
52
+
53
+ ## CHEF
54
+ Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
55
+
56
+
@@ -0,0 +1,64 @@
1
+ knife-ssh(1) -- Run a command or interactive session on multiple remote hosts
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __ssh QUERY COMMAND__ _(options)_
7
+
8
+ * `-a`, `--attribute ATTR `:
9
+ The attribute to use for opening the connection - default is fqdn
10
+ * `-C`, `--concurrency NUM `:
11
+ The number of concurrent connections
12
+ * `-m`, `--manual-list `:
13
+ QUERY is a space separated list of servers
14
+ * `-P`, `--ssh-password PASSWORD`:
15
+ The ssh password
16
+ * `-x`, `--ssh-user USERNAME `:
17
+ The ssh username
18
+
19
+ ## DESCRIPTION
20
+
21
+ The _ssh_ sub-command opens an ssh session to each of the nodes in the
22
+ search results of the _QUERY_. This sub-command requires that the
23
+ net-ssh-multi and highline Ruby libraries are installed. On Debian
24
+ systems, these are the libnet-ssh-multi-ruby and libhighline-ruby
25
+ packages. They can also be installed as RubyGems (net-ssh-multi and
26
+ highline, respectively).
27
+
28
+ ## TERMINAL MULTIPLEXING AND TERMINAL TAB SUPPORT
29
+ `knife ssh` integrates with several terminal multiplexer programs to
30
+ provide a more convenient means of managing multiple ssh sessions. When
31
+ the _COMMAND_ option matches one of these, `knife ssh` will create
32
+ multiple interactive ssh sessions running locally in the terminal
33
+ multiplexer instead of invoking the command on the remote host.
34
+
35
+ The available multiplexers are:
36
+ * `interactive`:
37
+ A built-in multiplexer. `interactive` supports running commands on a
38
+ subset of the connected hosts in parallel
39
+ * __screen__(1):
40
+ Runs ssh interactively inside `screen`. ~/.screenrc will be sourced
41
+ if it exists.
42
+ * __tmux__(1):
43
+ Runs ssh interactively inside tmux.
44
+ * `macterm` (Mac OS X only):
45
+ Opens a Terminal.app window and creates a tab for each ssh session.
46
+ You must install the rb-appscript gem before you can use this
47
+ option.
48
+
49
+ ## SEE ALSO
50
+ __knife-search__(1)
51
+
52
+ <http://wiki.opscode.com/display/chef/Attributes>
53
+
54
+ ## AUTHOR
55
+ Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
56
+
57
+ ## DOCUMENTATION
58
+ This manual page was written by Joshua Timberman <joshua@opscode.com>.
59
+ Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
60
+
61
+ ## CHEF
62
+ Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
63
+
64
+
@@ -0,0 +1,38 @@
1
+ knife-status(1) -- Display status information for the nodes in your infrastructure
2
+ ========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ __knife__ __status__ _(options)_
7
+
8
+ * `-r`, `--run-list RUN_LIST`:
9
+ Show the run list
10
+
11
+ ## DESCRIPTION
12
+
13
+ The _status_ sub-command searches the Chef Server for all nodes and
14
+ displays information about the last time the node checked into the
15
+ server and executed a `node.save`. The fields displayed are the relative
16
+ checkin time, the node name, it's operating system platform and version,
17
+ the fully-qualified domain name and the default IP address. If the `-r`
18
+ option is given, the node's run list will also be displayed. Note that
19
+ depending on the configuration of the nodes, the FQDN and IP displayed
20
+ may not be publicly reachable.
21
+
22
+
23
+ ## SEE ALSO
24
+ __knife-search__(1)
25
+
26
+ <http://wiki.opscode.com/display/chef/Attributes>
27
+
28
+ ## AUTHOR
29
+ Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
30
+
31
+ ## DOCUMENTATION
32
+ This manual page was written by Joshua Timberman <joshua@opscode.com>.
33
+ Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
34
+
35
+ ## CHEF
36
+ Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
37
+
38
+