Commit Graph

2 Commits (8e40ac54dd6f1316cecd2b4e96f92e8b37f2b47a)

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