microwave 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. data/Rakefile +4 -4
  2. data/bin/chef-solo +2 -0
  3. data/spec/spec_helper.rb +2 -0
  4. data/spec/unit/checksum/storage/filesystem_spec.rb +4 -4
  5. data/spec/unit/config_spec.rb +7 -4
  6. data/spec/unit/data_bag_spec.rb +11 -11
  7. data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +8 -8
  8. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +5 -5
  9. metadata +10 -124
  10. data/distro/README +0 -2
  11. data/distro/arch/etc/conf.d/chef-client.conf +0 -5
  12. data/distro/arch/etc/conf.d/chef-expander.conf +0 -8
  13. data/distro/arch/etc/conf.d/chef-server-webui.conf +0 -10
  14. data/distro/arch/etc/conf.d/chef-server.conf +0 -10
  15. data/distro/arch/etc/conf.d/chef-solr.conf +0 -8
  16. data/distro/arch/etc/rc.d/chef-client +0 -90
  17. data/distro/arch/etc/rc.d/chef-expander +0 -78
  18. data/distro/arch/etc/rc.d/chef-server +0 -78
  19. data/distro/arch/etc/rc.d/chef-server-webui +0 -78
  20. data/distro/arch/etc/rc.d/chef-solr +0 -78
  21. data/distro/common/html/chef-client.8.html +0 -145
  22. data/distro/common/html/chef-expander.8.html +0 -164
  23. data/distro/common/html/chef-expanderctl.8.html +0 -146
  24. data/distro/common/html/chef-server-webui.8.html +0 -185
  25. data/distro/common/html/chef-server.8.html +0 -182
  26. data/distro/common/html/chef-solo.8.html +0 -191
  27. data/distro/common/html/chef-solr.8.html +0 -165
  28. data/distro/common/html/knife-bootstrap.1.html +0 -241
  29. data/distro/common/html/knife-client.1.html +0 -219
  30. data/distro/common/html/knife-configure.1.html +0 -170
  31. data/distro/common/html/knife-cookbook-site.1.html +0 -241
  32. data/distro/common/html/knife-cookbook.1.html +0 -384
  33. data/distro/common/html/knife-data-bag.1.html +0 -238
  34. data/distro/common/html/knife-environment.1.html +0 -267
  35. data/distro/common/html/knife-exec.1.html +0 -134
  36. data/distro/common/html/knife-index.1.html +0 -125
  37. data/distro/common/html/knife-node.1.html +0 -250
  38. data/distro/common/html/knife-recipe.1.html +0 -92
  39. data/distro/common/html/knife-role.1.html +0 -200
  40. data/distro/common/html/knife-search.1.html +0 -288
  41. data/distro/common/html/knife-ssh.1.html +0 -156
  42. data/distro/common/html/knife-status.1.html +0 -128
  43. data/distro/common/html/knife-tag.1.html +0 -137
  44. data/distro/common/html/knife.1.html +0 -320
  45. data/distro/common/html/shef.1.html +0 -283
  46. data/distro/common/man/man1/knife-bootstrap.1 +0 -201
  47. data/distro/common/man/man1/knife-client.1 +0 -99
  48. data/distro/common/man/man1/knife-configure.1 +0 -88
  49. data/distro/common/man/man1/knife-cookbook-site.1 +0 -145
  50. data/distro/common/man/man1/knife-cookbook.1 +0 -345
  51. data/distro/common/man/man1/knife-data-bag.1 +0 -136
  52. data/distro/common/man/man1/knife-environment.1 +0 -178
  53. data/distro/common/man/man1/knife-exec.1 +0 -46
  54. data/distro/common/man/man1/knife-index.1 +0 -29
  55. data/distro/common/man/man1/knife-node.1 +0 -134
  56. data/distro/common/man/man1/knife-role.1 +0 -88
  57. data/distro/common/man/man1/knife-search.1 +0 -280
  58. data/distro/common/man/man1/knife-ssh.1 +0 -79
  59. data/distro/common/man/man1/knife-status.1 +0 -29
  60. data/distro/common/man/man1/knife-tag.1 +0 -43
  61. data/distro/common/man/man1/knife.1 +0 -288
  62. data/distro/common/man/man1/shef.1 +0 -256
  63. data/distro/common/man/man8/chef-client.8 +0 -104
  64. data/distro/common/man/man8/chef-expander.8 +0 -97
  65. data/distro/common/man/man8/chef-expanderctl.8 +0 -62
  66. data/distro/common/man/man8/chef-server-webui.8 +0 -155
  67. data/distro/common/man/man8/chef-server.8 +0 -147
  68. data/distro/common/man/man8/chef-solo.8 +0 -158
  69. data/distro/common/man/man8/chef-solr.8 +0 -122
  70. data/distro/common/markdown/README +0 -3
  71. data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
  72. data/distro/common/markdown/man1/knife-client.mkd +0 -103
  73. data/distro/common/markdown/man1/knife-configure.mkd +0 -70
  74. data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
  75. data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
  76. data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
  77. data/distro/common/markdown/man1/knife-environment.mkd +0 -151
  78. data/distro/common/markdown/man1/knife-exec.mkd +0 -37
  79. data/distro/common/markdown/man1/knife-index.mkd +0 -30
  80. data/distro/common/markdown/man1/knife-node.mkd +0 -130
  81. data/distro/common/markdown/man1/knife-role.mkd +0 -85
  82. data/distro/common/markdown/man1/knife-search.mkd +0 -180
  83. data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
  84. data/distro/common/markdown/man1/knife-status.mkd +0 -36
  85. data/distro/common/markdown/man1/knife-tag.mkd +0 -39
  86. data/distro/common/markdown/man1/knife.mkd +0 -218
  87. data/distro/common/markdown/man1/shef.mkd +0 -189
  88. data/distro/common/markdown/man8/chef-client.mkd +0 -74
  89. data/distro/common/markdown/man8/chef-expander.mkd +0 -82
  90. data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -58
  91. data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
  92. data/distro/common/markdown/man8/chef-server.mkd +0 -121
  93. data/distro/common/markdown/man8/chef-solo.mkd +0 -107
  94. data/distro/common/markdown/man8/chef-solr.mkd +0 -89
  95. data/distro/debian/etc/default/chef-client +0 -4
  96. data/distro/debian/etc/default/chef-expander +0 -8
  97. data/distro/debian/etc/default/chef-server +0 -9
  98. data/distro/debian/etc/default/chef-server-webui +0 -9
  99. data/distro/debian/etc/default/chef-solr +0 -8
  100. data/distro/debian/etc/init.d/chef-client +0 -210
  101. data/distro/debian/etc/init.d/chef-expander +0 -176
  102. data/distro/debian/etc/init.d/chef-server +0 -122
  103. data/distro/debian/etc/init.d/chef-server-webui +0 -123
  104. data/distro/debian/etc/init.d/chef-solr +0 -176
  105. data/distro/debian/etc/init/chef-client.conf +0 -17
  106. data/distro/debian/etc/init/chef-expander.conf +0 -17
  107. data/distro/debian/etc/init/chef-server-webui.conf +0 -17
  108. data/distro/debian/etc/init/chef-server.conf +0 -17
  109. data/distro/debian/etc/init/chef-solr.conf +0 -17
  110. data/distro/redhat/etc/init.d/chef-client +0 -121
  111. data/distro/redhat/etc/init.d/chef-expander +0 -104
  112. data/distro/redhat/etc/init.d/chef-server +0 -112
  113. data/distro/redhat/etc/init.d/chef-server-webui +0 -112
  114. data/distro/redhat/etc/init.d/chef-solr +0 -104
  115. data/distro/redhat/etc/logrotate.d/chef-client +0 -8
  116. data/distro/redhat/etc/logrotate.d/chef-expander +0 -8
  117. data/distro/redhat/etc/logrotate.d/chef-server +0 -8
  118. data/distro/redhat/etc/logrotate.d/chef-server-webui +0 -8
  119. data/distro/redhat/etc/logrotate.d/chef-solr +0 -8
  120. data/distro/redhat/etc/sysconfig/chef-client +0 -15
  121. data/distro/redhat/etc/sysconfig/chef-expander +0 -7
  122. data/distro/redhat/etc/sysconfig/chef-server +0 -14
  123. data/distro/redhat/etc/sysconfig/chef-server-webui +0 -14
  124. data/distro/redhat/etc/sysconfig/chef-solr +0 -8
  125. data/distro/windows/service_manager.rb +0 -164
