Artem Nistratov
00dab14111
add SSH args into options documentation
2 years ago
Alex Willmer
39dfd2dfe8
ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04
2 years ago
Alex Willmer
8cda5f5537
Merge pull request #933 from moreati/ansible6
...
Ansible 6 support
2 years ago
Alex Willmer
f1503874de
ansible_mitogen: Correct ansible_become_pass/ansible_become_password precendence
...
Until Ansible 2.9 it looks like ansible_become_password had higher priority.
From Ansible 2.10 ansible_become_pass has higher priority [1]. Mitogen was not
respecting this.
I may need to rework this further, instatiating the become plugin may have
slowed down execution.
[1] Based on testing with
```
[ubuntus]
become-pass-pass ansible_become_pass=1234
become-pass-password ansible_become_password=1234
become-pass-both ansible_become_password=wrong ansible_become_pass=1234
[ubuntus:vars]
ansible_host=ubuntu2004.local
ansible_user=ubuntu
```
```
- hosts: ubuntus
gather_facts: false
become: true
tasks:
- ping:
```
2 years ago
Alex Willmer
ad4b686836
master.PkgutilMethod: Skip module loaders that raise ValueError
...
e.g. in Ansible 6, ansible-core 2.13
```
[mux 2717] 23:39:11.342416 D mitogen: PkgutilMethod(): _AnsibleCollectionLoader(path=None).get_file_name('ansible.plugins') failed: ValueError('_AnsibleCollectionLoader(path=None) cannot find files for ansible.plugins, only ansible_collections.ansible.builtin.plugins')
```
2 years ago
Alex Willmer
e8ad12e881
Ansible 6 support
...
fixes #929
2 years ago
Alex Willmer
195b400087
ci: Drop Ansible 3 tests to free up CI capacity
2 years ago
Alex Willmer
db114d3bb2
ci: Bump Ansible releases used in tests
2 years ago
Alex Willmer
63e39c1ac5
ci: Remove traces of Ansible < 2.10 (not supported in 0.3.x)
2 years ago
Alex Willmer
e36bbde9ac
tests: Replace uses of assertTrue() with specific methods
2 years ago
Alex Willmer
eb4a7e0ad5
tests: cleanup subprocess file handles in create_child_test
2 years ago
Alex Willmer
64819ecb5f
tests: Regression test for #776 (package/yum/dnf module called twice)
2 years ago
Alex Willmer
24c845379a
tests: Remove redundant regression tags
...
The tag is applied by the playbook that imports this one.
2 years ago
Alex Willmer
db0ffae352
tests: Enable stricter error handling, fix resulting failures
2 years ago
Alex Willmer
c32577295a
tests: Check and/or suppress stderr of subprocesses, reduce shell=True uses
2 years ago
Alex Willmer
216e7c9150
tests: Correct Ansible targets
2 years ago
Alex Willmer
8e79488768
tests: Mark or avoid sudo tasks on localhost
2 years ago
Alex Willmer
f070767dad
tests: Use meaningful play names
2 years ago
SAADY Yousef
c1e72b8225
Fix typo changelog.rst
2 years ago
David Mehren
a30a743ce7
Add ansible.builtin.dnf to ALWAYS_FORK_MODULES
...
The new fully qualified name of the DNF module needs to also be added to the list.
Fixes #832
2 years ago
Alex Willmer
d71fb672e8
Begin v0.3.4.dev0
3 years ago
Alex Willmer
c0d3deeac5
Prepare v0.3.3
3 years ago
Felix Stupp
b1e67cc7df
tests/ansible/README: Replace reference with actual link
...
- working for GitHub and similar Markdown engines
3 years ago
Alex Willmer
89c0cc94d1
Merge pull request #923 from moreati/issue915
...
Fix [DEPRECATION WARNING]: The '_remote_checksum()' method is deprecated.
3 years ago
Alex Willmer
25ea6dde02
ansible_mitogen: Allow mitogen_fetch to bypass slurp module
...
This reapplies an earlier change, when this plugin was first introduced to
Mitogen. The plugin was updated to fix
[DEPRECATION WARNING]: The '_remote_checksum()' method is deprecated.
I've elected to short-circuit the if statemtn logic, rather than
deleting/unindenting, to make the code delta much smaller. This should make it
easier to maintain/update.
Fixes #915
3 years ago
Alex Willmer
0ff9c6e579
ansible_mitogen: Replace fetch action plug from upstream
...
From
be0cdc0ea2/lib/ansible/plugins/action/fetch.py
3 years ago
Alex Willmer
11a61acb32
Merge pull request #922 from moreati/functools.wraps
...
mitogen.utils: Preserve docstring of functions decorated @with_router
3 years ago
Alex Willmer
e101cc4f44
mitogen.utils: Preserve docstring of functions decorated @with_router
...
Co-authored-by: Rezart Qelibari <gast-kontakt+mitogen@astzweig.de>
Replaces #837
Fixes #836
3 years ago
Alex Willmer
a743e831c6
Merge pull request #921 from moreati/import-cleanups
...
Cleanup imports in mitogen, ansible_mitogen, & tests
3 years ago
Alex Willmer
31b3a4eb4a
ansible_mitogen: Standardise __future__ imports to match Ansible
...
Some modules additionally enable unicode_literals (which Ansible doesn't do).
I've chosen not to change that, for now.
3 years ago
Alex Willmer
3dbb0e28ce
tests: List leaked file descriptors
3 years ago
Alex Willmer
109feec6d5
Fix lints found by flake8
3 years ago
Alex Willmer
18c89de5a9
Remove unused module imports
3 years ago
Alex Willmer
566d75d82f
Merge pull request #920 from moreati/unittest-deprecations
...
Add Ansible podman connection support
3 years ago
Alex Willmer
db9e52ce8e
tests: Run containers on macOS with podman, instead of Docker
3 years ago
Alex Willmer
96e20a09d6
ansible_mitogen: Add podman connection plugin
3 years ago
Alex Willmer
0417d4d73a
Replace os.system() with subprocess.check_call()
...
Non-zero return codes should raise an exception, not pass silently.
3 years ago
Alex Willmer
1287d58a54
Use with open(): ... to ensure file objects get closed
3 years ago
Alex Willmer
65809a6f0f
mitogen: Handle Python 3.10 threading depreactions
3 years ago
Alex Willmer
caa20be43e
tests: Use TestCase.assertEqual()
...
assertEquals() is deperecated in unittest
3 years ago
Alex Willmer
c4f1cc150d
Merge pull request #918 from moreati/python3.10
...
Python 3.10 support
3 years ago
Alex Willmer
a8317c2393
tests: Remove unittest2, use stdlib unittest
...
unittest2 is incomplatible with Python 3.10
3 years ago
Alex Willmer
2a95d039ab
Python 3.10 support
3 years ago
Alex Willmer
af03b9a9b3
Merge pull request #917 from moreati/cleanups
...
Test and build improvements
3 years ago
Alex Willmer
104865e866
build: Remove declared support for Python<2.7
...
Master and the 0.3.x branch have never supported these versions, but we didn't
update the metadata.
3 years ago
Alex Willmer
ccca77bcc0
tests: Fix old Ansible dependencies installed by Tox
3 years ago
Alex Willmer
63543b3b83
tests: Skip heavy & sudo Ansible tests by default
...
We don't wish to modify someone's local OS, or rely on them having sudo (with
or without password).
3 years ago
Alex Willmer
c87976af40
tests: Fix lingering Python 2 isms
3 years ago
Alex Willmer
c9318a26f6
tests: Suppress pip version warnings
3 years ago
Alex Willmer
491458673b
tests: Manage ANSIBLE_STRATEGY with Tox
3 years ago