Skip to content

Commit 6f5a2c2

Browse files
author
jamescott
committed
sync up windows methods for recipe DSL
1 parent 2774966 commit 6f5a2c2

File tree

15 files changed

+38
-27
lines changed

15 files changed

+38
-27
lines changed

chef_master/source/dsl_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ Send Email
370370

371371
Windows Platform
372372
=====================================================
373-
The following methods and helpers may be used on the |windows| platform:
373+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
374374

375-
.. note:: The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.
375+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
376376

377377
registry_data_exists?
378378
-----------------------------------------------------

chef_master/source/windows.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The |chef client| has specific components that are designed to support unique as
1212
* Two |knife| plugins dedicated to the |windows| platform are available: |subcommand knife azure| is used to manage virtual instances in |azure|; |subcommand knife windows| is used to interact with and manage physical nodes that are running |windows|, such as desktops and servers
1313
* Four cookbooks provide application-specific support. For `PowerShell 4.0 <https://github.com/chef-cookbooks/powershell>`_. For `IIS 7.0/7.5/8.0 <https://github.com/chef-cookbooks/iis>`_. For `SQL Server <https://github.com/chef-cookbooks/database>`_. And for configuring various settings and behaviors on a machine that is running `Windows <https://github.com/chef-cookbooks/windows>`_
1414
* Support for both :i386 and :x86_64 architectures
15-
* Six helpers are present in the |dsl recipe| to help verify the registry during a |chef client| run---``registry_data_exists?``, ``registry_get_subkeys``, ``registry_get_values``, ``registry_has_subkeys?``, ``registry_key_exists?``, and ``registry_value_exists?``---these helpers ensure the |resource powershell_script| resource is idempotent
15+
* .. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_helpers.rst
1616
* Two community provisioners for |kitchen|: `kitchen-dsc <https://github.com/smurawski/kitchen-dsc>`_ and `kitchen-pester <https://github.com/smurawski/kitchen-pester>`_
1717

1818
The most popular core resources in the |chef client|---:doc:`cookbook_file </resource_cookbook_file>`, :doc:`directory </resource_directory>`, :doc:`env </resource_env>`, :doc:`execute </resource_execute>`, :doc:`file </resource_file>`, :doc:`group </resource_group>`, :doc:`http_request </resource_http_request>`, :doc:`link </resource_link>`, :doc:`mount </resource_mount>`, :doc:`package </resource_package>`, :doc:`remote_directory </resource_remote_directory>`, :doc:`remote_file </resource_remote_file>`, :doc:`ruby_block </resource_ruby_block>`, :doc:`service </resource_service>`, :doc:`template </resource_template>`, and :doc:`user </resource_user>`---work the same way in |windows| as they do on any |unix|- or |linux|-based platform.
@@ -23,7 +23,6 @@ The file-based resources---|resource cookbook_file|, |resource file|, |resource
2323

2424
The following sections are pulled in from the larger |url docs| site and represents the documentation that is specific to the |windows| platform, compiled here into a single-page reference.
2525

26-
2726
Install the |chef client_title| on Windows
2827
=====================================================
2928
.. include:: ../../includes_windows/includes_windows_install_overview.rst
@@ -804,7 +803,9 @@ Some of the most popular |company_name|-maintained cookbooks that contain lightw
804803

805804
|dsl recipe| Methods
806805
=====================================================
807-
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe.rst
806+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
807+
808+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
808809

809810
registry_data_exists?
810811
-----------------------------------------------------
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. The contents of this file may be included in multiple topics (using the includes directive).
2+
.. The contents of this file should be modified in a way that preserves its ability to appear in multiple topics.
3+
4+
5+
Six methods are present in the |dsl recipe| to help verify the registry during a |chef client| run on the |windows| platform---``registry_data_exists?``, ``registry_get_subkeys``, ``registry_get_values``, ``registry_has_subkeys?``, ``registry_key_exists?``, and ``registry_value_exists?``---these helpers ensure the |resource powershell_script| resource is idempotent.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. The contents of this file may be included in multiple topics (using the includes directive).
2+
.. The contents of this file should be modified in a way that preserves its ability to appear in multiple topics.
3+
4+
5+
The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.

release_chef_11-0/source/dsl_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ value_for_platform_family
233233

234234
Windows Platform
235235
=====================================================
236-
The following methods and helpers may be used on the |windows| platform:
236+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
237237

238-
.. note:: The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.
238+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
239239

240240
registry_data_exists?
241241
-----------------------------------------------------

release_chef_11-10/source/dsl_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ value_for_platform_family
231231

232232
Windows Platform
233233
=====================================================
234-
The following methods and helpers may be used on the |windows| platform:
234+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
235235

236-
.. note:: The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.
236+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
237237

238238
registry_data_exists?
239239
-----------------------------------------------------

release_chef_11-12/source/dsl_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ value_for_platform_family
233233

234234
Windows Platform
235235
=====================================================
236-
The following methods and helpers may be used on the |windows| platform:
236+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
237237

238-
.. note:: The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.
238+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
239239

240240
registry_data_exists?
241241
-----------------------------------------------------

release_chef_11-14/source/dsl_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ value_for_platform_family
233233

234234
Windows Platform
235235
=====================================================
236-
The following methods and helpers may be used on the |windows| platform:
236+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
237237

238-
.. note:: The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.
238+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
239239

240240
registry_data_exists?
241241
-----------------------------------------------------

release_chef_11-16/source/dsl_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ value_for_platform_family
233233

234234
Windows Platform
235235
=====================================================
236-
The following methods and helpers may be used on the |windows| platform:
236+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
237237

238-
.. note:: The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.
238+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
239239

240240
registry_data_exists?
241241
-----------------------------------------------------

release_chef_11-18/source/dsl_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ value_for_platform_family
233233

234234
Windows Platform
235235
=====================================================
236-
The following methods and helpers may be used on the |windows| platform:
236+
.. include:: ../../includes_dsl_recipe/includes_dsl_recipe_method_windows_methods.rst
237237

238-
.. note:: The recommended order in which registry key-specific methods should be used within a recipe is: ``key_exists?``, ``value_exists?``, ``data_exists?``, ``get_values``, ``has_subkeys?``, and then ``get_subkeys``.
238+
.. note:: .. include:: ../../includes_notes/includes_notes_dsl_recipe_order_for_windows_methods.rst
239239

240240
registry_data_exists?
241241
-----------------------------------------------------

0 commit comments

Comments
 (0)