Alex Willmer
7d5f63ccbf
Cleanup unused and missing imports
1 month ago
Jarl Gullberg
59d5d74abd
Add FreeIPA client modules to the always-fork list.
3 months ago
Alex Willmer
0187418697
ansible_mitogen: alpha datatag handling & CI for Ansible 12 (ansible-core 2.19)
...
refs #1258
6 months ago
Sergey Putko
186404829d
ansible_mitogen: Fix dnf module by patching include of dnf.cli ( #1230 )
...
* fix dnf module import
* add changelog
10 months ago
Jarl Gullberg
7330d68e19
Add all ansible_freeipa modules to the always-fork list.
11 months ago
Alex Willmer
b1fd6038bf
ansible_mitogen: Remove Python 2.4 and 2.5 backward compatibility fallbacks
...
Because ansible_mitogen >= 0.3 supports Ansible >= 2.10 and Ansible 2.10
requires supports Python >= 2.7 on controllers and Python >= 2.6 on targets
these are dead weight.
See
- https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
- tox.ini
1 year ago
Alex Willmer
40695f413b
ansible_mitogen: Respect ansible_facts.discovered_interpreter_python more
...
fixes #1097
1 year ago
Alex Willmer
9185805bf2
ansible_mitogen: cast ansible_python_interpreter value
...
This was the last remaining use of `mitogen.utils.cast()`. I missed it in
#1046 .
1 year 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
4 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.
4 years ago
Alex Willmer
109feec6d5
Fix lints found by flake8
4 years ago
Alex Willmer
18c89de5a9
Remove unused module imports
4 years ago
Alex Willmer
2382d8dab5
Merge branch 'master' into issue_827_collections
4 years ago
Antti Jaakkola
ee6f2b09b9
Fix for load_plugins() called twice error with dnf
4 years ago
Philippe Kueck
a2dcedabda
fixes #827
...
some ansible collections write their own module classes derived from
ansible.module_utils.basic.AnsibleModule, thus lacking that import
in the plugin file. NewStylePlanner was unable to detect these plugins
as Ansiballz.
This commit extends the search pattern for NewStylePlanner to also
detect ansible_collections imports.
4 years ago
Steven Robertson
234dde5fc1
check Ansible version before loaders are loaded
5 years ago
MarkusTeufelberger
8d3026b109
Add ansible.legacy.setup to be fixed on py3.5
5 years ago
Steven Robertson
2510f1a2c2
fix py3.5.1-3.5.3 setup import error for Ansible 2.10
5 years ago
Steven Robertson
5a0da02e6c
code review changes, using when statements and adding trailing comma
5 years ago
Steven Robertson
196a476270
🎉 no more warnings, only load specific collection subdirs instead of top-level collection path (ie no ansible_collections/google, only ansible_collections/google/cloud, etc)
5 years ago
Steven Robertson
741e99f698
ansible 2.10 no longer has a at the end of the error msg... 🤦
5 years ago
Steven Robertson
ff8a276186
turn off failing Ansible-only tests for now, also raising errors to see what Azure is gonna do with collections
5 years ago
Steven Robertson
f757dbcb82
removed duplicate install and added debug dump of collection loading to see what tests are doing
5 years ago
Steven Robertson
0b421e0d3c
able to run docker_container installed via 'ansible-galaxy collection install community.general'
5 years ago
Steven Robertson
45797a0d34
able to send collections paths to master with very little change to core Mitogen, need to ensure imports work properly now though
5 years ago
Steven Robertson
6e51f1a184
found a way to load collections without affecting mitogen core code
5 years ago
Steven Robertson
e34cf8667f
Merge branch 'master' into collectionsSupport
5 years ago
Steven Robertson
81076c9da8
fixes setup module relative import fail on some pythons
6 years ago
Steven Robertson
376d8d0fab
remove old hacks; ansible_collections is available at time of invoker but not later
6 years ago
Steven Robertson
81694d07ab
fix typo
6 years ago
Steven Robertson
d64adb15d7
reverted autolinted code
6 years ago
Steven Robertson
e8f3154cab
Merge branch 'master' into complexAnsiblePythonInterpreterArg
6 years ago
David Wilson
d6329f3446
Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415
6 years ago
Steven Robertson
4669c8774f
handles templating ansible_python_interpreter values
6 years ago
David Wilson
9035884c77
ansible: abstract worker process model.
...
Move all details of broker/router setup out of connection.py, instead
deferring it to a WorkerModel class exported by process.py via
get_worker_model(). The running strategy can override the configured
worker model via _get_worker_model().
ClassicWorkerModel is installed by default, which implements the
extension's existing process model.
Add optional support for the third party setproctitle module, so
children have pretty names in ps output.
Add optional support for per-CPU multiplexers to classic runs.
6 years ago
David Wilson
34fb9da1be
issue #570 : add firewalld to always-fork list for now.
7 years ago
David Wilson
1f77d24bec
Update copyright year everywhere.
7 years ago
David Wilson
599da0689a
issue #477 / ansible: avoid a race in async job startup.
...
Ansible 2.3/Python 2.4 work revealed there is no guarantee a slow target
will have written the initial job status file out before a fast
controller makes an initial check for it. Therefore, provide AsyncRunner
with a sender it should send a message to when the initial job file has
been written.
As a bonus, also catch and report exceptions happening early in
AsyncRunner, rather than leaving them to end up in -vvv output.
7 years ago
David Wilson
8f5b65f7ec
issue #477 : introduce subprocess isolation.
...
Since Python 2.4 fork is so defective, we must use subprocesses for
mitogen_task_isolation=fork. This has plenty of upside, since the long
term goal is to dump forking altogether. This allows a gentle
introduction of its replacement.
7 years ago
David Wilson
b8ca015b83
issue #61 : unused variable (reported by LGTM)
7 years ago
David Wilson
04755c3321
issue #426 : tighten up PushFileService types.
...
Bytes/Unicode mixing caused a hang, so prevent bytes entirely.
7 years ago
David Wilson
5521945bd2
ansible: temporary files take 5.
7 years ago
David Wilson
e241081cae
ansible: stop sharing target temp_dir in runner.
...
This cannot work with delegate_to, since delegate_to permits multiple
concurrent tasks to be executing on the same target.
7 years ago
David Wilson
43d9815f6d
ansible: use CallChain everywhere.
...
This replaces the 'dump to logger' behaviour of pipelined calls from
before with a call chain that returns any exception on next synchronized
call.
7 years ago
David Wilson
6c4b01642c
ansible: don't crash when adhoc tries to run a missing module.
...
ansible-playbook prints a separate error during parsing stage, adhoc
performs no such check.
7 years ago
David Wilson
2c74eac19a
issue #291 : more Ansible-compatible script invocation
...
When running any kind of script, rewrite the hashbang like Ansible does,
but subsequently ignore it and explicitly use a fragment of shell from
the ansible_*_interpreter variable to call the interpreter, just like
Ansible does.
This fixes hashbangs containing '/usr/bin/env A=1 bash' on Linux, where
putting that into a hashbang line results in an infinite loop.
7 years ago
David Wilson
e39c602fd3
issue #291 : support UNIX hashbang syntax for ansible_*_interpreter.
...
Closes #291 .
7 years ago
David Wilson
d8e0c9e12c
issue #297 : local commands must execute with WorkerProcess environment.
8 years ago
David Wilson
012745efea
issue #297 : local actions must execute with fixed directory.
...
Local actions must execute in the the parent directory of the playbook
that defines the action.
8 years ago
David Wilson
5b03e06457
issue #294 : ansible: fix mixed vanilla/Mitogen runs.
...
Don't bother trying to understand what damage PluginLoader has done to
ansible.plugins.* namespace, just ask it for the base class instead.
8 years ago