Server podman update.

This commit is contained in:
Michael Woods
2025-02-15 21:42:21 -05:00
parent 7120b05a59
commit e7c5d55a46

View File

@@ -37,9 +37,10 @@ def get_orchestrator_from_config(cfg: dict) -> Union[Orchestrator, PodmanOrchest
if 'runner' in cfg:
val = cfg['runner'].lower().strip()
if val == "podman":
orch = PodmanOrchestrator()
image = cfg.get('image', 'debian')
orch.opts.image_name = image
opts = PodmanOptions(default_timeout=300, max_timeout=3600, image_name=image, max_active_jobs=5,
container_keepalive=300, name_prefix="packetserver_")
orch = PodmanOrchestrator(options=opts)
return orch
else:
raise RuntimeError("Other orchestrators not implemented yet.")