Server podman update.
This commit is contained in:
@@ -37,9 +37,10 @@ def get_orchestrator_from_config(cfg: dict) -> Union[Orchestrator, PodmanOrchest
|
|||||||
if 'runner' in cfg:
|
if 'runner' in cfg:
|
||||||
val = cfg['runner'].lower().strip()
|
val = cfg['runner'].lower().strip()
|
||||||
if val == "podman":
|
if val == "podman":
|
||||||
orch = PodmanOrchestrator()
|
|
||||||
image = cfg.get('image', 'debian')
|
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
|
return orch
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Other orchestrators not implemented yet.")
|
raise RuntimeError("Other orchestrators not implemented yet.")
|
||||||
|
|||||||
Reference in New Issue
Block a user