Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer documentation - Change path to connection_plugins #52577

Merged
merged 2 commits into from
Feb 27, 2019

Conversation

kbreit
Copy link
Contributor

@kbreit kbreit commented Feb 19, 2019

SUMMARY

The documentation referred to the connection plugin path as connection_plugins but the incomplete path is actually plugins/connection. This PR fixes it.

+label: docsite_pr

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

docs

The documentation referred to the connection plugin path as `connection_plugins` but the incomplete path is actually `plugins/connection`. This PR fixes it.

+label: docsite_pr
@@ -246,7 +246,7 @@ Connection plugins allow Ansible to connect to the target hosts so it can execut

Ansible version 2.1 introduced the ``smart`` connection plugin. The ``smart`` connection type allows Ansible to automatically select either the ``paramiko`` or ``openssh`` connection plugin based on system capabilities, or the ``ssh`` connection plugin if OpenSSH supports ControlPersist.

To create a new connection plugin (for example, to support SNMP, Message bus, or other transports), copy the format of one of the existing connection plugins and drop it into the ``connection_plugins`` directory.
To create a new connection plugin (for example, to support SNMP, Message bus, or other transports), copy the format of one of the existing connection plugins and drop it into the ``plugins/connection`` directory.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not necessarily true. By default we will utilize a connection_plugins directory relative to the playbook. plugins/connection has no real meaning. The default connection plugin path is defined as ~/.ansible/plugins/connection:/usr/share/ansible/plugins/connection

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm, I suppose there is more ambiguity here. As this doesn't indicate the purpose of creating the connection plugin. Whether it is to contribute back to Ansible, or just for personal development.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I read connection_plugins I read it as the path to the source (/lib/ansible/plugins/connection/) and not where the plugins are kept after installation. If I'm developing a plugin, I am thinking in the context of the source tree and not the installation path.

@ansibot
Copy link
Contributor

ansibot commented Feb 19, 2019

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 core_review In order to be merged, this PR must follow the core review workflow. docs This issue/PR relates to or includes documentation. small_patch support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Feb 19, 2019
@dagwieers dagwieers added the docsite_pr This PR is created from documentation using the "Edit on GitHub" link. label Feb 22, 2019
Copy link
Contributor

@acozine acozine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, connection_plugins is misleading here. The default paths do not have _plugin on them (see https://github.com/ansible/ansible/pull/52881/files). How about referring to the section on using plugins locally, as in my suggestion above?

docs/docsite/rst/dev_guide/developing_plugins.rst Outdated Show resolved Hide resolved
Co-Authored-By: kbreit <kevin.breit@kevinbreit.net>
@kbreit
Copy link
Contributor Author

kbreit commented Feb 27, 2019

@acozine Accepted

@acozine
Copy link
Contributor

acozine commented Feb 27, 2019

Thanks @kbreit.

@acozine acozine merged commit 4af5842 into ansible:devel Feb 27, 2019
@kbreit kbreit deleted the patch-2 branch June 5, 2019 15:27
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 core_review In order to be merged, this PR must follow the core review workflow. docs This issue/PR relates to or includes documentation. docsite_pr This PR is created from documentation using the "Edit on GitHub" link. small_patch support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants