Commit Graph

299 Commits

Author SHA1 Message Date
David Wilson 04b65020ac issue #278: ansible: support mitogen_ssh_debug_level variable. 2018-06-22 16:32:24 +01:00
David Wilson b58603c7a4 issue #278: ssh: support ssh_debug_level option and log TTY output.
Now debug logs may be captured all the way through the connection.
2018-06-22 16:30:51 +01:00
David Wilson 3994f1b30a ansible: implment async job time limit. 2018-06-10 02:28:49 +01:00
David Wilson d2accbce53 docs: remove more Ansible limitations 2018-06-10 01:34:15 +01:00
David Wilson 9e78c20eba core/parent: add Context.call_no_reply(). 2018-06-09 21:01:58 +01:00
David Wilson a3b747af1b issue #186: add PushFileService
This is like FileService but blocks until the file is pushed by a parent
context, with deduplicating behaviour at each level in the hierarchy. It
does not stream large files, so it is only suitable for small files like
Python modules.

Additionally add SerializedInvoker for use with PushFileService, which
ensures all method calls to a single service occur in sequence.
2018-06-07 16:42:13 +01:00
David Wilson daa9cfd0a8 ansible: MITOGEN_DUMP_THREAD_STACKS for mux process too 2018-05-29 18:10:08 +01:00
David Wilson 7162c13e05 docs: add more notes for getting_started.rst 2018-05-29 17:30:49 +01:00
David Wilson aba6cb302a docs: add example sudoers rule
hat tip @seuf :)
2018-05-28 23:33:21 +01:00
David Wilson 3b0addcfb0 service: v2. Closes #213 2018-05-28 05:38:33 +01:00
David Wilson d2714752ee docs: tidy ups 2018-05-25 13:55:58 +01:00
David Wilson 61365236ad docs/select: fix up more references, fix headings. 2018-05-25 04:47:59 +01:00
David Wilson 4bf3d01104 select: add missing get(block=..) parameter. 2018-05-25 00:26:21 +01:00
David Wilson b0ce6eecd7 fork: support on_start= argument. 2018-05-23 16:25:17 +01:00
David Wilson 863a95e860 docs: update contributors 2018-05-18 10:58:25 +01:00
David Wilson 70376d861a issue #217: docs: remove limitation 2018-05-15 01:57:09 +01:00
David Wilson 4cd9e09130 issue #249: docs: remove limitation 2018-05-15 00:22:02 +01:00
David Wilson bc7be1879d issue #249: initial poller implementation (BSD only) 2018-05-14 18:31:38 +01:00
David Wilson b7ab473343 issue #186: split handle list up so it makes sense 2018-05-13 17:05:09 +01:00
David Wilson d1a22cb5d4 issue #186: parent: implement FORWARD_MODULE.
To support detach, we must be able to preload the target with every
module it will need prior to detachment. This implements the
intermediary part of the process (i.e. the Ansible fork parent) --
receiving LOAD_MODULE/FORWARD_MODULE pairs and ensuring they reach the
child.
2018-05-13 16:58:47 +01:00
David Wilson 8a089e975d docs: Document Router.unidirectional. 2018-05-13 16:13:50 +01:00
David Wilson 48535cc661 docs: more accurate bullet. 2018-05-08 04:28:39 +01:00
David Wilson d148e3db4e docs: move installation section above demo 2018-05-08 04:24:33 +01:00
David Wilson 9b761a2baf docs: initial contributors page 2018-05-06 08:33:07 +01:00
David Wilson cecef992b0 issue #218: core: add Secret and Blob types. 2018-05-04 21:34:11 +01:00
David Wilson 43e9e51ed6 docs: link signals into internals.rst. 2018-05-04 03:47:29 +01:00
David Wilson 3058efc80f docs: more updates.
- accurate description of Ansible timeouts
- rough detach() sketch
2018-05-03 17:37:24 +01:00
David Wilson 7f1060f54a issue #186: initial version of subtree detachment. 2018-05-03 01:11:14 +01:00
David Wilson 8fc1eac6ae utils: combine MITOGEN_LOG_LEVEL and MITOGEN_LOG_IO.
Saves lots of readline fiddling.
2018-05-02 20:35:17 +01:00
David Wilson f5238fe791 docs: update copyright 2018-05-02 20:03:00 +01:00
David Wilson d3fe24a4f6 docs: update connection delegation example 2018-05-02 18:58:10 +01:00
David Wilson 2ee727f5c0 docs: typos and clarifications 2018-05-02 18:44:34 +01:00
David Wilson 4d1c6d2101 issue #127: ssh: reasonable solution to host key checking.
Ideally it would be possible to specify a callback function, but this is
not possible for proxied connections. So simply provide the 3 most
useful modes, defaulting to the most secure.

Closes #127. Closes #134.
2018-05-02 17:47:06 +01:00
David Wilson 78c401ba4d ansible: support su become method. 2018-05-02 03:49:44 +01:00
David Wilson 3322eaef45 Basic "su" method. 2018-05-02 03:38:36 +01:00
David Wilson 187e3a3fc1 ansible: support 2.3 too. 2018-04-30 19:15:51 +01:00
David Wilson f5d22a3ca1 core: support deleting handlers, make Receiver.close() unregister 2018-04-29 19:41:23 +01:00
David Wilson 58eb9828b0 docs: remove limitation. 2018-04-29 19:35:43 +01:00
David Wilson ff7fb00569 parent: return latch to wait() caller to allow graceful timeout 2018-04-29 10:11:13 +01:00
David Wilson b0309b539c ansible: disable interpreter recycling for connections.
Must explicitly specify enable_lru=True in ContextService.get() to
trigger recycling.
2018-04-29 09:53:16 +01:00
David Wilson ec22fee7a7 docs: more ansible updates 2018-04-29 09:37:49 +01:00
David Wilson 79fd35092b docs: more links 2018-04-29 04:00:11 +01:00
David Wilson 65e6a44fe7 docs: add links. 2018-04-29 02:31:32 +01:00
David Wilson 29f6c46e97 docs: add file transfer safety section. 2018-04-29 02:14:29 +01:00
David Wilson bba2a42e44 ansible: add mitogen_sudo method, split out connection subclasses.
Slowly moving towards real implementations in those files.
2018-04-29 01:45:52 +01:00
David Wilson 7c5bbc5168 setns: support changing user.
To match existing third party plugin.
2018-04-29 00:38:53 +01:00
David Wilson 58d8f60f57 docs: better connection type docs 2018-04-28 21:36:51 +01:00
David Wilson e8b4c4e683 issue #223: implement setns connection type
machinectl does not support any sensible form of pipe to the child
process, so it is necessary to bypass it when talking to a systemd
container (see systemd/systemd#8850).

This can also form the basis for issue #223, where the post-fork
namespace switching dance required to connect to the Pythonless
container will be the same.
2018-04-28 06:41:34 +01:00
David Wilson 79c2d6c289 docs: links to Ansible docs 2018-04-27 06:50:03 +01:00
David Wilson 098995539d ansible: implement FreeBSD jail support. 2018-04-27 06:21:10 +01:00