Mirror of mitogen
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.
 
 
Go to file
David Wilson 3fab8a3af5 ansible: connection delegation v1
This implements the first edition of Connection Delegation, where
delegating connection establishment is initially single-threaded.

ansible_mitogen/strategy.py:
ansible_mitogen/plugins/connection/*:

  Begin splitting connection.Connection into subclasses, exposing them
  directly as "mitogen_ssh", "mitogen_local", etc. connection types.

  This is far from removing strategy.py, but it's a tiny start.

ansible_mitogen/connection.py:

  * config_from_play_context() and config_from_host_vars() build up a
    huge dictionary containing either more or less PlayContext contents,
    or our best attempt at reconstructing a host's connection config
    from its hostvars, where that config is not the current
    WorkerProcess target.

    They both produce the same format with the same keys, allowing
    remaining code to have a single input format.

    These dicts contain fields named after how Ansible refers to them,
    e.g. "sudo_exe".

  * _config_from_via() parses a basic connection specification like
    "username@inventory_name" into one of the aforementioned dicts.

  * _stack_from_config() produces a list of dicts describing the order
    in which (Mitogen) connections should be established, such that each
    element is proxied via= the previous element. The dicts produced by
    this function use Mitogen keyword arguments, the former di.

    These dicts contain fields named after how Mitogen refers to them,
    e.g. "sudo_path".

  * Pass the stack to ContextService, which is responsible for actual
    setup of the full chain.

ansible_mitogen/services.py:

  Teach get() to walk the supplied stack, establishing each connection
  in turn, creating refounts for it before continuing.

  TODO: refcounting is broken in a variety of cases.
7 years ago
.travis issue #210: run DebOps under v2.5.1 too. 7 years ago
ansible_mitogen ansible: connection delegation v1 7 years ago
docs docs: remove warning labels. 7 years ago
examples issue #164: split "examples" out into regression/integration tests. 7 years ago
mitogen core: support Receiver.get(thread_dead=False) 7 years ago
tests tests: use test-targets group, not all group 7 years ago
.gitignore docs: fix intensely annoying _prefix, 2 years later. 7 years ago
.lgtm.yml compat: ignore LGTM checks on third party 7 years ago
.travis.yml issue #210: run DebOps under v2.5.1 too. 7 years ago
LICENSE Add license text everywhere. 7 years ago
README.md README: move testing bits into tests directory. 7 years ago
dev_requirements.txt tests: Add coverage as a dev requirement 7 years ago
preamble_size.py Add mitogen.service to preamble_size.py 7 years ago
run_tests issue #164: rename 'test' to 'run_tests' to avoid tab complete conflict 7 years ago
setup.cfg tests: Switch to unit2 test runner, with coverage 7 years ago
setup.py setup: Scan project dir to find packages 7 years ago
tox.ini tests: Switch to unit2 test runner, with coverage 7 years ago

README.md