chef 11.0.0.beta.1 → 11.0.0.beta.2
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 +3 -3
- 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 +3 -3
- 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 +3 -3
- data/distro/common/html/knife-exec.1.html +3 -3
- data/distro/common/html/knife-index.1.html +3 -3
- data/distro/common/html/knife-node.1.html +3 -3
- data/distro/common/html/knife-role.1.html +3 -3
- data/distro/common/html/knife-search.1.html +3 -3
- data/distro/common/html/knife-ssh.1.html +3 -3
- data/distro/common/html/knife-status.1.html +3 -3
- data/distro/common/html/knife-tag.1.html +3 -3
- 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/node.rb +5 -0
- data/lib/chef/node/attribute.rb +29 -0
- data/lib/chef/version.rb +1 -1
- data/spec/functional/resource/cookbook_file_spec.rb +1 -1
- data/spec/functional/resource/link_spec.rb +9 -9
- data/spec/support/chef_helpers.rb +1 -1
- data/spec/support/shared/functional/directory_resource.rb +1 -1
- data/spec/support/shared/functional/file_resource.rb +1 -1
- data/spec/unit/api_client/registration_spec.rb +1 -4
- data/spec/unit/node/attribute_spec.rb +31 -0
- data/spec/unit/node_spec.rb +45 -0
- metadata +1230 -1224
@@ -133,11 +133,11 @@ option.</dd>
|
|
133
133
|
|
134
134
|
<h2 id="AUTHOR">AUTHOR</h2>
|
135
135
|
|
136
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
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 href="m&#
|
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>
|
@@ -146,7 +146,7 @@ option.</dd>
|
|
146
146
|
|
147
147
|
|
148
148
|
<ol class='man-decor man-foot man foot'>
|
149
|
-
<li class='tl'>Chef 11.0.0.beta.
|
149
|
+
<li class='tl'>Chef 11.0.0.beta.2</li>
|
150
150
|
<li class='tc'>January 2013</li>
|
151
151
|
<li class='tr'>knife-ssh(1)</li>
|
152
152
|
</ol>
|
@@ -105,11 +105,11 @@ 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 href="mailto:adam@opscode.com" data-bare-link="true">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="m&#
|
112
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">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>
|
@@ -118,7 +118,7 @@ may not be publicly reachable.</p>
|
|
118
118
|
|
119
119
|
|
120
120
|
<ol class='man-decor man-foot man foot'>
|
121
|
-
<li class='tl'>Chef 11.0.0.beta.
|
121
|
+
<li class='tl'>Chef 11.0.0.beta.2</li>
|
122
122
|
<li class='tc'>January 2013</li>
|
123
123
|
<li class='tr'>knife-status(1)</li>
|
124
124
|
</ol>
|
@@ -114,11 +114,11 @@
|
|
114
114
|
|
115
115
|
<h2 id="AUTHOR">AUTHOR</h2>
|
116
116
|
|
117
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
117
|
+
<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>
|
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 href="mailto:dan@opscode.com" data-bare-link="true">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>
|
@@ -127,7 +127,7 @@
|
|
127
127
|
|
128
128
|
|
129
129
|
<ol class='man-decor man-foot man foot'>
|
130
|
-
<li class='tl'>Chef 11.0.0.beta.
|
130
|
+
<li class='tl'>Chef 11.0.0.beta.2</li>
|
131
131
|
<li class='tc'>January 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="m&#
|
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.0.0.beta.
|
308
|
+
<li class='tl'>Chef 11.0.0.beta.2</li>
|
309
309
|
<li class='tc'>January 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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-SHELL" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-BOOTSTRAP" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-CLIENT" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-CONFIGURE" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-COOKBOOK\-SITE" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-COOKBOOK" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-DATA\-BAG" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-ENVIRONMENT" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-EXEC" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-INDEX" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-NODE" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-ROLE" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-SEARCH" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-SSH" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-STATUS" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE\-TAG" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "KNIFE" "1" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-CLIENT" "8" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-EXPANDER" "8" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-EXPANDERCTL" "8" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-SERVER\-WEBUI" "8" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-SERVER" "8" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-SOLO" "8" "January 2013" "Chef 11.0.0.beta.2" "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" "January 2013" "Chef 11.0.0.beta.
|
4
|
+
.TH "CHEF\-SOLR" "8" "January 2013" "Chef 11.0.0.beta.2" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-solr\fR \- Runs as Chef\'s search server
|
data/lib/chef/node.rb
CHANGED
@@ -123,6 +123,7 @@ class Chef
|
|
123
123
|
# Set a normal attribute of this node, but auto-vivify any Mashes that
|
124
124
|
# might be missing
|
125
125
|
def normal
|
126
|
+
attributes.set_unless_value_present = false
|
126
127
|
attributes.normal
|
127
128
|
end
|
128
129
|
|
@@ -139,12 +140,14 @@ class Chef
|
|
139
140
|
# Set a default of this node, but auto-vivify any Mashes that might
|
140
141
|
# be missing
|
141
142
|
def default
|
143
|
+
attributes.set_unless_value_present = false
|
142
144
|
attributes.default
|
143
145
|
end
|
144
146
|
|
145
147
|
# Set a force default attribute. Intermediate mashes will be created by
|
146
148
|
# auto-vivify if necessary.
|
147
149
|
def default!
|
150
|
+
attributes.set_unless_value_present = false
|
148
151
|
attributes.default!
|
149
152
|
end
|
150
153
|
|
@@ -158,12 +161,14 @@ class Chef
|
|
158
161
|
# Set an override attribute of this node, but auto-vivify any Mashes that
|
159
162
|
# might be missing
|
160
163
|
def override
|
164
|
+
attributes.set_unless_value_present = false
|
161
165
|
attributes.override
|
162
166
|
end
|
163
167
|
|
164
168
|
# Set a force override attribute. Intermediate mashes will be created by
|
165
169
|
# auto-vivify if needed.
|
166
170
|
def override!
|
171
|
+
attributes.set_unless_value_present = false
|
167
172
|
attributes.override!
|
168
173
|
end
|
169
174
|
|
data/lib/chef/node/attribute.rb
CHANGED
@@ -209,6 +209,34 @@ class Chef
|
|
209
209
|
@combined_default = nil
|
210
210
|
end
|
211
211
|
|
212
|
+
# Debug what's going on with an attribute. +args+ is a path spec to the
|
213
|
+
# attribute you're interested in. For example, to debug where the value
|
214
|
+
# of `node[:network][:default_interface]` is coming from, use:
|
215
|
+
# debug_value(:network, :default_interface).
|
216
|
+
# The return value is an Array of Arrays. The first element is
|
217
|
+
# `["set_unless_enabled?", Boolean]`, which describes whether the
|
218
|
+
# attribute collection is in "set_unless" mode. The rest of the Arrays
|
219
|
+
# are pairs of `["precedence_level", value]`, where precedence level is
|
220
|
+
# the component, such as role default, normal, etc. and value is the
|
221
|
+
# attribute value set at that precedence level. If there is no value at
|
222
|
+
# that precedence level, +value+ will be the symbol +:not_present+.
|
223
|
+
def debug_value(*args)
|
224
|
+
components = COMPONENTS.map do |component|
|
225
|
+
ivar = instance_variable_get(component)
|
226
|
+
value = args.inject(ivar) do |so_far, key|
|
227
|
+
if so_far == :not_present
|
228
|
+
:not_present
|
229
|
+
elsif so_far.has_key?(key)
|
230
|
+
so_far[key]
|
231
|
+
else
|
232
|
+
:not_present
|
233
|
+
end
|
234
|
+
end
|
235
|
+
[component.to_s.sub(/^@/,""), value]
|
236
|
+
end
|
237
|
+
[["set_unless_enabled?", @set_unless_present]] + components
|
238
|
+
end
|
239
|
+
|
212
240
|
# Enables or disables `||=`-like attribute setting. See, e.g., Node#set_unless
|
213
241
|
def set_unless_value_present=(setting)
|
214
242
|
@set_unless_present = setting
|
@@ -220,6 +248,7 @@ class Chef
|
|
220
248
|
@merged_attributes = nil
|
221
249
|
@combined_default = nil
|
222
250
|
@combined_override = nil
|
251
|
+
@set_unless_present = false
|
223
252
|
end
|
224
253
|
|
225
254
|
alias :reset :reset_cache
|
data/lib/chef/version.rb
CHANGED
@@ -67,7 +67,7 @@ describe Chef::Resource::CookbookFile do
|
|
67
67
|
# stages files in temp.
|
68
68
|
context "targets a file outside of the system temp directory" do
|
69
69
|
let(:windows_non_temp_dir) { File.join(ENV['systemdrive'], make_tmpname(file_base, "non-temp")) }
|
70
|
-
let(:path) { File.join(windows_non_temp_dir, make_tmpname(file_base
|
70
|
+
let(:path) { File.join(windows_non_temp_dir, make_tmpname(file_base)) }
|
71
71
|
|
72
72
|
before do
|
73
73
|
FileUtils::mkdir_p(windows_non_temp_dir) if Chef::Platform.windows?
|
@@ -36,10 +36,10 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
let(:to) do
|
39
|
-
File.join(base_dir, make_tmpname("to_spec"
|
39
|
+
File.join(base_dir, make_tmpname("to_spec"))
|
40
40
|
end
|
41
41
|
let(:target_file) do
|
42
|
-
File.join(base_dir, make_tmpname("from_spec"
|
42
|
+
File.join(base_dir, make_tmpname("from_spec"))
|
43
43
|
end
|
44
44
|
|
45
45
|
after(:each) do
|
@@ -270,7 +270,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
270
270
|
end
|
271
271
|
context 'pointing somewhere else' do
|
272
272
|
before(:each) do
|
273
|
-
@other_target = File.join(base_dir, make_tmpname('other_spec'
|
273
|
+
@other_target = File.join(base_dir, make_tmpname('other_spec'))
|
274
274
|
File.open(@other_target, 'w') { |file| file.write('eek') }
|
275
275
|
symlink(@other_target, target_file)
|
276
276
|
symlink?(target_file).should be_true
|
@@ -288,7 +288,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
288
288
|
end
|
289
289
|
context 'pointing nowhere' do
|
290
290
|
before(:each) do
|
291
|
-
nonexistent = File.join(base_dir, make_tmpname('nonexistent_spec'
|
291
|
+
nonexistent = File.join(base_dir, make_tmpname('nonexistent_spec'))
|
292
292
|
symlink(nonexistent, target_file)
|
293
293
|
symlink?(target_file).should be_true
|
294
294
|
readlink(target_file).should == nonexistent
|
@@ -354,7 +354,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
354
354
|
context "when the link destination is a symbolic link" do
|
355
355
|
context 'to a file that exists' do
|
356
356
|
before(:each) do
|
357
|
-
@other_target = File.join(base_dir, make_tmpname("other_spec"
|
357
|
+
@other_target = File.join(base_dir, make_tmpname("other_spec"))
|
358
358
|
File.open(@other_target, "w") { |file| file.write("eek") }
|
359
359
|
symlink(@other_target, to)
|
360
360
|
symlink?(to).should be_true
|
@@ -370,7 +370,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
370
370
|
end
|
371
371
|
context 'to a file that does not exist' do
|
372
372
|
before(:each) do
|
373
|
-
@other_target = File.join(base_dir, make_tmpname("other_spec"
|
373
|
+
@other_target = File.join(base_dir, make_tmpname("other_spec"))
|
374
374
|
symlink(@other_target, to)
|
375
375
|
symlink?(to).should be_true
|
376
376
|
readlink(to).should == @other_target
|
@@ -394,7 +394,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
394
394
|
}.each do |prefix, desc|
|
395
395
|
context desc do
|
396
396
|
let(:to) { "#{prefix}#{File.basename(absolute_to)}" }
|
397
|
-
let(:absolute_to) { File.join(base_dir, make_tmpname("to_spec"
|
397
|
+
let(:absolute_to) { File.join(base_dir, make_tmpname("to_spec")) }
|
398
398
|
before(:each) do
|
399
399
|
resource.to(to)
|
400
400
|
end
|
@@ -513,7 +513,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
513
513
|
context "when the link destination is a symbolic link" do
|
514
514
|
context 'to a real file' do
|
515
515
|
before(:each) do
|
516
|
-
@other_target = File.join(base_dir, make_tmpname("other_spec"
|
516
|
+
@other_target = File.join(base_dir, make_tmpname("other_spec"))
|
517
517
|
File.open(@other_target, "w") { |file| file.write("eek") }
|
518
518
|
symlink(@other_target, to)
|
519
519
|
symlink?(to).should be_true
|
@@ -537,7 +537,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
|
|
537
537
|
end
|
538
538
|
context 'to a nonexistent file' do
|
539
539
|
before(:each) do
|
540
|
-
@other_target = File.join(base_dir, make_tmpname("other_spec"
|
540
|
+
@other_target = File.join(base_dir, make_tmpname("other_spec"))
|
541
541
|
symlink(@other_target, to)
|
542
542
|
symlink?(to).should be_true
|
543
543
|
readlink(to).should == @other_target
|