chef 11.0.0.beta.0 → 11.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/chef-apply +1 -1
- 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/application/apply.rb +2 -2
- data/lib/chef/application/client.rb +8 -0
- data/lib/chef/client.rb +28 -0
- data/lib/chef/config.rb +2 -0
- data/lib/chef/cookbook/metadata.rb +0 -2
- data/lib/chef/dsl/data_query.rb +5 -0
- data/lib/chef/dsl/include_attribute.rb +3 -0
- data/lib/chef/dsl/include_recipe.rb +3 -0
- data/lib/chef/dsl/platform_introspection.rb +5 -0
- data/lib/chef/dsl/recipe.rb +4 -1
- data/lib/chef/exceptions.rb +1 -0
- data/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +8 -0
- data/lib/chef/mixin/deep_merge.rb +26 -0
- data/lib/chef/mixin/deprecation.rb +35 -0
- data/lib/chef/mixin/language.rb +16 -4
- data/lib/chef/mixin/language_include_attribute.rb +7 -1
- data/lib/chef/mixin/language_include_recipe.rb +7 -1
- data/lib/chef/mixin/recipe_definition_dsl_core.rb +4 -2
- data/lib/chef/mixins.rb +1 -1
- data/lib/chef/node.rb +0 -2
- data/lib/chef/node/attribute.rb +22 -17
- data/lib/chef/node/attribute_collections.rb +8 -1
- data/lib/chef/platform.rb +9 -0
- data/lib/chef/provider/cookbook_file.rb +28 -0
- data/lib/chef/resource.rb +12 -6
- data/lib/chef/version.rb +1 -1
- data/lib/chef/win32/api/security.rb +45 -1
- data/lib/chef/win32/registry.rb +23 -12
- data/lib/chef/win32/security.rb +19 -0
- data/spec/data/shef-config.rb +3 -0
- data/spec/functional/knife/smoke_test.rb +34 -0
- data/spec/functional/resource/cookbook_file_spec.rb +19 -0
- data/spec/functional/resource/registry_spec.rb +8 -12
- data/spec/functional/shell_spec.rb +5 -4
- data/spec/functional/win32/security_spec.rb +37 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/support/lib/chef/resource/cat.rb +3 -5
- data/spec/support/lib/chef/resource/one_two_three_four.rb +8 -10
- data/spec/support/lib/chef/resource/zen_master.rb +8 -10
- data/spec/support/shared/functional/file_resource.rb +18 -0
- data/spec/support/shared/functional/securable_resource.rb +73 -70
- data/spec/unit/chef_fs/diff_spec.rb +30 -29
- data/spec/unit/client_spec.rb +62 -0
- data/spec/unit/mixin/deep_merge_spec.rb +37 -0
- data/spec/unit/mixin/deprecation_spec.rb +23 -0
- data/spec/unit/node/attribute_spec.rb +47 -0
- data/spec/unit/registry_helper_spec.rb +7 -5
- data/spec/unit/resource_spec.rb +23 -0
- metadata +4 -3
- data/lib/chef/mixin/check_helper.rb +0 -31
@@ -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="ma&#
|
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="&#
|
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.1</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="ma&#
|
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="&#
|
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.1</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="ma&#
|
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.1</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="&#
|
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.1</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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "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.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-solr\fR \- Runs as Chef\'s search server
|
@@ -29,7 +29,7 @@ require 'chef/resources'
|
|
29
29
|
|
30
30
|
class Chef::Application::Apply < Chef::Application
|
31
31
|
|
32
|
-
banner "Usage: chef-
|
32
|
+
banner "Usage: chef-apply [RECIPE_FILE] [-e RECIPE_TEXT] [-s]"
|
33
33
|
|
34
34
|
|
35
35
|
option :execute,
|
@@ -104,7 +104,7 @@ class Chef::Application::Apply < Chef::Application
|
|
104
104
|
else
|
105
105
|
Chef::RunContext.new(@chef_client.node, {}, @chef_client.events)
|
106
106
|
end
|
107
|
-
recipe = Chef::Recipe.new("(chef-
|
107
|
+
recipe = Chef::Recipe.new("(chef-apply cookbook)", "(chef-apply recipe)", run_context)
|
108
108
|
[recipe, run_context]
|
109
109
|
end
|
110
110
|
|
@@ -197,6 +197,14 @@ class Chef::Application::Client < Chef::Application
|
|
197
197
|
:description => "Enable reporting data collection for chef runs",
|
198
198
|
:boolean => true
|
199
199
|
|
200
|
+
if Chef::Platform.windows?
|
201
|
+
option :fatal_windows_admin_check,
|
202
|
+
:short => "-A",
|
203
|
+
:long => "--fatal-windows-admin-check",
|
204
|
+
:description => "Fail the run when chef-client doesn't have administrator privileges on Windows",
|
205
|
+
:boolean => true
|
206
|
+
end
|
207
|
+
|
200
208
|
attr_reader :chef_client_json
|
201
209
|
|
202
210
|
def initialize
|
data/lib/chef/client.rb
CHANGED
@@ -410,6 +410,25 @@ class Chef
|
|
410
410
|
raise
|
411
411
|
end
|
412
412
|
|
413
|
+
def do_windows_admin_check
|
414
|
+
if Chef::Platform.windows?
|
415
|
+
Chef::Log.debug("Checking for administrator privileges....")
|
416
|
+
|
417
|
+
if !has_admin_privileges?
|
418
|
+
message = "chef-client doesn't have administrator privileges on node #{node_name}."
|
419
|
+
if Chef::Config[:fatal_windows_admin_check]
|
420
|
+
Chef::Log.fatal(message)
|
421
|
+
Chef::Log.fatal("fatal_windows_admin_check is set to TRUE.")
|
422
|
+
raise Chef::Exceptions::WindowsNotAdmin, message
|
423
|
+
else
|
424
|
+
Chef::Log.warn("#{message} This might cause unexpected resource failures.")
|
425
|
+
end
|
426
|
+
else
|
427
|
+
Chef::Log.debug("chef-client has administrator privileges on node #{node_name}.")
|
428
|
+
end
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
413
432
|
private
|
414
433
|
|
415
434
|
# Do a full run for this Chef::Client. Calls:
|
@@ -443,6 +462,8 @@ class Chef
|
|
443
462
|
Chef::Log.info("Starting Chef Run for #{node.name}")
|
444
463
|
run_started
|
445
464
|
|
465
|
+
do_windows_admin_check
|
466
|
+
|
446
467
|
run_context = setup_run_context
|
447
468
|
|
448
469
|
converge(run_context)
|
@@ -518,6 +539,13 @@ class Chef
|
|
518
539
|
end
|
519
540
|
|
520
541
|
end
|
542
|
+
|
543
|
+
def has_admin_privileges?
|
544
|
+
require 'chef/win32/security'
|
545
|
+
|
546
|
+
Chef::ReservedNames::Win32::Security.has_admin_privileges?
|
547
|
+
end
|
548
|
+
|
521
549
|
end
|
522
550
|
end
|
523
551
|
|
data/lib/chef/config.rb
CHANGED
@@ -334,6 +334,8 @@ class Chef
|
|
334
334
|
principal_valid_regex_part = '[^"\/\\\\\[\]\:;|=,+*?<>]+'
|
335
335
|
user_valid_regex [ /^(#{principal_valid_regex_part}\\)?#{principal_valid_regex_part}$/ ]
|
336
336
|
group_valid_regex [ /^(#{principal_valid_regex_part}\\)?#{principal_valid_regex_part}$/ ]
|
337
|
+
|
338
|
+
fatal_windows_admin_check false
|
337
339
|
else
|
338
340
|
user_valid_regex [ /^([-a-zA-Z0-9_.]+)$/, /^\d+$/ ]
|
339
341
|
group_valid_regex [ /^([-a-zA-Z0-9_.\\ ]+)$/, /^\d+$/ ]
|
@@ -21,7 +21,6 @@
|
|
21
21
|
require 'chef/mash'
|
22
22
|
require 'chef/mixin/from_file'
|
23
23
|
require 'chef/mixin/params_validate'
|
24
|
-
require 'chef/mixin/check_helper'
|
25
24
|
require 'chef/log'
|
26
25
|
require 'chef/version_class'
|
27
26
|
require 'chef/version_constraint'
|
@@ -64,7 +63,6 @@ class Chef
|
|
64
63
|
:provides => PROVIDING,
|
65
64
|
:replaces => REPLACING }
|
66
65
|
|
67
|
-
include Chef::Mixin::CheckHelper
|
68
66
|
include Chef::Mixin::ParamsValidate
|
69
67
|
include Chef::Mixin::FromFile
|
70
68
|
|