mc_lxc / lxc registry

This module contains settings for lxc and helper functions

mc_states.modules.mc_lxc.is_lxc(_o=None)

in case of a container, we have the container name in cgroups else, it is equal to /

in lxc:
[‘11:name=systemd:/user/1000.user/1.session’, ‘10:hugetlb:/thisname’, ‘9:perf_event:/thisname’, ‘8:blkio:/thisname’, ‘7:freezer:/thisname’, ‘6:devices:/thisname’, ‘5:memory:/thisname’, ‘4:cpuacct:/thisname’, ‘3:cpu:/thisname’, ‘2:cpuset:/thisname’]
in host:
[‘11:name=systemd:/’, ‘10:hugetlb:/’, ‘9:perf_event:/’, ‘8:blkio:/’, ‘7:freezer:/’, ‘6:devices:/’, ‘5:memory:/’, ‘4:cpuacct:/’, ‘3:cpu:/’, ‘2:cpuset:/’]
mc_states.modules.mc_lxc.settings()

Lxc registry

virt defaults (makina-states.services.virt.lxc)
is_lxc
containers
Mapping of containers defintions classified by host