@@ -1,136 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "KNIFE\-DATA\-BAG" "1" "October 2012" "Chef 10.16.0.rc.1" "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
- .P
61
- \fBknife data bag from file\fR \fIbag name\fR \fIfile1\fR \fIfile2\fR \fIfile3\fR \fI(options)\fR
62
- .
63
- .P
64
- \fBknife data bag from file\fR \fIbag name\fR \fIfolder\fR \fI(options)\fR
65
- .
66
- .TP
67
- \fB\-s\fR, \fB\-\-secret SECRET\fR
68
- A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
69
- .
70
- .TP
71
- \fB\-\-secret\-file SECRET_FILE\fR
72
- The path to a file containing the secret key to be used to encrypt the data bag item\.
73
- .
74
- .P
75
- 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\.
76
- .
77
- .SH "LIST"
78
- \fBknife data bag list\fR \fI(options)\fR
79
- .
80
- .TP
81
- \fB\-w\fR, \fB\-\-with\-uri\fR
82
- Show corresponding URIs
83
- .
84
- .P
85
- Lists the data bags that exist on the Chef Server\.
86
- .
87
- .SH "SHOW"
88
- \fBknife data bag show BAG [ITEM]\fR \fI(options)\fR
89
- .
90
- .TP
91
- \fB\-s\fR, \fB\-\-secret SECRET\fR
92
- A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
93
- .
94
- .TP
95
- \fB\-\-secret\-file SECRET_FILE\fR
96
- The path to a file containing the secret key to be used to encrypt the data bag item\.
97
- .
98
- .P
99
- Show a specific data bag or an item in a data bag\. The output will be formatted according to the \-\-format option\.
100
- .
101
- .SH "ENCRYPTION SUPPORT"
102
- 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\.
103
- .
104
- .P
105
- Data Bag Item encryption uses the AES\-256 CBC symmetric key algorithm\.
106
- .
107
- .P
108
- \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:
109
- .
110
- .IP "" 4
111
- .
112
- .nf
113
-
114
- {"id": "important_passwords", "secret_password": "opensesame"}
115
- .
116
- .fi
117
- .
118
- .IP "" 0
119
- .
120
- .P
121
- 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\.
122
- .
123
- .P
124
- Chef Server does not provide a secure mechanism for distributing encryption keys\.
125
- .
126
- .SH "SEE ALSO"
127
- \fBknife\-search\fR(1)
128
- .
129
- .SH "AUTHOR"
130
- Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
131
- .
132
- .SH "DOCUMENTATION"
133
- 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\.
134
- .
135
- .SH "CHEF"
136
- Knife is distributed with Chef\. http://wiki\.opscode\.com/display/chef/Home
@@ -1,178 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "KNIFE\-ENVIRONMENT" "1" "October 2012" "Chef 10.16.0.rc.1" "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 "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
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,46 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "KNIFE\-EXEC" "1" "October 2012" "Chef 10.16.0.rc.1" "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
- .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,29 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "KNIFE\-INDEX" "1" "October 2012" "Chef 10.16.0.rc.1" "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
@@ -1,134 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "KNIFE\-NODE" "1" "October 2012" "Chef 10.16.0.rc.1" "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
- The following \fBnode\fR subcommands are available:
23
- .
24
- .SH "BULK DELETE"
25
- \fBknife node bulk delete\fR \fIregex\fR \fI(options)\fR
26
- .
27
- .P
28
- 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)\.
29
- .
30
- .SH "CREATE"
31
- \fBknife node create\fR \fIname\fR \fI(options)\fR
32
- .
33
- .P
34
- Create a new node\. Unless the \-\-disable\-editing 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\.
35
- .
36
- .SH "DELETE"
37
- \fBknife node delete\fR \fIname\fR \fI(options)\fR
38
- .
39
- .P
40
- Deletes the node identified by \fIname\fR on the Chef Server\.
41
- .
42
- .SH "EDIT"
43
- \fBknife node edit\fR \fIname\fR \fI(options)\fR
44
- .
45
- .TP
46
- \fB\-a\fR, \fB\-\-all\fR
47
- Display all node data in the editor\. By default, default, override, and automatic attributes are not shown\.
48
- .
49
- .P
50
- 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\.
51
- .
52
- .SH "FROM FILE"
53
- \fBknife node from file\fR \fIfile\fR \fI(options)\fR
54
- .
55
- .P
56
- Create a node from a JSON format \fIfile\fR\.
57
- .
58
- .SH "LIST"
59
- \fBknife node list\fR \fI(options)\fR
60
- .
61
- .TP
62
- \fB\-w\fR, \fB\-\-with\-uri\fR
63
- Show corresponding URIs
64
- .
65
- .P
66
- List all nodes\.
67
- .
68
- .SH "RUN_LIST ADD"
69
- \fBknife node run_list add\fR \fIname\fR \fIrun list item\fR \fI(options)\fR
70
- .
71
- .TP
72
- \fB\-a\fR, \fB\-\-after ITEM\fR
73
- Place the ENTRY in the run list after ITEM
74
- .
75
- .P
76
- Add the \fIrun list item\fR to the node\'s \fBrun_list\fR\. See Run list
77
- .
78
- .SH "RUN_LIST REMOVE"
79
- \fBknife node run_list remove\fR \fInode name\fR \fIrun list item\fR \fI(options)\fR
80
- .
81
- .P
82
- Remove the \fIrun list item\fR from the node\'s \fBrun_list\fR\.
83
- .
84
- .SH "SHOW"
85
- \fBknife node show\fR \fInode name\fR \fI(options)\fR
86
- .
87
- .TP
88
- \fB\-a\fR, \fB\-\-attribute [ATTR]\fR
89
- Show only one attribute
90
- .
91
- .TP
92
- \fB\-r\fR, \fB\-\-run\-list\fR
93
- Show only the run list
94
- .
95
- .TP
96
- \fB\-F\fR, \fB\-\-format FORMAT\fR
97
- Display the node in a different format\.
98
- .
99
- .TP
100
- \fB\-m\fR, \fB\-\-medium\fR
101
- Display more, but not all, of the node\'s data when using the default \fIsummary\fR format
102
- .
103
- .P
104
- Displays the node identified by \fInode name\fR on stdout\.
105
- .
106
- .SH "RUN LIST ITEM FORMAT"
107
- Run list items may be either roles or recipes\. When adding a role to a run list, the correct syntax is "role[ROLE_NAME]"
108
- .
109
- .P
110
- When adding a recipe to a run list, there are several valid formats:
111
- .
112
- .TP
113
- Fully Qualified Format
114
- "recipe[COOKBOOK::RECIPE_NAME]", for example, "recipe[chef::client]"
115
- .
116
- .TP
117
- Cookbook Recipe Format
118
- For brevity, the recipe part of the fully qualified format may be omitted, and recipes specified as "COOKBOOK::RECIPE_NAME", e\.g\., "chef::client"
119
- .
120
- .TP
121
- Default Recipe Format
122
- 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"
123
- .
124
- .SH "SEE ALSO"
125
- \fBknife\-client\fR(1) \fBknife\-search\fR(1) \fBknife\-role\fR(1)
126
- .
127
- .SH "AUTHOR"
128
- Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
129
- .
130
- .SH "DOCUMENTATION"
131
- 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\.
132
- .
133
- .SH "CHEF"
134
- Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR