Commit Graph

3 Commits (aacc2d1a188b65121e78a99b15b3948704f04869)

Author SHA1 Message Date
Joren Vrancken b954917761 Surround top-level function and class definitions with two blank lines. 6 years ago
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