Skip to content
Snippets Groups Projects
Commit 27197479 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

add moodi host to steps

parent 7ffd351e
No related branches found
No related tags found
No related merge requests found
Pipeline #89743 failed
......@@ -394,12 +394,14 @@ def prompt_sharepoint_checklist_url(checklist_url: str) -> FormGenerator:
@step("Start Moodi")
def start_moodi(subscription: dict[str, Any]) -> LSOState:
"""Start monitoring on demand using Moodi Telemetry stack."""
params = load_oss_params()
return {
"playbook_name": "moodi_telemetry/playbooks/start_moodi.yaml",
"inventory": {
"all": {
"hosts": {
"moodi.test.gap.geant.org": None
params.MOODI.host: None
}
}
},
......@@ -410,12 +412,14 @@ def start_moodi(subscription: dict[str, Any]) -> LSOState:
@step("Stop Moodi")
def stop_moodi() -> LSOState:
"""Stop monitoring on demand."""
params = load_oss_params()
return {
"playbook_name": "moodi_telemetry/playbooks/stop_moodi.yaml",
"inventory": {
"all": {
"hosts": {
"moodi.test.gap.geant.org": None
params.MOODI.host: None
}
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment