Commit Graph

2 Commits (eaae1318f83b6ef4d02ab9262ff7ab2641b51944)

Author SHA1 Message Date
Matt Martz d3249e7875 pep8 fixes for contrib (#24344) 8 years ago
Florian Haas 0e6fc9de3a Add inventory script for LXC containers
Enables an LXC server's configuration as an inventory source for LXC
containers.

In LXC, containers can be defined with an "lxc.group" configuration
option that is normally used with lxc-autostart -g. Here, we are using
the same option to build Ansible inventory groups.

In addition to being grouped according to their lxc.group entry (or
entries, as LXC allows a single container to be in multiple groups),
we also add all containers (including those with no lxc.group entry)
to the "all" group.
9 years ago