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

add moodi host to steps

parent bb4fe1fc
No related branches found
No related tags found
1 merge request!291add moodi start and stop steps
Pipeline #89745 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