lxd is the new container system which is included by default in ubuntu 
16.04:
https://linuxcontainers.org/lxd/

Unlike docker, lxd containers are essentially lightweight VMs, with their 
own init daemon, sshd etc, and typically on a static IP address.

I'd like an ansible to:

(1) Handle lifecycle management: create/configure, start and stop lxd 
containers; install lxd profiles.

(2) Be able to execute commands within a container using "lxc exec 
<container> <command>" - so you don't have to set up an ssh trust 
relationship with the container. Something like "ansible_connection=lxd" in 
the inventory.

This could be done by shelling out to the "lxc xxx" commands (confusingly 
prefixed lxc not lxd). Alternatively, lxd also has a proper API you can 
talk to, with a python client too.
https://linuxcontainers.org/lxd/rest-api/

Using the CLI you can control remote hosts using "<host>:<instance>" as the 
container name. Using the REST API you connect directly to the host of 
interest.

Is there any work going on in this area? All I've been able to find is an 
ansible module for installing lxd itself on your host platform.

Thanks,

Brian.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1ddf6c0a-5d57-4f8b-a9e0-3fa7753c2684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to