You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/docs/templates/collections_galaxy_meta.rst.j2

90 lines
2.0 KiB
Plaintext

.. _collections_galaxy_meta:
************************************
Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
Collection Galaxy metadata structure
************************************
A key component of an Ansible collection is the ``galaxy.yml`` file placed in the root directory of a collection. This
file contains the metadata of the collection that is used to generate a collection artifact.
Structure
=========
The ``galaxy.yml`` file must contain the following keys in valid YAML:
.. rst-class:: documentation-table
.. list-table::
:header-rows: 1
:widths: auto
* - Key
- Comment
{%- for entry in options %}
* - .. rst-class:: value-name
@{ entry.key }@ |br|
.. rst-class:: value-type
@{ entry.type | documented_type }@ |_|
{% if entry.get('required', False) -%}
.. rst-class:: value-separator
/ |_|
.. rst-class:: value-required
required
{%- endif %}
- {% for desc in entry.description -%}
@{ desc | trim | rst_ify }@
{% endfor -%}
{%- endfor %}
Examples
========
.. code-block:: yaml
namespace: "namespace_name"
name: "collection_name"
version: "1.0.12"
readme: "README.md"
authors:
- "Author1"
- "Author2 (https://author2.example.com)"
- "Author3 <author3@example.com>"
dependencies:
"other_namespace.collection1": ">=1.0.0"
"other_namespace.collection2": ">=2.0.0,<3.0.0"
"anderson55.my_collection": "*" # note: "*" selects the highest version available
license:
- "MIT"
tags:
- demo
- collection
repository: "https://www.github.com/my_org/my_collection"
Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
.. seealso::
:ref:`developing_collections`
Develop or modify a collection.
:ref:`developing_modules_general`
Learn about how to write Ansible modules
:ref:`collections`
Learn how to install and use collections.
`Mailing List <https://groups.google.com/group/ansible-devel>`_
The development mailing list
`irc.freenode.net <http://irc.freenode.net>`_
#ansible IRC chat channel