chef 11.2.0 → 11.4.0.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- data/distro/common/html/chef-client.8.html +3 -3
- data/distro/common/html/chef-expander.8.html +3 -3
- data/distro/common/html/chef-expanderctl.8.html +3 -3
- data/distro/common/html/chef-server-webui.8.html +3 -3
- data/distro/common/html/chef-server.8.html +3 -3
- data/distro/common/html/chef-shell.1.html +7 -7
- data/distro/common/html/chef-solo.8.html +3 -3
- data/distro/common/html/chef-solr.8.html +3 -3
- data/distro/common/html/knife-bootstrap.1.html +4 -4
- data/distro/common/html/knife-client.1.html +3 -3
- data/distro/common/html/knife-configure.1.html +3 -3
- data/distro/common/html/knife-cookbook-site.1.html +3 -3
- data/distro/common/html/knife-cookbook.1.html +3 -3
- data/distro/common/html/knife-data-bag.1.html +3 -3
- data/distro/common/html/knife-environment.1.html +6 -6
- data/distro/common/html/knife-exec.1.html +4 -4
- data/distro/common/html/knife-index.1.html +4 -4
- data/distro/common/html/knife-node.1.html +3 -3
- data/distro/common/html/knife-role.1.html +6 -6
- data/distro/common/html/knife-search.1.html +3 -3
- data/distro/common/html/knife-ssh.1.html +4 -4
- data/distro/common/html/knife-status.1.html +4 -4
- data/distro/common/html/knife-tag.1.html +4 -4
- data/distro/common/html/knife.1.html +3 -3
- data/distro/common/man/man1/chef-shell.1 +1 -1
- data/distro/common/man/man1/knife-bootstrap.1 +1 -1
- data/distro/common/man/man1/knife-client.1 +1 -1
- data/distro/common/man/man1/knife-configure.1 +1 -1
- data/distro/common/man/man1/knife-cookbook-site.1 +1 -1
- data/distro/common/man/man1/knife-cookbook.1 +1 -1
- data/distro/common/man/man1/knife-data-bag.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +1 -1
- data/distro/common/man/man1/knife-exec.1 +1 -1
- data/distro/common/man/man1/knife-index.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +1 -1
- data/distro/common/man/man1/knife-role.1 +1 -1
- data/distro/common/man/man1/knife-search.1 +1 -1
- data/distro/common/man/man1/knife-ssh.1 +1 -1
- data/distro/common/man/man1/knife-status.1 +1 -1
- data/distro/common/man/man1/knife-tag.1 +1 -1
- data/distro/common/man/man1/knife.1 +1 -1
- data/distro/common/man/man8/chef-client.8 +1 -1
- data/distro/common/man/man8/chef-expander.8 +1 -1
- data/distro/common/man/man8/chef-expanderctl.8 +1 -1
- data/distro/common/man/man8/chef-server-webui.8 +1 -1
- data/distro/common/man/man8/chef-server.8 +1 -1
- data/distro/common/man/man8/chef-solo.8 +1 -1
- data/distro/common/man/man8/chef-solr.8 +1 -1
- data/lib/chef/cookbook_version.rb +1 -1
- data/lib/chef/data_bag.rb +1 -1
- data/lib/chef/json_compat.rb +95 -1
- data/lib/chef/resource.rb +17 -0
- data/lib/chef/version.rb +1 -1
- data/lib/chef/win32/api/process.rb +1 -0
- data/lib/chef/win32/handle.rb +8 -1
- data/spec/functional/run_lock_spec.rb +145 -31
- data/spec/unit/knife/user_create_spec.rb +1 -1
- metadata +26 -36
@@ -265,11 +265,11 @@ www.example.com:</p>
|
|
265
265
|
|
266
266
|
<h2 id="AUTHOR">AUTHOR</h2>
|
267
267
|
|
268
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
268
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
269
269
|
|
270
270
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
271
271
|
|
272
|
-
<p> This manual page was written by Joshua Timberman <a href="ma&#
|
272
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
273
273
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
274
274
|
|
275
275
|
<h2 id="CHEF">CHEF</h2>
|
@@ -278,7 +278,7 @@ www.example.com:</p>
|
|
278
278
|
|
279
279
|
|
280
280
|
<ol class='man-decor man-foot man foot'>
|
281
|
-
<li class='tl'>Chef 11.
|
281
|
+
<li class='tl'>Chef 11.4.0.rc.0</li>
|
282
282
|
<li class='tc'>February 2013</li>
|
283
283
|
<li class='tr'>knife-search(1)</li>
|
284
284
|
</ol>
|
@@ -133,20 +133,20 @@ option.</dd>
|
|
133
133
|
|
134
134
|
<h2 id="AUTHOR">AUTHOR</h2>
|
135
135
|
|
136
|
-
<p> Chef was written by Adam Jacob <a
|
136
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
137
137
|
|
138
138
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
139
139
|
|
140
|
-
<p> This manual page was written by Joshua Timberman <a
|
140
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
141
141
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
142
142
|
|
143
143
|
<h2 id="CHEF">CHEF</h2>
|
144
144
|
|
145
|
-
<p> Knife is distributed with Chef. <a
|
145
|
+
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
|
146
146
|
|
147
147
|
|
148
148
|
<ol class='man-decor man-foot man foot'>
|
149
|
-
<li class='tl'>Chef 11.
|
149
|
+
<li class='tl'>Chef 11.4.0.rc.0</li>
|
150
150
|
<li class='tc'>February 2013</li>
|
151
151
|
<li class='tr'>knife-ssh(1)</li>
|
152
152
|
</ol>
|
@@ -105,20 +105,20 @@ may not be publicly reachable.</p>
|
|
105
105
|
|
106
106
|
<h2 id="AUTHOR">AUTHOR</h2>
|
107
107
|
|
108
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
108
|
+
<p> Chef was written by Adam Jacob <a data-bare-link="true" href="mailto:adam@opscode.com">adam@opscode.com</a> with many contributions from the community.</p>
|
109
109
|
|
110
110
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
111
111
|
|
112
|
-
<p> This manual page was written by Joshua Timberman <a href="mailt&#
|
112
|
+
<p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="mailto:joshua@opscode.com">joshua@opscode.com</a>.
|
113
113
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
114
114
|
|
115
115
|
<h2 id="CHEF">CHEF</h2>
|
116
116
|
|
117
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home"
|
117
|
+
<p> Knife is distributed with Chef. <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></p>
|
118
118
|
|
119
119
|
|
120
120
|
<ol class='man-decor man-foot man foot'>
|
121
|
-
<li class='tl'>Chef 11.
|
121
|
+
<li class='tl'>Chef 11.4.0.rc.0</li>
|
122
122
|
<li class='tc'>February 2013</li>
|
123
123
|
<li class='tr'>knife-status(1)</li>
|
124
124
|
</ol>
|
@@ -114,20 +114,20 @@
|
|
114
114
|
|
115
115
|
<h2 id="AUTHOR">AUTHOR</h2>
|
116
116
|
|
117
|
-
<p> Chef was written by Adam Jacob <a href="m&#
|
117
|
+
<p> Chef was written by Adam Jacob <a data-bare-link="true" href="mailto:adam@opscode.com">adam@opscode.com</a> with many contributions from the community.</p>
|
118
118
|
|
119
119
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
120
120
|
|
121
|
-
<p> This manual page was written by Daniel DeLeo <a href="&#
|
121
|
+
<p> This manual page was written by Daniel DeLeo <a data-bare-link="true" href="mailto:dan@opscode.com">dan@opscode.com</a>.
|
122
122
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
123
123
|
|
124
124
|
<h2 id="CHEF">CHEF</h2>
|
125
125
|
|
126
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home"
|
126
|
+
<p> Knife is distributed with Chef. <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></p>
|
127
127
|
|
128
128
|
|
129
129
|
<ol class='man-decor man-foot man foot'>
|
130
|
-
<li class='tl'>Chef 11.
|
130
|
+
<li class='tl'>Chef 11.4.0.rc.0</li>
|
131
131
|
<li class='tc'>February 2013</li>
|
132
132
|
<li class='tr'>knife-tag(1)</li>
|
133
133
|
</ol>
|
@@ -286,12 +286,12 @@ data editing entirely.</dd>
|
|
286
286
|
|
287
287
|
<h2 id="AUTHOR">AUTHOR</h2>
|
288
288
|
|
289
|
-
<p> Chef was written by Adam Jacob <a href="ma&#
|
289
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> of Opscode
|
290
290
|
(<a href="http://www.opscode.com" data-bare-link="true">http://www.opscode.com</a>), with contributions from the community.</p>
|
291
291
|
|
292
292
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
293
293
|
|
294
|
-
<p> This manual page was written by Joshua Timberman <a href="&#
|
294
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.</p>
|
295
295
|
|
296
296
|
<h2 id="LICENSE">LICENSE</h2>
|
297
297
|
|
@@ -305,7 +305,7 @@ data editing entirely.</dd>
|
|
305
305
|
|
306
306
|
|
307
307
|
<ol class='man-decor man-foot man foot'>
|
308
|
-
<li class='tl'>Chef 11.
|
308
|
+
<li class='tl'>Chef 11.4.0.rc.0</li>
|
309
309
|
<li class='tc'>February 2013</li>
|
310
310
|
<li class='tr'>knife(1)</li>
|
311
311
|
</ol>
|
@@ -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 "CHEF\-SHELL" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-SHELL" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-shell\fR \- Interactive Chef Console
|
@@ -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\-BOOTSTRAP" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-BOOTSTRAP" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-bootstrap\fR \- Install Chef Client on a remote host
|
@@ -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\-CLIENT" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-CLIENT" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-client\fR \- Manage Chef API Clients
|
@@ -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\-CONFIGURE" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-CONFIGURE" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-configure\fR \- Generate configuration files for knife or Chef Client
|
@@ -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\-COOKBOOK\-SITE" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-COOKBOOK\-SITE" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-cookbook\-site\fR \- Install and update open source cookbooks
|
@@ -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\-COOKBOOK" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-COOKBOOK" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-cookbook\fR \- upload and manage chef cookbooks
|
@@ -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\-DATA\-BAG" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-DATA\-BAG" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-data\-bag\fR \- Store arbitrary data 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\-ENVIRONMENT" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-ENVIRONMENT" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-environment\fR \- Define cookbook policies for the environments in your infrastructure
|
@@ -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" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-EXEC" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-exec\fR \- Run user scripts using the Chef API DSL
|
@@ -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" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-INDEX" "1" "February 2013" "Chef 11.4.0.rc.0" "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" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-NODE" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-node\fR \- Manage the hosts in your infrastructure
|
@@ -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" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-ROLE" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-role\fR \- Group common configuration settings
|
@@ -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" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-SEARCH" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-search\fR \- Find objects on a Chef Server by query
|
@@ -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" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-SSH" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-ssh\fR \- Run a command or interactive session on multiple remote hosts
|
@@ -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\-STATUS" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-STATUS" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-status\fR \- Display status information for the nodes in your infrastructure
|
@@ -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\-TAG" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE\-TAG" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-tag\fR \- Apply tags to nodes 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" "1" "February 2013" "Chef 11.
|
4
|
+
.TH "KNIFE" "1" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\fR \- Chef Server API client utility
|
@@ -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 "CHEF\-CLIENT" "8" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-CLIENT" "8" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-client\fR \- Runs a client node connecting to 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 "CHEF\-EXPANDER" "8" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-EXPANDER" "8" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-expander\fR \- fetches messages from RabbitMQ, processes, and loads into chef\-solr
|
@@ -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 "CHEF\-EXPANDERCTL" "8" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-EXPANDERCTL" "8" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-expanderctl\fR \- management program for chef\-expander
|
@@ -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 "CHEF\-SERVER\-WEBUI" "8" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-SERVER\-WEBUI" "8" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-server\-webui\fR \- Start the Chef Server merb application slice providing Web User Interface (Management Console)\.
|
@@ -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 "CHEF\-SERVER" "8" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-SERVER" "8" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-server\fR \- Start the Chef Server merb application slice\.
|
@@ -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 "CHEF\-SOLO" "8" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-SOLO" "8" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-solo\fR \- Runs chef in solo mode against a specified cookbook location\.
|
@@ -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 "CHEF\-SOLR" "8" "February 2013" "Chef 11.
|
4
|
+
.TH "CHEF\-SOLR" "8" "February 2013" "Chef 11.4.0.rc.0" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-solr\fR \- Runs as Chef\'s search server
|
@@ -565,7 +565,7 @@ class Chef
|
|
565
565
|
cookbook_version.manifest = o
|
566
566
|
|
567
567
|
# We don't need the following step when we decide to stop supporting deprecated operators in the metadata (e.g. <<, >>)
|
568
|
-
cookbook_version.manifest["metadata"] =
|
568
|
+
cookbook_version.manifest["metadata"] = Chef::JSONCompat.from_json(cookbook_version.metadata.to_json)
|
569
569
|
|
570
570
|
cookbook_version.freeze_version if o["frozen?"]
|
571
571
|
cookbook_version
|
data/lib/chef/data_bag.rb
CHANGED
data/lib/chef/json_compat.rb
CHANGED
@@ -24,7 +24,21 @@ class Chef
|
|
24
24
|
class JSONCompat
|
25
25
|
JSON_MAX_NESTING = 1000
|
26
26
|
|
27
|
+
JSON_CLASS = "json_class".freeze
|
28
|
+
|
29
|
+
CHEF_APICLIENT = "Chef::ApiClient".freeze
|
30
|
+
CHEF_COOKBOOKVERSION = "Chef::CookbookVersion".freeze
|
31
|
+
CHEF_DATABAG = "Chef::DataBag".freeze
|
32
|
+
CHEF_DATABAGITEM = "Chef::DataBagItem".freeze
|
33
|
+
CHEF_ENVIRONMENT = "Chef::Environment".freeze
|
34
|
+
CHEF_NODE = "Chef::Node".freeze
|
35
|
+
CHEF_ROLE = "Chef::Role".freeze
|
36
|
+
CHEF_SANDBOX = "Chef::Sandbox".freeze
|
37
|
+
CHEF_RESOURCE = "Chef::Resource".freeze
|
38
|
+
CHEF_RESOURCECOLLECTION = "Chef::ResourceCollection".freeze
|
39
|
+
|
27
40
|
class <<self
|
41
|
+
|
28
42
|
# See CHEF-1292/PL-538. Increase the max nesting for JSON, which defaults
|
29
43
|
# to 19, and isn't enough for some (for example, a Node within a Node)
|
30
44
|
# structures.
|
@@ -38,7 +52,49 @@ class Chef
|
|
38
52
|
|
39
53
|
# Just call the JSON gem's parse method with a modified :max_nesting field
|
40
54
|
def from_json(source, opts = {})
|
41
|
-
::
|
55
|
+
obj = ::Yajl::Parser.parse(source)
|
56
|
+
|
57
|
+
# JSON gem requires top level object to be a Hash or Array (otherwise
|
58
|
+
# you get the "must contain two octets" error). Yajl doesn't impose the
|
59
|
+
# same limitation. For compatibility, we re-impose this condition.
|
60
|
+
unless obj.kind_of?(Hash) or obj.kind_of?(Array)
|
61
|
+
raise JSON::ParserError, "Top level JSON object must be a Hash or Array. (actual: #{obj.class})"
|
62
|
+
end
|
63
|
+
|
64
|
+
# The old default in the json gem (which we are mimicing because we
|
65
|
+
# sadly rely on this misfeature) is to "create additions" i.e., convert
|
66
|
+
# JSON objects into ruby objects. Explicit :create_additions => false
|
67
|
+
# is required to turn it off.
|
68
|
+
if opts[:create_additions].nil? || opts[:create_additions]
|
69
|
+
map_to_rb_obj(obj)
|
70
|
+
else
|
71
|
+
obj
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Look at an object that's a basic type (from json parse) and convert it
|
76
|
+
# to an instance of Chef classes if desired.
|
77
|
+
def map_to_rb_obj(json_obj)
|
78
|
+
case json_obj
|
79
|
+
when Hash
|
80
|
+
mapped_hash = map_hash_to_rb_obj(json_obj)
|
81
|
+
if json_obj.has_key?(JSON_CLASS) && (class_to_inflate = class_for_json_class(json_obj[JSON_CLASS]))
|
82
|
+
class_to_inflate.json_create(mapped_hash)
|
83
|
+
else
|
84
|
+
mapped_hash
|
85
|
+
end
|
86
|
+
when Array
|
87
|
+
json_obj.map {|e| map_to_rb_obj(e) }
|
88
|
+
else
|
89
|
+
json_obj
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
def map_hash_to_rb_obj(json_hash)
|
94
|
+
json_hash.each do |key, value|
|
95
|
+
json_hash[key] = map_to_rb_obj(value)
|
96
|
+
end
|
97
|
+
json_hash
|
42
98
|
end
|
43
99
|
|
44
100
|
def to_json(obj, opts = nil)
|
@@ -48,6 +104,44 @@ class Chef
|
|
48
104
|
def to_json_pretty(obj, opts = nil)
|
49
105
|
::JSON.pretty_generate(obj, opts_add_max_nesting(opts))
|
50
106
|
end
|
107
|
+
|
108
|
+
|
109
|
+
# Map +json_class+ to a Class object. We use a +case+ instead of a Hash
|
110
|
+
# assigned to a constant because otherwise this file could not be loaded
|
111
|
+
# until all the constants were defined, which means you'd have to load
|
112
|
+
# the world to get json, which would make knife very slow.
|
113
|
+
def class_for_json_class(json_class)
|
114
|
+
case json_class
|
115
|
+
when CHEF_APICLIENT
|
116
|
+
Chef::ApiClient
|
117
|
+
when CHEF_COOKBOOKVERSION
|
118
|
+
Chef::CookbookVersion
|
119
|
+
when CHEF_DATABAG
|
120
|
+
Chef::DataBag
|
121
|
+
when CHEF_DATABAGITEM
|
122
|
+
Chef::DataBagItem
|
123
|
+
when CHEF_ENVIRONMENT
|
124
|
+
Chef::Environment
|
125
|
+
when CHEF_NODE
|
126
|
+
Chef::Node
|
127
|
+
when CHEF_ROLE
|
128
|
+
Chef::Role
|
129
|
+
when CHEF_SANDBOX
|
130
|
+
# a falsey return here will disable object inflation/"create
|
131
|
+
# additions" in the caller. In Chef 11 this is correct, we just have
|
132
|
+
# a dummy Chef::Sandbox class for compat with Chef 10 servers.
|
133
|
+
false
|
134
|
+
when CHEF_RESOURCE
|
135
|
+
Chef::Resource
|
136
|
+
when CHEF_RESOURCECOLLECTION
|
137
|
+
Chef::ResourceCollection
|
138
|
+
when /^Chef::Resource/
|
139
|
+
Chef::Resource.find_subclass_by_name(json_class)
|
140
|
+
else
|
141
|
+
raise JSON::ParserError, "Unsupported `json_class` type '#{json_class}'"
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
51
145
|
end
|
52
146
|
end
|
53
147
|
end
|