mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The two ca_* handlers sat flat in utils/env/handlers/infinito, which the prefix-grouping lint rejects, and the bundle-candidates comment exceeded the .env comment length limit.
22 lines
703 B
Python
22 lines
703 B
Python
"""INFINITO_CA_BUNDLE_CANDIDATES: where the distributions keep the extracted CA
|
|
bundle, read from the group_vars paths SPOT (group_vars/all/05_paths.yml
|
|
CA_BUNDLE_CANDIDATES)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
from utils.paths import read_group_paths
|
|
|
|
if TYPE_CHECKING:
|
|
from utils.env.builder import BuildContext, EnvBuilder
|
|
|
|
KEY = "INFINITO_CA_BUNDLE_CANDIDATES"
|
|
COMMENT = "Extracted CA bundle per distro layout, first readable one wins (SPOT: group_vars/all/05_paths.yml CA_BUNDLE_CANDIDATES)."
|
|
|
|
|
|
def apply(eb: EnvBuilder, ctx: BuildContext) -> None:
|
|
eb.setdefault(
|
|
KEY, " ".join(read_group_paths("CA_BUNDLE_CANDIDATES")), comment=COMMENT
|
|
)
|