community.general/lib/ansible/plugins/connection
Lars Kellogg-Stedman 3597ca082b add systemd-nspawn connection driver
This commit adds a connection driver built on top of systemd-nspawn.
This is similar to the existing `chroot` driver, except that nspawn
offers a variety of additional services. For example, it takes care of
automatically mounting `/proc` and `/sys` inside the chroot environment,
which will make a variety of tools work correctly that would otherwise
fail.

You can take advantage of other system-nspawn features to perform more
complicated tasks.  For example, on my x86_64 system I have a Raspberry
Pi disk image mounted on `/rpi`.  I can't use `chroot` with this because
the binaries contained in the image are for the wrong architecture.
However, I can use the systemd-nspawn `--bind` option to automatically
insert the appropriate qemu-arm binary into the container using an
inventory file like this:

    pi ansible_host=/rpi ansible_nspawn_extra_args='--bind /usr/bin/qemu-arm --bind /lib64'

See http://www.freedesktop.org/software/systemd/man/systemd-nspawn.html
for more information about systemd-nspawn itself.
2017-02-17 12:39:48 -05:00
..
__init__.py Complete rewrite of Windows exec wrapper (#21510) 2017-02-17 00:09:56 -08:00
accelerate.py Move uses of to_bytes, to_text, to_native to use the module_utils version (#17423) 2016-09-06 22:54:17 -07:00
chroot.py Mcsalgado's change to use shlex.quote instead of pipes.quote (#18534) 2016-11-17 13:18:29 -08:00
docker.py Mcsalgado's change to use shlex.quote instead of pipes.quote (#18534) 2016-11-17 13:18:29 -08:00
funcd.py Fix funcd to at least import without errors. (#16288) 2016-07-29 16:19:38 -04:00
iocage.py PEP 8 whitespace cleanup. (#20783) 2017-01-27 15:45:23 -08:00
jail.py iocage connector that wraps around jail connector. (#17986) 2016-12-22 15:34:47 -08:00
libvirt_lxc.py Mcsalgado's change to use shlex.quote instead of pipes.quote (#18534) 2016-11-17 13:18:29 -08:00
local.py Move ssh and local connection plugins from using raw select to selectors 2017-02-03 08:23:50 -08:00
lxc.py Move uses of to_bytes, to_text, to_native to use the module_utils version (#17423) 2016-09-06 22:54:17 -07:00
lxd.py Move uses of to_bytes, to_text, to_native to use the module_utils version (#17423) 2016-09-06 22:54:17 -07:00
netconf.py updates netconf to use persistent socket (#21307) 2017-02-12 09:05:23 -05:00
network_cli.py clean up of terminal plugins (#21549) 2017-02-17 10:00:23 -05:00
nspawn.py add systemd-nspawn connection driver 2017-02-17 12:39:48 -05:00
paramiko_ssh.py adds two new plugins that use ansible-connection for persistence (#18572) 2016-11-28 12:49:40 -05:00
persistent.py Adding a persistent connection utility 2016-11-21 12:35:27 -06:00
ssh.py the return of reset_connection 2017-02-16 10:49:57 -05:00
winrm.py Complete rewrite of Windows exec wrapper (#21510) 2017-02-17 00:09:56 -08:00
zone.py Mcsalgado's change to use shlex.quote instead of pipes.quote (#18534) 2016-11-17 13:18:29 -08:00