Kevin Carter eb9f3d858b IRR for lxc_host
The change moves the role out from the main repo lxc_host
repository and into its own standalone repository.

Items within this change:
  * The role has been updated to ensure it runs standalone.
  * Tests added to the role within tox.
  * Functional tests added to the role that can either be run
    via the run_tests.sh script or using tox.
  * dev requirements have been updated for testing usecases.
  * Docs added to both the README.rst file as well as the docs
    folder.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-11-03 04:22:57 -06:00

788 B

lxc_host role docs

The lxc_host role is used to setup hosts that will be running LXC within them. The role will configure and build everything needed for the environment to be successful in deploying LXC containers.

In the example the role is using an optional argument to create an LXC cached image on the disk. The use of this extra variable will download an image into place and update it.

Basic Role Example

- role: "lxc_host"
  lxc_container_caches:
    - url: "{{ repo_pip_default_index | netorigin }}/container_images/rpc-trusty-container.tgz"
      name: "trusty.tgz"
      sha256sum: "56c6a6e132ea7d10be2f3e8104f47136ccf408b30e362133f0dc4a0a9adb4d0c"
      chroot_path: trusty/rootfs-amd64