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
This commit is part of merge request !291. Comments created here will be created in the context of that merge request.
...@@ -394,12 +394,14 @@ def prompt_sharepoint_checklist_url(checklist_url: str) -> FormGenerator: ...@@ -394,12 +394,14 @@ def prompt_sharepoint_checklist_url(checklist_url: str) -> FormGenerator:
@step("Start Moodi") @step("Start Moodi")
def start_moodi(subscription: dict[str, Any]) -> LSOState: def start_moodi(subscription: dict[str, Any]) -> LSOState:
"""Start monitoring on demand using Moodi Telemetry stack.""" """Start monitoring on demand using Moodi Telemetry stack."""
params = load_oss_params()
return { return {
"playbook_name": "moodi_telemetry/playbooks/start_moodi.yaml", "playbook_name": "moodi_telemetry/playbooks/start_moodi.yaml",
"inventory": { "inventory": {
"all": { "all": {
"hosts": { "hosts": {
"moodi.test.gap.geant.org": None params.MOODI.host: None
} }
} }
}, },
...@@ -410,12 +412,14 @@ def start_moodi(subscription: dict[str, Any]) -> LSOState: ...@@ -410,12 +412,14 @@ def start_moodi(subscription: dict[str, Any]) -> LSOState:
@step("Stop Moodi") @step("Stop Moodi")
def stop_moodi() -> LSOState: def stop_moodi() -> LSOState:
"""Stop monitoring on demand.""" """Stop monitoring on demand."""
params = load_oss_params()
return { return {
"playbook_name": "moodi_telemetry/playbooks/stop_moodi.yaml", "playbook_name": "moodi_telemetry/playbooks/stop_moodi.yaml",
"inventory": { "inventory": {
"all": { "all": {
"hosts": { "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