David Wilson
9cfcf79f43
sudo: accept but discard -S option. fixes #108
7 years ago
David Wilson
ce9a1fef26
docs: fix float
7 years ago
David Wilson
23f78ca5a2
README: move testing bits into tests directory.
7 years ago
David Wilson
04bb5881b6
ansible: doc updates
7 years ago
David Wilson
95ea75907d
ssh: Fix AttributeError.
7 years ago
David Wilson
9515291024
docs: small fix
7 years ago
David Wilson
485e489aa2
ansible: correct sys.path fixup.
7 years ago
David Wilson
3ddbf1a503
ansible: basic support for ssh_args
7 years ago
David Wilson
1b28252ad0
docs: get rid of "medium risk" category
7 years ago
David Wilson
da00437f1e
ansible: Support ansible_ssh_private_key_file
7 years ago
David Wilson
a87b665099
ansible: limited support for become_flags, more docs.
7 years ago
David Wilson
235e1df987
sudo: support parsing sudo flags back out into parameters
7 years ago
David Wilson
e48b6ca7f4
test.sh: make it work on OS X out of the box
7 years ago
David Wilson
1b2cbf1e00
examples: longer (but still crap) async_polling.yml
7 years ago
David Wilson
e010e68874
examples: import broken non_python_modules.yml.
7 years ago
David Wilson
cd53023768
docs: Fix install docs now Ansible package layout changed.
7 years ago
David Wilson
e0382ab2db
ansible: teach ActionModule to disappear for non-Mitogen Connections
...
Closes #103 .
7 years ago
David Wilson
bde6f888a0
ansible: restructure package to avoid yet more madness
...
Ansible's PluginLoader makes up bullshit when it imports a module
(mostly because it has to make up something), therefore we ended up with
duplicate copies of ansible_mitogen loaded: one under
ansible.plugins.*.mitogen, and one under the canonical namespace.
Which broke isinstance().
7 years ago
David Wilson
734fb75203
ansible: mixins.py docstrings.
7 years ago
David Wilson
03e51fdaa7
docs: mitogen.core.Latch docs
7 years ago
David Wilson
f5b5e4849e
tests: import very basic latch_test
7 years ago
David Wilson
d348a826ff
master: tidy up trixxy importer syntax slightly
7 years ago
David Wilson
7080751f13
ansible: support environment: too.
7 years ago
David Wilson
f74a56daf3
scirpts: drop old buggy DTrace script
7 years ago
David Wilson
e84c33de59
Initial flake8 configuration.
7 years ago
David Wilson
712e5dfca1
docs: fix image labels
7 years ago
David Wilson
c2793b7102
docs: import but don't link compared.rst
7 years ago
David Wilson
2ecc6f43a4
docs: Import, but do not yet link signals.rst
7 years ago
David Wilson
7cf2edc3a8
ansible: Support many more common playbook variables.
7 years ago
David Wilson
eca7805cba
ansible: one more cast() call.
...
Need a more general solution to littering the code with this crap.
7 years ago
David Wilson
ba644e184d
docs: Split up limitations list, add warning
7 years ago
David Wilson
eaea8446ae
examples: simplistic async_polling.yml
7 years ago
David Wilson
3183dd4147
ansible: initial support for async jobs
...
Running in a thread to begin with, but this must change.
7 years ago
David Wilson
e913c11e50
docs: new Ansible limitation
7 years ago
David Wilson
f6d87faf37
tests: import ansible_helpers_test.
7 years ago
David Wilson
207159cf1a
ansible: fix bug in apply_mode_spec().
7 years ago
David Wilson
ff617824a1
ansible: fix some flake8 errors
...
* Unused imports
* Undefined names in helpers.py
* Copyright header wrapping
7 years ago
David Wilson
76e739a0ba
ansible: inverted sense of execute paramter
7 years ago
David Wilson
1f432abd2d
Remove whoami.yml, it's now done by delegate_to.yml.
7 years ago
David Wilson
860a635500
docs: remove delegate_to limitation
7 years ago
David Wilson
9fee0bd112
ansible: basic regression test for delegation/sudo
7 years ago
David Wilson
1b090a6c0a
ansible: fix become:true with sudo:true
7 years ago
David Wilson
83f2862431
ansible: _remote_chmod() / _fixup_perms2() can be called sometimes.
...
It's used at least by the copy module, even though the result is still
mostly a no-op. _remote_chmod() doesn't accept octal mode, it accepts
symbolic mode. So implement a symbolic parser in helpers.py.
7 years ago
Alex Willmer
33781aba2c
core: Correct naming of Stream.sent_modules
...
Fixes #90
7 years ago
Alex Willmer
d4a546dcbc
parent: Fix ModuleForwarder not sending related packages
...
Found due to a LGTM warning about unused loop variable (related). As far
as I can tell the callback was sending fullname multiple times. KeyError
check added because I found NestedTest failed - mitogen.parent had
mitogen as one of it's related, and mitogen was not in the cache.
Refs #61
7 years ago
Alex Willmer
227cd3aa60
ssh, sudo: Remove redundant else clause on bootstrap loop
...
Since the for loops don't contain any break statements the StreamErrors
will always be raised when the loop completes without the method
resturning.
See https://lgtm.com/rules/5980098/
Refs #61
7 years ago
Alex Willmer
cbc20f3348
compat: ignore LGTM checks on third party
...
Refs #61
7 years ago
Alex Willmer
a1aab30e63
core: Implement Dead.__ne__ & Dead.__hash__
...
Both these addtions are to address warnings in
https://lgtm.com/projects/g/dw/mitogen/alerts/?mode=list . Namely that if
a class defines an equality method then it should also define an
inequality and a hash method.
Refs #61
7 years ago
Alex Willmer
4b373c421b
core: Standardise type of Importer.whitelist
...
This seemed a reasonable streamlining, but I'm happy to be overruled.
7 years ago
Alex Willmer
ecaa8609f3
core: Add docstring to is_blacklisted_import()
...
This documents the existing behaviour, which may not be the intended.
7 years ago