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
Branches
Tags
No related merge requests found
Pipeline #89743 failed
...@@ -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