orchestrator-lso 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lso/__init__.py +49 -0
- lso/app.py +23 -0
- lso/config.py +70 -0
- lso/environment.py +50 -0
- lso/playbook.py +122 -0
- lso/routes/__init__.py +14 -0
- lso/routes/default.py +43 -0
- lso/routes/playbook.py +91 -0
- orchestrator_lso-1.0.0.dist-info/LICENSE +202 -0
- orchestrator_lso-1.0.0.dist-info/METADATA +138 -0
- orchestrator_lso-1.0.0.dist-info/RECORD +12 -0
- orchestrator_lso-1.0.0.dist-info/WHEEL +4 -0
lso/__init__.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""Automatically invoked app factory."""
|
|
15
|
+
|
|
16
|
+
__version__ = "1.0.0"
|
|
17
|
+
|
|
18
|
+
import logging
|
|
19
|
+
|
|
20
|
+
from fastapi import FastAPI
|
|
21
|
+
from fastapi.middleware.cors import CORSMiddleware
|
|
22
|
+
|
|
23
|
+
from lso import config, environment
|
|
24
|
+
from lso.routes.default import router as default_router
|
|
25
|
+
from lso.routes.playbook import router as playbook_router
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def create_app() -> FastAPI:
|
|
29
|
+
"""Override default settings with those found in the file read from environment variable `SETTINGS_FILENAME`.
|
|
30
|
+
|
|
31
|
+
:return: a new flask app instance
|
|
32
|
+
"""
|
|
33
|
+
app = FastAPI()
|
|
34
|
+
|
|
35
|
+
app.add_middleware(
|
|
36
|
+
CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"]
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
app.include_router(default_router, prefix="/api")
|
|
40
|
+
app.include_router(playbook_router, prefix="/api/playbook")
|
|
41
|
+
|
|
42
|
+
# test that configuration parameters are loaded and available
|
|
43
|
+
config.load()
|
|
44
|
+
|
|
45
|
+
environment.setup_logging()
|
|
46
|
+
|
|
47
|
+
logging.info("FastAPI app initialized")
|
|
48
|
+
|
|
49
|
+
return app
|
lso/app.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""Default app creation."""
|
|
15
|
+
|
|
16
|
+
import lso
|
|
17
|
+
|
|
18
|
+
app = lso.create_app()
|
|
19
|
+
|
|
20
|
+
if __name__ == "__main__":
|
|
21
|
+
import uvicorn
|
|
22
|
+
|
|
23
|
+
uvicorn.run("lso.app:app", host="0.0.0.0", port=44444, log_level="debug")
|
lso/config.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""A module for loading configuration data, including a configuration schema that data is validated against.
|
|
15
|
+
|
|
16
|
+
Data is loaded from a file, the location of which may be specified when using :func:`load_from_file`.
|
|
17
|
+
Configuration file location can also be loaded from environment variable ``$SETTINGS_FILENAME``, which is default
|
|
18
|
+
behaviour in :func:`load`.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
import json
|
|
22
|
+
import os
|
|
23
|
+
from pathlib import Path
|
|
24
|
+
|
|
25
|
+
import jsonschema
|
|
26
|
+
from pydantic import BaseModel
|
|
27
|
+
|
|
28
|
+
CONFIG_SCHEMA = {
|
|
29
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {"ansible_playbooks_root_dir": {"type": "string"}},
|
|
32
|
+
"required": ["ansible_playbooks_root_dir"],
|
|
33
|
+
"additionalProperties": False,
|
|
34
|
+
}
|
|
35
|
+
DEFAULT_REQUEST_TIMEOUT = 10
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class Config(BaseModel):
|
|
39
|
+
"""Simple Configuration class.
|
|
40
|
+
|
|
41
|
+
Contains the root directory at which Ansible playbooks are present.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
ansible_playbooks_root_dir: str
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def load_from_file(file: Path) -> Config:
|
|
48
|
+
"""Load, validate and return configuration parameters.
|
|
49
|
+
|
|
50
|
+
Input is validated against this JSON schema:
|
|
51
|
+
|
|
52
|
+
.. asjson:: lso.config.CONFIG_SCHEMA
|
|
53
|
+
|
|
54
|
+
:param file: :class:`Path` object that produces the configuration file.
|
|
55
|
+
:return: a dict containing the parsed configuration parameters.
|
|
56
|
+
"""
|
|
57
|
+
config = json.loads(file.read_text())
|
|
58
|
+
jsonschema.validate(config, CONFIG_SCHEMA)
|
|
59
|
+
return Config(**config)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def load() -> Config:
|
|
63
|
+
"""Load a configuration file, located at the path specified in the environment variable ``$SETTINGS_FILENAME``.
|
|
64
|
+
|
|
65
|
+
Loading and validating the file is performed by :func:`load_from_file`.
|
|
66
|
+
|
|
67
|
+
:return: a dict containing the parsed configuration parameters
|
|
68
|
+
"""
|
|
69
|
+
assert "SETTINGS_FILENAME" in os.environ, "Environment variable SETTINGS_FILENAME not set" # noqa: S101
|
|
70
|
+
return load_from_file(Path(os.environ["SETTINGS_FILENAME"]))
|
lso/environment.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""Environment module for setting up logging."""
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
import logging.config
|
|
18
|
+
import os
|
|
19
|
+
from pathlib import Path
|
|
20
|
+
|
|
21
|
+
LOGGING_DEFAULT_CONFIG = {
|
|
22
|
+
"version": 1,
|
|
23
|
+
"disable_existing_loggers": False,
|
|
24
|
+
"formatters": {"simple": {"format": "%(asctime)s - %(name)s (%(lineno)d) - %(levelname)s - %(message)s"}},
|
|
25
|
+
"handlers": {
|
|
26
|
+
"console": {
|
|
27
|
+
"class": "logging.StreamHandler",
|
|
28
|
+
"level": "DEBUG",
|
|
29
|
+
"formatter": "simple",
|
|
30
|
+
"stream": "ext://sys.stdout",
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"loggers": {"resource_management": {"level": "DEBUG", "handlers": ["console"], "propagate": False}},
|
|
34
|
+
"root": {"level": "INFO", "handlers": ["console"]},
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def setup_logging() -> None:
|
|
39
|
+
"""Set up logging using the configured filename.
|
|
40
|
+
|
|
41
|
+
If ``LOGGING_CONFIG`` is defined in the environment, use this for the filename, otherwise use
|
|
42
|
+
``LOGGING_DEFAULT_CONFIG``.
|
|
43
|
+
"""
|
|
44
|
+
logging_config = LOGGING_DEFAULT_CONFIG
|
|
45
|
+
if "LOGGING_CONFIG" in os.environ:
|
|
46
|
+
filename = os.environ["LOGGING_CONFIG"]
|
|
47
|
+
config_file = Path(filename).read_text()
|
|
48
|
+
logging_config = json.loads(config_file)
|
|
49
|
+
|
|
50
|
+
logging.config.dictConfig(logging_config)
|
lso/playbook.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""Module that gathers common API responses and data models."""
|
|
15
|
+
|
|
16
|
+
import logging
|
|
17
|
+
import threading
|
|
18
|
+
import uuid
|
|
19
|
+
from pathlib import Path
|
|
20
|
+
from typing import Any
|
|
21
|
+
|
|
22
|
+
import ansible_runner
|
|
23
|
+
import requests
|
|
24
|
+
from fastapi import status
|
|
25
|
+
from fastapi.responses import JSONResponse
|
|
26
|
+
from pydantic import HttpUrl
|
|
27
|
+
|
|
28
|
+
from lso import config
|
|
29
|
+
from lso.config import DEFAULT_REQUEST_TIMEOUT
|
|
30
|
+
|
|
31
|
+
logger = logging.getLogger(__name__)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def get_playbook_path(playbook_name: str) -> Path:
|
|
35
|
+
"""Get the path of a playbook on the local filesystem."""
|
|
36
|
+
config_params = config.load()
|
|
37
|
+
return Path(config_params.ansible_playbooks_root_dir) / playbook_name
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def playbook_launch_success(job_id: str) -> JSONResponse:
|
|
41
|
+
"""Return a :class:`PlaybookLaunchResponse` for the successful start of a playbook execution.
|
|
42
|
+
|
|
43
|
+
:return JSONResponse: A playbook launch response that's successful.
|
|
44
|
+
"""
|
|
45
|
+
return JSONResponse(content={"job_id": job_id}, status_code=status.HTTP_201_CREATED)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def playbook_launch_error(reason: str, status_code: int = status.HTTP_400_BAD_REQUEST) -> JSONResponse:
|
|
49
|
+
"""Return a :class:`PlaybookLaunchResponse` for the erroneous start of a playbook execution.
|
|
50
|
+
|
|
51
|
+
:param str reason: The reason why a request has failed.
|
|
52
|
+
:param status status_code: The HTTP status code that should be associated with this request. Defaults to HTTP 400:
|
|
53
|
+
Bad request.
|
|
54
|
+
:return JSONResponse: A playbook launch response that's unsuccessful.
|
|
55
|
+
"""
|
|
56
|
+
return JSONResponse(content={"error": reason}, status_code=status_code)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _run_playbook_proc(
|
|
60
|
+
job_id: str, playbook_path: str, extra_vars: dict, inventory: dict[str, Any] | str, callback: str
|
|
61
|
+
) -> None:
|
|
62
|
+
"""Run a playbook, internal function.
|
|
63
|
+
|
|
64
|
+
:param str job_id: Identifier of the job that's executed.
|
|
65
|
+
:param str playbook_path: Ansible playbook to be executed.
|
|
66
|
+
:param dict extra_vars: Extra variables passed to the Ansible playbook.
|
|
67
|
+
:param str callback: Callback URL to return output to when execution is completed.
|
|
68
|
+
:param dict[str, Any] | str inventory: Ansible inventory to run the playbook against.
|
|
69
|
+
"""
|
|
70
|
+
ansible_playbook_run = ansible_runner.run(playbook=playbook_path, inventory=inventory, extravars=extra_vars)
|
|
71
|
+
|
|
72
|
+
payload = {
|
|
73
|
+
"status": ansible_playbook_run.status,
|
|
74
|
+
"job_id": job_id,
|
|
75
|
+
"output": ansible_playbook_run.stdout.readlines(),
|
|
76
|
+
"return_code": int(ansible_playbook_run.rc),
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
request_result = requests.post(callback, json=payload, timeout=DEFAULT_REQUEST_TIMEOUT)
|
|
80
|
+
if not status.HTTP_200_OK <= request_result.status_code < status.HTTP_300_MULTIPLE_CHOICES:
|
|
81
|
+
msg = f"Callback failed: {request_result.text}"
|
|
82
|
+
logger.error(msg)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def run_playbook(
|
|
86
|
+
playbook_path: Path,
|
|
87
|
+
extra_vars: dict[str, Any],
|
|
88
|
+
inventory: dict[str, Any] | str,
|
|
89
|
+
callback: HttpUrl,
|
|
90
|
+
) -> JSONResponse:
|
|
91
|
+
"""Run an Ansible playbook against a specified inventory.
|
|
92
|
+
|
|
93
|
+
:param Path playbook_path: playbook to be executed.
|
|
94
|
+
:param dict[str, Any] extra_vars: Any extra vars needed for the playbook to run.
|
|
95
|
+
:param dict[str, Any] | str inventory: The inventory that the playbook is executed against.
|
|
96
|
+
:param HttpUrl callback: Callback URL where the playbook should send a status update when execution is completed.
|
|
97
|
+
This is used for workflow-orchestrator to continue with the next step in a workflow.
|
|
98
|
+
:return: Result of playbook launch, this could either be successful or unsuccessful.
|
|
99
|
+
:rtype: :class:`fastapi.responses.JSONResponse`
|
|
100
|
+
"""
|
|
101
|
+
if not Path.exists(playbook_path):
|
|
102
|
+
msg = f"Filename '{playbook_path}' does not exist."
|
|
103
|
+
return playbook_launch_error(reason=msg, status_code=status.HTTP_404_NOT_FOUND)
|
|
104
|
+
|
|
105
|
+
if not ansible_runner.utils.isinventory(inventory):
|
|
106
|
+
msg = "Invalid inventory provided. Should be a string, or JSON object."
|
|
107
|
+
return playbook_launch_error(reason=msg, status_code=status.HTTP_400_BAD_REQUEST)
|
|
108
|
+
|
|
109
|
+
job_id = str(uuid.uuid4())
|
|
110
|
+
thread = threading.Thread(
|
|
111
|
+
target=_run_playbook_proc,
|
|
112
|
+
kwargs={
|
|
113
|
+
"job_id": job_id,
|
|
114
|
+
"playbook_path": str(playbook_path),
|
|
115
|
+
"inventory": inventory,
|
|
116
|
+
"extra_vars": extra_vars,
|
|
117
|
+
"callback": callback,
|
|
118
|
+
},
|
|
119
|
+
)
|
|
120
|
+
thread.start()
|
|
121
|
+
|
|
122
|
+
return playbook_launch_success(job_id=job_id)
|
lso/routes/__init__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""Module of all routes that are available in LSO."""
|
lso/routes/default.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""Default route located at the root URL /.
|
|
15
|
+
|
|
16
|
+
For now only includes a single endpoint that responds with the current version of the API and LSO.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from importlib import metadata
|
|
20
|
+
|
|
21
|
+
from fastapi import APIRouter
|
|
22
|
+
from pydantic import BaseModel, constr
|
|
23
|
+
|
|
24
|
+
API_VERSION = "1.0"
|
|
25
|
+
VersionString = constr(pattern=r"\d+\.\d+")
|
|
26
|
+
|
|
27
|
+
router = APIRouter()
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class Version(BaseModel):
|
|
31
|
+
"""Simple model for returning a version number of both the API and the `lso` module."""
|
|
32
|
+
|
|
33
|
+
api: VersionString # type: ignore[valid-type]
|
|
34
|
+
module: VersionString # type: ignore[valid-type]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@router.get("/version")
|
|
38
|
+
def version() -> Version:
|
|
39
|
+
"""Return the version numbers of the API version, and the module version.
|
|
40
|
+
|
|
41
|
+
:return: Version object with both API and `lso` versions numbers.
|
|
42
|
+
"""
|
|
43
|
+
return Version(api=API_VERSION, module=metadata.version("orchestrator-lso"))
|
lso/routes/playbook.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Copyright 2023-2024 GÉANT Vereniging.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
"""The API endpoint from which Ansible playbooks can be executed."""
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
import tempfile
|
|
18
|
+
from contextlib import redirect_stderr
|
|
19
|
+
from io import StringIO
|
|
20
|
+
from typing import Annotated, Any
|
|
21
|
+
|
|
22
|
+
from ansible.inventory.manager import InventoryManager
|
|
23
|
+
from ansible.parsing.dataloader import DataLoader
|
|
24
|
+
from fastapi import APIRouter, HTTPException, status
|
|
25
|
+
from fastapi.responses import JSONResponse
|
|
26
|
+
from pydantic import AfterValidator, BaseModel, HttpUrl
|
|
27
|
+
|
|
28
|
+
from lso.playbook import get_playbook_path, run_playbook
|
|
29
|
+
|
|
30
|
+
router = APIRouter()
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _inventory_validator(inventory: dict[str, Any] | str) -> dict[str, Any] | str:
|
|
34
|
+
"""Validate the format of the provided inventory by trying to parse it.
|
|
35
|
+
|
|
36
|
+
If an inventory can't be parsed without warnings or errors, these are returned to the user by means of an HTTP
|
|
37
|
+
status 422 for 'unprocessable entity'.
|
|
38
|
+
"""
|
|
39
|
+
loader = DataLoader()
|
|
40
|
+
output = StringIO()
|
|
41
|
+
with tempfile.NamedTemporaryFile(mode="w+") as temp_inv, redirect_stderr(output):
|
|
42
|
+
json.dump(inventory, temp_inv, ensure_ascii=False)
|
|
43
|
+
temp_inv.flush()
|
|
44
|
+
|
|
45
|
+
inventory_manager = InventoryManager(loader=loader, sources=[temp_inv.name], parse=True)
|
|
46
|
+
inventory_manager.parse_source(temp_inv.name)
|
|
47
|
+
|
|
48
|
+
output.seek(0)
|
|
49
|
+
error_messages = output.readlines()
|
|
50
|
+
if error_messages:
|
|
51
|
+
raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail=error_messages)
|
|
52
|
+
|
|
53
|
+
return inventory
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
PlaybookInventory = Annotated[dict[str, Any] | str, AfterValidator(_inventory_validator)]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class PlaybookRunParams(BaseModel):
|
|
60
|
+
"""Parameters for executing an Ansible playbook."""
|
|
61
|
+
|
|
62
|
+
#: The filename of a playbook that's executed. It should be present inside the directory defined in the
|
|
63
|
+
#: configuration option ``ansible_playbooks_root_dir``.
|
|
64
|
+
playbook_name: str
|
|
65
|
+
#: The address where LSO should call back to upon completion.
|
|
66
|
+
callback: HttpUrl
|
|
67
|
+
#: The inventory to run the playbook against. This inventory can also include any host vars, if needed. When
|
|
68
|
+
#: including host vars, it should be a dictionary. Can be a simple string containing hostnames when no host vars are
|
|
69
|
+
#: needed. In the latter case, multiple hosts should be separated with a ``\n`` newline character only.
|
|
70
|
+
inventory: PlaybookInventory
|
|
71
|
+
#: Extra variables that should get passed to the playbook. This includes any required configuration objects
|
|
72
|
+
#: from the workflow orchestrator, commit comments, whether this execution should be a dry run, a trouble ticket
|
|
73
|
+
#: number, etc. Which extra vars are required solely depends on what inputs the playbook requires.
|
|
74
|
+
extra_vars: dict[str, Any] = {}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@router.post("/")
|
|
78
|
+
def run_playbook_endpoint(params: PlaybookRunParams) -> JSONResponse:
|
|
79
|
+
"""Launch an Ansible playbook to modify or deploy a subscription instance.
|
|
80
|
+
|
|
81
|
+
The response will contain either a job ID, or error information.
|
|
82
|
+
|
|
83
|
+
:param PlaybookRunParams params: Parameters for executing a playbook.
|
|
84
|
+
:return JSONResponse: Response from the Ansible runner, including a run ID.
|
|
85
|
+
"""
|
|
86
|
+
return run_playbook(
|
|
87
|
+
playbook_path=get_playbook_path(params.playbook_name),
|
|
88
|
+
extra_vars=params.extra_vars,
|
|
89
|
+
inventory=params.inventory,
|
|
90
|
+
callback=params.callback,
|
|
91
|
+
)
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
Copyright [yyyy] [name of copyright owner]
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [2023-2024] [GÉANT Vereniging]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: orchestrator-lso
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Automatically invoked app factory.
|
|
5
|
+
Author-email: GÉANT Orchestration and Automation Team <goat@geant.org>
|
|
6
|
+
Requires-Python: >=3.11,<3.13
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Classifier: Intended Audience :: Information Technology
|
|
9
|
+
Classifier: Intended Audience :: System Administrators
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Topic :: Internet
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
17
|
+
Classifier: Topic :: Software Development
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
20
|
+
Classifier: Environment :: Web Environment
|
|
21
|
+
Classifier: Framework :: FastAPI
|
|
22
|
+
Classifier: Intended Audience :: Developers
|
|
23
|
+
Classifier: Intended Audience :: Telecommunications Industry
|
|
24
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
25
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
+
Requires-Dist: ansible-runner~=2.3.4
|
|
29
|
+
Requires-Dist: ansible~=9.3.0
|
|
30
|
+
Requires-Dist: fastapi~=0.110.0
|
|
31
|
+
Requires-Dist: httpx~=0.27.0
|
|
32
|
+
Requires-Dist: jsonschema~=4.21.1
|
|
33
|
+
Requires-Dist: uvicorn[standard]~=0.28.0
|
|
34
|
+
Requires-Dist: types-setuptools ; extra == "dev"
|
|
35
|
+
Requires-Dist: types-requests ; extra == "dev"
|
|
36
|
+
Requires-Dist: toml ; extra == "dev"
|
|
37
|
+
Requires-Dist: types-toml ; extra == "dev"
|
|
38
|
+
Requires-Dist: mypy_extensions ; extra == "dev"
|
|
39
|
+
Requires-Dist: pre-commit ; extra == "dev"
|
|
40
|
+
Requires-Dist: sphinx ; extra == "doc"
|
|
41
|
+
Requires-Dist: sphinx-rtd-theme ; extra == "doc"
|
|
42
|
+
Requires-Dist: docutils ; extra == "doc"
|
|
43
|
+
Requires-Dist: pytest ; extra == "test"
|
|
44
|
+
Requires-Dist: Faker ; extra == "test"
|
|
45
|
+
Requires-Dist: responses ; extra == "test"
|
|
46
|
+
Requires-Dist: mypy ; extra == "test"
|
|
47
|
+
Requires-Dist: ruff ; extra == "test"
|
|
48
|
+
Requires-Dist: jsonschema ; extra == "test"
|
|
49
|
+
Requires-Dist: starlette ; extra == "test"
|
|
50
|
+
Project-URL: Documentation, https://workfloworchestrator.org/lso/
|
|
51
|
+
Project-URL: Source, https://github.com/workfloworchestrator/lso
|
|
52
|
+
Provides-Extra: dev
|
|
53
|
+
Provides-Extra: doc
|
|
54
|
+
Provides-Extra: test
|
|
55
|
+
|
|
56
|
+
# Lightweight Service Orchestrator
|
|
57
|
+
|
|
58
|
+
LSO: an API that allows for remotely executing Ansible playbooks.
|
|
59
|
+
|
|
60
|
+
## Code documentation
|
|
61
|
+
|
|
62
|
+
Code documentation can be found at <https://workfloworchestrator.org/lso>
|
|
63
|
+
|
|
64
|
+
## Quick start
|
|
65
|
+
|
|
66
|
+
This is a quick setup guide for running on your local machine.
|
|
67
|
+
|
|
68
|
+
### As a Docker container
|
|
69
|
+
|
|
70
|
+
To run LSO as a Docker container, build an image using the `Dockerfile.example` as an example. Be sure to update
|
|
71
|
+
`requirements.txt` and `ansible-galaxy-requirements.yaml` accordingly, depending on your specific Ansible collection and
|
|
72
|
+
-role needs.
|
|
73
|
+
|
|
74
|
+
Use the Docker image to then spin up an environment. An example Docker compose file is presented below:
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
version: "3.5"
|
|
78
|
+
services:
|
|
79
|
+
lso:
|
|
80
|
+
image: my-lso:latest
|
|
81
|
+
environment:
|
|
82
|
+
SETTINGS_FILENAME: /app/config.json
|
|
83
|
+
ANSIBLE_ROLES_PATH: /app/lso/ansible_roles
|
|
84
|
+
volumes:
|
|
85
|
+
- "/home/user/config.json:/app/config.json:ro"
|
|
86
|
+
- "/home/user/ansible_inventory:/opt/ansible_inventory:ro"
|
|
87
|
+
- "~/.ssh/id_ed25519.pub:/root/.ssh/id_ed25519.pub:ro"
|
|
88
|
+
- "~/.ssh/id_ed25519:/root/.ssh/id_ed25519:ro"
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This will expose the API on port 8000. The container requires some more files to be mounted:
|
|
92
|
+
|
|
93
|
+
* A `config.json` that references to the location where the Ansible playbooks are stored **inside the container**.
|
|
94
|
+
* An Ansible inventory for all host and group variables that are used in the playbooks
|
|
95
|
+
* A public/private key pair for SSH authentication on external machines that are targeted by Ansible playbooks.
|
|
96
|
+
* Any Ansible-specific configuration (such as `collections_path`, `roles_path`, etc.) should be set using
|
|
97
|
+
environment variables. `ANSIBLE_ROLES_PATH` is given as an example in the Docker compose snippet above.
|
|
98
|
+
|
|
99
|
+
### Install the module
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
As an alternative, below are a set of instructions for installing and running LSO directly on a machine.
|
|
103
|
+
|
|
104
|
+
*One of these should be what you're looking for:*
|
|
105
|
+
|
|
106
|
+
* Install the latest release
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
python3 -m venv my-venv-directory
|
|
110
|
+
. my-venv-directory/bin/activate
|
|
111
|
+
|
|
112
|
+
pip install orchestrator-lso
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
* Install the source code
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
git clone https://github.com/workfloworchestrator/lso.git && cd lso
|
|
119
|
+
python3 -m venv my-venv-directory
|
|
120
|
+
. my-venv-directory/bin/activate
|
|
121
|
+
|
|
122
|
+
pip install flit
|
|
123
|
+
flit install --deps production
|
|
124
|
+
|
|
125
|
+
# Or, for the full development environment
|
|
126
|
+
flit install --deps develop
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Running the app
|
|
130
|
+
|
|
131
|
+
* Create a settings file, see `config.json.example` for an example.
|
|
132
|
+
* If necessary, set the environment variable `ANSIBLE_HOME` to a custom path.
|
|
133
|
+
* Run the app like this (`app.py` starts the server on port 44444):
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
SETTINGS_FILENAME=/absolute/path/to/config.json python -m lso.app
|
|
137
|
+
```
|
|
138
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
lso/__init__.py,sha256=Eie5f0XbHVc3oRvedABnFbZsPyxAK5PaLeECN72e_Lw,1547
|
|
2
|
+
lso/app.py,sha256=WDtlmjELIeFA437j-WPfqBQf6QT_l35LEABbEosHlqY,775
|
|
3
|
+
lso/config.py,sha256=CB4Ydc8LxGaM24YrLMh59LxYFMOHGK03y4X9R-r_cAM,2436
|
|
4
|
+
lso/environment.py,sha256=iZ3DmsSKAC5a7VNL-HfJOJZ0sQwUMf7ZzNGC34B2CG0,1771
|
|
5
|
+
lso/playbook.py,sha256=EuMdKtXjkcD-D-q5ytrKB0fXTT5IhOjnyEXiln0bdk0,4925
|
|
6
|
+
lso/routes/__init__.py,sha256=1kRrth9zkFgmj6LChujieYJq5cjIETeTGXa1G70pduk,639
|
|
7
|
+
lso/routes/default.py,sha256=a7STN1BJyFVizXUzmqKuADO0fpE1SHun-PzaZ-jx1wU,1438
|
|
8
|
+
lso/routes/playbook.py,sha256=VwxCNRvIg-MTAXyHDHcFhAAY2vQQG77VVMJf_GjZsr4,3837
|
|
9
|
+
orchestrator_lso-1.0.0.dist-info/LICENSE,sha256=CgFXf7XbZXJADozQIw2uUmmvU-zwAwXo4u7cgDfx3rE,10744
|
|
10
|
+
orchestrator_lso-1.0.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
11
|
+
orchestrator_lso-1.0.0.dist-info/METADATA,sha256=01xOdNNhPFgZSt2zXp10py6tqablp5sfChmk8bdtb6Y,5017
|
|
12
|
+
orchestrator_lso-1.0.0.dist-info/RECORD,,
|