David Wilson
2d50270781
sudo: support '-i' flag.
...
Closes #343 .
6 years ago
David Wilson
a6995a5288
issue #338 : refactor env handling into class and fix tests.
6 years ago
David Wilson
06ae59702c
tests: rationalize matrix and rewrite ansible_tests
...
Now all distros run in parallel.
6 years ago
David Wilson
da391f0542
tests: fix host limit.
6 years ago
David Wilson
ce058eb8bd
Add 'clean' target to makefile.
6 years ago
David Wilson
8eb288856c
issue #338 : run /etc/environment test with become:true.
6 years ago
David Wilson
ad365dad56
issue #340 : one more test, update Changelog.
6 years ago
David Wilson
916e46621b
issue #340 : add connection delegation tests.
6 years ago
David Wilson
aed8fb531b
tests: unused imports
6 years ago
David Wilson
6dcd5f8998
issue #340 : split up Connection._connect()
...
The logic was getting too busy.
6 years ago
David Wilson
a1e653978b
issue #340 : connection delegation used wrong variable name.
...
When inventory name did not match remote_addr, it would attempt to SSH
to the inventory name.
6 years ago
David Wilson
370b98f960
ansible: tidy up connection.py.
...
- more docstrings.
- _wrap_or_none -> optional_secret()
6 years ago
David Wilson
d39efd9f54
tests: add new users for conndel tests.
6 years ago
David Wilson
e48e32cd0c
tests: image_prep fixes.
6 years ago
David Wilson
e1306bb03d
tests: build Docker images in parallel
6 years ago
David Wilson
8e35103185
docs: Update Changelog.
6 years ago
David Wilson
7d62c79ab7
docker: redirect stderr to stdout for nicer exceptions.
...
Unclear whether or not this is a hack, or whether it should be the
default for more connection methods. When enabled, the exception text
thrown when bootstrap fails includes the stderr text, which is
apparently always useful.
6 years ago
David Wilson
df112be704
tests: teach controller.yml to configure git too
6 years ago
David Wilson
9e572a7939
ansible: fix duplicate MuxProcess socket write.
...
The while: loop was necessary due to some cutpaste further on down the
file.
6 years ago
David Wilson
49c804937d
tests: import 2 more simple benchmarks.
6 years ago
David Wilson
9365f254d2
Update ChangeLog.
6 years ago
David Wilson
b521f215fd
ansible: handle >2.6 magic exceptions + sys.excepthook damage
...
Closes #332 .
6 years ago
David Wilson
a192935daf
tests: merge build_docker_images.py with osx_setup.yml
...
Hooray!
6 years ago
David Wilson
053c594d65
ansible: prevent logs spamming user console on exit.
...
Closes #331 .
6 years ago
David Wilson
6f524d3ff8
issue #339 : minimal tests for lxc/lxd modules.
6 years ago
David Wilson
2c2fc73b0a
tests: whups, s/ansible_hostname/ansible_host/
6 years ago
David Wilson
1f21a30e7f
issue #251 : ansible: watch for delegate_to during connection delegation.
...
This needs more work -- pretty certain that python_path and suchlike are
coming from the wrong place. Possibly we need another config_from_..()
specialized for delegate_to.
6 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.
6 years ago
David Wilson
34a9f67115
issue #339 : whoops, actually wire up new connection method.
6 years ago
David Wilson
b964e647d2
tests: split inventory up slightly.
...
This makes it easier to run connection delegation tests against either
the local machine or a container.
6 years ago
David Wilson
1473f49505
ansible: emulate /etc/environment reloading behaviour of vanilla.
...
This change is relatively incomplete -- ideally we could snapshot
os.environ and /etc/environment at startup and respect key deletions
too, but that's a lot more work. Wait for a bug report instead.
Closes #338 .
6 years ago
David Wilson
81c8156965
Support LXD; closes #339 .
6 years ago
David Wilson
4077182fb2
ansible: plugins were missing absolute_import.
6 years ago
David Wilson
898c06f1b9
docs: host demo on Vimeo.
6 years ago
David Wilson
232aaf5c95
Merge branch 'dmw'
6 years ago
David Wilson
5c573f7fcb
ansible: insert short sleep when MITOGEN_PROFILING active.
...
Hacky, but works fine.
6 years ago
David Wilson
d62e6e2a7f
ansible: serialize calls to ModuleDepService.
...
Concurrent calls to ModuleDepService would cause significant wasted
work, as potentially all pool threads run the same uncached module dep
scan.
Without:
3243581 function calls (3233009 primitive calls) in 4770.672 seconds
ncalls tottime percall cumtime percall filename:lineno(function)
2523 0.011 0.000 39.849 0.016 services.py:409(scan)
With:
2801561 function calls (2800042 primitive calls) in 5166.843 seconds
ncalls tottime percall cumtime percall filename:lineno(function)
2506 0.009 0.000 1.967 0.001 services.py:411(scan)
Ignore timing variance due to problems with the test job.
6 years ago
David Wilson
a05835c46e
tests: more stable roundtrip.py.
6 years ago
David Wilson
af2ded663d
fork: public on_fork() function.
...
Generally useful, and needed for ongoing Ansible work.
6 years ago
David Wilson
3e0de9790c
issue #324 : fix Python 3 fallout for custom module_utils.
...
Also enable at last one of its tests.
6 years ago
David Wilson
f4a66194e4
ansible: Py3.x fixes for Ansible PR #41749 workaround.
6 years ago
David Wilson
6c03b83748
issue #291 : don't attempt mitogen import until sys.path modified.
...
Given an extracted download of mitogen-2.2.tar.gz, with strategy_plugins
pointing into it, if an old version of the package was pip-installed,
then the old pip-installed package would be imported and override
whatever came from the tarball.
Instead, modify sys.path before attempting any import. This still isn't
perfect, but it's better.
6 years ago
David Wilson
3b10920157
docs: delete compared.rst because somehow it's in search results.
6 years ago
David Wilson
196f76ff22
Remove staticmethod from docs.
...
Can re-add this later for 3.x, but it's pretty impossible in general for
2.x.
Closes #313 .
6 years ago
David Wilson
f8b3441431
ansible: work around Ansible PR #41749
6 years ago
David Wilson
9b2417e62d
docs: add funny testimonial
6 years ago
David Wilson
1008cda93b
tests: add missing debops installs tep
6 years ago
David Wilson
6cb81d3cb7
tests: allow passing -vvv to ansible_tests.sh.
6 years ago
David Wilson
45c2b04456
docs: add missing changelog entry.
6 years ago
dw
6fbf340564
Merge pull request #327 from dw/dmw
...
v0.2.2 final touches
6 years ago