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/docsite/rst/dev_guide/index.rst

88 lines
3.7 KiB
ReStructuredText

.. _developer_guide:
***************
Developer Guide
***************
Welcome to the Ansible Developer Guide!
**Who should use this guide?**
If you want to extend Ansible by using a custom module or plugin locally, creating a module or plugin, adding functionality to an existing module, or expanding test coverage, this guide is for you. We've included detailed information for developers on how to test and document modules, as well as the prerequisites for getting your module or plugin accepted into the main Ansible repository.
Find the task that best describes what you want to do:
* I'm looking for a way to address a use case:
* I want to :ref:`add a custom plugin or module locally <developing_locally>`.
* I want to figure out if :ref:`developing a module is the right approach <module_dev_should_you>` for my use case.
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
* I want to :ref:`develop a collection <developing_collections>`.
* I've read the info above, and I'm sure I want to develop a module:
* What do I need to know before I start coding?
* I want to :ref:`set up my Python development environment <environment_setup>`.
* I want to :ref:`get started writing a module <developing_modules_general>`.
* I want to write a specific kind of module:
* a :ref:`network module <developing_modules_network>`
* a :ref:`Windows module <developing_modules_general_windows>`.
* an :ref:`Amazon module <AWS_module_development>`.
* an :ref:`OpenStack module <OpenStack_module_development>`.
* an :ref:`oVirt/RHV module <oVirt_module_development>`.
* a :ref:`VMware module <VMware_module_development>`.
* I want to :ref:`write a series of related modules <developing_modules_in_groups>` that integrate Ansible with a new product (for example, a database, cloud provider, network platform, etc.).
* I want to refine my code:
* I want to :ref:`debug my module code <debugging>`.
* I want to :ref:`add tests <developing_testing>`.
* I want to :ref:`document my module <module_documenting>`.
* I want to :ref:`document my set of modules for a network platform <documenting_modules_network>`.
* I want to follow :ref:`conventions and tips for clean, usable module code <developing_modules_best_practices>`.
* I want to :ref:`make sure my code runs on Python 2 and Python 3 <developing_python_3>`.
* I want to work on other development projects:
* I want to :ref:`write a plugin <developing_plugins>`.
* I want to :ref:`connect Ansible to a new source of inventory <developing_inventory>`.
* I want to :ref:`deprecate an outdated module <deprecating_modules>`.
* I want to contribute back to the Ansible project:
* I want to :ref:`understand how to contribute to Ansible <ansible_community_guide>`.
* I want to :ref:`contribute my module or plugin <developing_modules_checklist>`.
* I want to :ref:`understand the license agreement <contributor_license_agreement>` for contributions to Ansible.
If you prefer to read the entire guide, here's a list of the pages in order.
.. toctree::
:maxdepth: 2
developing_locally
developing_modules
developing_modules_general
developing_modules_checklist
developing_modules_best_practices
developing_python_3
debugging
developing_modules_documenting
developing_modules_general_windows
developing_modules_general_aci
platforms/aws_guidelines
platforms/openstack_guidelines
platforms/ovirt_dev_guide
platforms/vmware_guidelines
developing_modules_in_groups
testing
module_lifecycle
developing_plugins
developing_inventory
developing_core
developing_program_flow_modules
developing_api
developing_rebasing
developing_module_utilities
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
developing_collections
collections_galaxy_meta
overview_architecture