utils.inventory packageΒΆ

SubmodulesΒΆ

utils.inventory.bundle_apps moduleΒΆ

Resolve and aggregate role groups (apps) from one or more inventory bundles.

Bundles live under inventories/bundles/{servers,workstations}/<name>/inventory.yml. Each bundle declares the role groups it activates beneath all.children.

Invoked from scripts/tests/deploy/local/deploy/bundles/fresh.sh to feed the apps env var into the existing fresh-purged deploy flow:

python -m utils.inventory.bundle_apps education-suite,startup-essentials

utils.inventory.bundle_apps.main(argv: list[str] | None = None) β†’ intΒΆ
utils.inventory.bundle_apps.resolve(bundles: Iterable[str]) β†’ list[str]ΒΆ

Return deduplicated role-group names from the given bundle inventories.

Raises FileNotFoundError if any bundle is missing.

utils.inventory.groups moduleΒΆ

Static-inventory group-existence checks (YAML + INI).

utils.inventory.groups.inventory_has_group(inventory_path: str, group_name: str) β†’ boolΒΆ

Module contentsΒΆ