Commit Graph

750 Commits (a7dbbd96aaa5d1ff76c89f1826d3019905487797)
 

Author SHA1 Message Date
David Wilson a39ab8fa54 ansible: basic support for ssh_args 7 years ago
David Wilson 8f399083f5 docs: get rid of "medium risk" category 7 years ago
David Wilson 6bc0fd494a ansible: Support ansible_ssh_private_key_file 7 years ago
David Wilson 3beddf39be ansible: limited support for become_flags, more docs. 7 years ago
David Wilson 56b13be718 sudo: support parsing sudo flags back out into parameters 7 years ago
David Wilson 7d10ebbef3 test.sh: make it work on OS X out of the box 7 years ago
David Wilson 2a88b6264f examples: longer (but still crap) async_polling.yml 7 years ago
David Wilson a26e1589e2 examples: import broken non_python_modules.yml. 7 years ago
David Wilson 9133ceac08 docs: Fix install docs now Ansible package layout changed. 7 years ago
David Wilson 3a3356e52e ansible: teach ActionModule to disappear for non-Mitogen Connections
Closes #103.
7 years ago
David Wilson e77c8055fb 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 1e20887416 ansible: mixins.py docstrings. 7 years ago
David Wilson 1b03a79107 docs: mitogen.core.Latch docs 7 years ago
David Wilson 785ccbcb7a tests: import very basic latch_test 7 years ago
David Wilson 979f0a8e2e master: tidy up trixxy importer syntax slightly 7 years ago
David Wilson 950e9f3364 ansible: support environment: too. 7 years ago
David Wilson e3842db315 scirpts: drop old buggy DTrace script 7 years ago
David Wilson 446c97b910 Initial flake8 configuration. 7 years ago
David Wilson e1fb156a56 docs: fix image labels 7 years ago
David Wilson b708c3672a docs: import but don't link compared.rst 7 years ago
David Wilson 52d5f47743 docs: Import, but do not yet link signals.rst 7 years ago
David Wilson 7785aa4ff8 ansible: Support many more common playbook variables. 7 years ago
David Wilson b9433d9969 ansible: one more cast() call.
Need a more general solution to littering the code with this crap.
7 years ago
David Wilson 8aeb0d6bb5 docs: Split up limitations list, add warning 7 years ago
David Wilson 80b56e61f5 examples: simplistic async_polling.yml 7 years ago
David Wilson d0b58d176b ansible: initial support for async jobs
Running in a thread to begin with, but this must change.
7 years ago
David Wilson d727d68068 docs: new Ansible limitation 7 years ago
David Wilson 220a41a2b3 tests: import ansible_helpers_test. 7 years ago
David Wilson 4807abadc4 ansible: fix bug in apply_mode_spec(). 7 years ago
David Wilson 277b8e4172 ansible: fix some flake8 errors
* Unused imports
* Undefined names in helpers.py
* Copyright header wrapping
7 years ago
David Wilson f81fe7eb32 ansible: inverted sense of execute paramter 7 years ago
David Wilson a0756755bc Remove whoami.yml, it's now done by delegate_to.yml. 7 years ago
David Wilson 9dbbd2e2dd docs: remove delegate_to limitation 7 years ago
David Wilson 365c4382dd ansible: basic regression test for delegation/sudo 7 years ago
David Wilson 6442aa47d1 ansible: fix become:true with sudo:true 7 years ago
David Wilson f649318707 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
dw c8cb320832
Merge pull request #94 from moreati/import-no5
core: Correct naming of Stream.sent_modules
7 years ago
dw 5d68d6499d
Merge pull request #95 from moreati/lgtm
Address lgtm.com warnings
7 years ago
dw 7f46b8f1f3
Merge pull request #99 from moreati/is-wearing-trainers
Test and document semantics of is_blacklisted_module()
7 years ago
David Wilson eeeea25eb9 docs: more Ansible 7 years ago
David Wilson 2837ec2ebe docs: document one more Ansible limitation 7 years ago
David Wilson 69f4c541a8 docs: Replace shifty hacker dude with plebey skater dude
Farewell, shifty hacker dude! May your 0days be many and your
indictments be few
7 years ago
David Wilson 47e2675acc docs: new Ansible limitation, add new heading
Some differences are eventually likely to become permanent, because the
existing behaviour is unforgiveable.
7 years ago
David Wilson 97ff132efd ansible: better emulate _low_level_execute_command()
Still needs a ton of work to emulate argument handling, shell selection,
and output emulation in every case. Unsurprisingly, Ansible documents
none of this.
7 years ago
David Wilson 7654a273d8 core: Handle unpicklable data in dispatch_calls()
Sending just via .call_async() would previously crash the child, now it
generates CallError like intended.
7 years ago
Alex Willmer ba3bc0f7f1 core: Standardise type of Importer.whitelist
This seemed a reasonable streamlining, but I'm happy to be overruled.
7 years ago
Alex Willmer 4178c40617 core: Add docstring to is_blacklisted_import()
This documents the existing behaviour, which may not be the intended.
7 years ago
Alex Willmer 621f2533f7 tests: Add mitogen.core.is_blacklisted_import() tests
These test the current behviour, which may not be exactly the intended
behaviour. Refs #98
7 years ago
Alex Willmer 5d0ae768d8 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 be0b997a4c 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