Skip to content

Commit ab603cf

Browse files
author
Delivery Server
committed
Merged change b5b368c4-b2e6-4e27-8b12-ae13114839ef
From review branch _reviews/master/topcommentupdates/1 into master Signed-off-by: jscott <[email protected]>
2 parents c604df2 + f4404bf commit ab603cf

File tree

22 files changed

+42
-6
lines changed

22 files changed

+42
-6
lines changed

chef_master/source/config_rb_metadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
.. include:: ../../includes_config/includes_config_rb_metadata.rst
88

9+
.. note:: .. include:: ../../includes_notes/includes_notes_metadata_json.rst
10+
911
Settings
1012
==========================================================================
1113
.. include:: ../../includes_config/includes_config_rb_metadata_settings.rst

chef_master/source/workstation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Some important components of workstations include:
2121
* - :doc:`knife.rb </config_rb_knife>`
2222
- The |knife rb| file is used to specify the repository-specific configuration details for |knife|.
2323
* - :doc:`metadata.rb </config_rb_metadata>`
24-
- Metadata is stored in a file called |metadata rb| that lives at the top of each cookbook’s directory.
24+
- .. include:: ../../includes_cookbooks/includes_cookbooks_metadata.rst
2525

2626
|chef dk_title|
2727
=====================================================

includes_config/includes_config_rb_metadata.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
.. The contents of this file should be modified in a way that preserves its ability to appear in multiple topics.
33
44
5-
|config rb metadata| Metadata is compiled whenever a cookbook is uploaded to the |chef server| or when the ``knife cookbook metadata`` subcommand is run. |knife| creates a |metadata rb| file automatically whenever the ``knife cookbook create`` subcommand is run. In general, editing metadata should only be done using the |metadata rb| file, and then either by uploading the cookbook in which that |metadata rb| file is located to the |chef server| or by asking the |chef server| to recompile the metadata into |json| data.
5+
A |metadata rb| file is:
66

7-
.. note:: .. include:: ../../includes_notes/includes_notes_metadata_json.rst
7+
* Located at the top level of a cookbook's directory structure
8+
* Compiled whenever a cookbook is uploaded to the |chef server| or when the ``knife cookbook metadata`` subcommand is run, and then stored as |json data|
9+
* Created automatically by |knife| whenever the ``knife cookbook create`` subcommand is run
10+
* Edited using a text editor, and then re-uploaded to the |chef server| as part of a cookbook upload
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.. The contents of this file may be included in multiple topics (using the includes directive).
22
.. The contents of this file should be modified in a way that preserves its ability to appear in multiple topics.
33
4-
Every cookbook requires a small amount of metadata. Metadata is stored in a file called |metadata rb| that lives at the top of each cookbook's directory. The contents of the |metadata rb| file provides hints to the |chef server| so that cookbooks are deployed to each node correctly.
4+
Every cookbook requires a small amount of metadata. A file named |metadata rb| is located at the top of every cookbook directory structure. The contents of the |metadata rb| file provides hints to the |chef server| to help ensure that cookbooks are deployed to each node correctly.

includes_notes/includes_notes_metadata_json.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
.. The contents of this file should be modified in a way that preserves its ability to appear in multiple topics.
33
44
5-
A |metadata json| file can be edited directly, should temporary changes be required. Any subsequent upload or action that generates metadata will cause the existing |metadata json| file to be overwritten with the newly generated metadata. Therefore, any permanent change to metadata that is required should only be made in the |metadata rb| file.
5+
A |metadata json| file can be edited directly, should temporary changes be required. Any subsequent upload or action that generates metadata will cause the existing |metadata json| file to be overwritten with the newly generated metadata. Therefore, any permanent changes to cookbook metadata should be done in the |metadata rb| file, and then re-uploaded to the |chef server|.

release_chef_11-0/source/config_rb_metadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
.. include:: ../../includes_config/includes_config_rb_metadata.rst
1010

11+
.. note:: .. include:: ../../includes_notes/includes_notes_metadata_json.rst
12+
1113
Settings
1214
==========================================================================
1315

release_chef_11-10/source/config_rb_metadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
.. include:: ../../includes_config/includes_config_rb_metadata.rst
1010

11+
.. note:: .. include:: ../../includes_notes/includes_notes_metadata_json.rst
12+
1113
Settings
1214
==========================================================================
1315

release_chef_11-12/source/config_rb_metadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
.. include:: ../../includes_config/includes_config_rb_metadata.rst
1010

11+
.. note:: .. include:: ../../includes_notes/includes_notes_metadata_json.rst
12+
1113
Settings
1214
==========================================================================
1315

release_chef_11-14/source/config_rb_metadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
.. include:: ../../includes_config/includes_config_rb_metadata.rst
1010

11+
.. note:: .. include:: ../../includes_notes/includes_notes_metadata_json.rst
12+
1113
Settings
1214
==========================================================================
1315

release_chef_11-16/source/config_rb_metadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
.. include:: ../../includes_config/includes_config_rb_metadata.rst
1010

11+
.. note:: .. include:: ../../includes_notes/includes_notes_metadata_json.rst
12+
1113
Settings
1214
==========================================================================
1315

0 commit comments

Comments
 (0)