Skip to content

Migrate ansible_mitogen.plugins to ansible collections #961

@ITD27M01

Description

@ITD27M01
  • Which version of Ansible are you running?

= 2.11

  • Is your version of Ansible patched in any way?
    No

  • Are you running with any custom modules, or module_utils loaded?
    A lot of modules from different Ansible collections

  • Have you tried the latest master version from Git?
    No

  • Mention your host and target OS and versions
    Ubuntu 22.04

  • Mention your host and target Python versions
    3.8 or 3.10

Hi, thank you for such amazing plugin!

The new convenient distribution format for Ansible plugins/modules is Ansible Collections. Any plugin either inventory/action/lookup/strategy plugin or Ansible-module could be packaged to such collection and distributed to end users via Ansible Galaxy or collection git repo. All the python code for Ansible (except SDK libraries) should be distributed as a collection and the user experience will be as follows:

  1. Install the python requirements
# pip3 install mitogen
or
# apt-get install python3-mitogen
  1. Install Ansible requirements
$ ansible-galaxy install -r requirements.yml
or
$ ansible-galaxy collection install mitogen-hq.mitogen

  1. Use mitogen plugin from collection in ansible.cfg by FQCN
strategy_plugins = mitogen-hq.mitogen.strategy
strategy = mitogen_linear

It dramatically simplifies the usage and environment setup.

The good collections examples are collections for cloud providers such as AWS or OpenStack:

https://github.com/ansible-collections/amazon.aws
https://github.com/openstack/ansible-collections-openstack

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-0.3Issues related to 0.3.X Mitogen releasesbugCode feature that hinders desired execution outcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions