loft-cli 1.0.0__tar.gz → 1.0.1__tar.gz
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.
- {loft_cli-1.0.0 → loft_cli-1.0.1}/PKG-INFO +1 -1
- loft_cli-1.0.1/loft_cli/runtime/steps/docker.py +18 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli.egg-info/PKG-INFO +1 -1
- {loft_cli-1.0.0 → loft_cli-1.0.1}/pyproject.toml +1 -1
- loft_cli-1.0.0/loft_cli/runtime/steps/docker.py +0 -15
- {loft_cli-1.0.0 → loft_cli-1.0.1}/README.md +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/_builtins.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/addons/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/addons/goss/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/addons/goss/generator.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/addons/goss/renderer.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/addons/goss/shipper.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/agent_installer.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/compose.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/container.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/http.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/nginx.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/ports.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/postgres.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/ssh.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/checks/wireguard.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/cli.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/commands/prep.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/compiler/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/compiler/normalizer.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/compiler/parser.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/compiler/planner.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/ddl/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/ddl/bootstrap_tables.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/ddl/versionize_system.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/fleet.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/inventory.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/inventory_db.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/keys.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/remove.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/selector.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/ssh_config.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/tunnel.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/local/wireguard_store.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/logs/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/logs/reader.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/logs/writer.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/agent_transport.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/executor.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/fabric_transport.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/secret_rotation.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/ssh.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/__init__.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/backup.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/bootstrap.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/compose.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/container.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/file_template.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/nginx.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/postgres.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/postgres_ensure.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/systemd.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/steps/wireguard.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/runtime/transport.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli/updater.py +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli.egg-info/SOURCES.txt +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli.egg-info/dependency_links.txt +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli.egg-info/entry_points.txt +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli.egg-info/requires.txt +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/loft_cli.egg-info/top_level.txt +0 -0
- {loft_cli-1.0.0 → loft_cli-1.0.1}/setup.cfg +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Docker installation commands."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def install_docker() -> str:
|
|
7
|
+
"""Install Docker only when it is missing. The installer script also upgrades an existing installation, and that
|
|
8
|
+
restarts docker.service: every container on the host stops, a loft-cli applying from one of them included.
|
|
9
|
+
"""
|
|
10
|
+
return "bash -c 'command -v docker >/dev/null 2>&1 || curl -fsSL https://get.docker.com | sh'"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def enable_docker() -> str:
|
|
14
|
+
return "systemctl enable --now docker"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def docker_version_check() -> str:
|
|
18
|
+
return "docker --version"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "loft-cli"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.1"
|
|
8
8
|
description = "Securely bootstrap Linux servers with auditable plans, generated ops docs, and encrypted local inventory"
|
|
9
9
|
requires-python = ">=3.11"
|
|
10
10
|
dependencies = [
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"""Docker installation commands."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
def install_docker() -> str:
|
|
7
|
-
return "bash -c 'curl -fsSL https://get.docker.com | sh'"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def enable_docker() -> str:
|
|
11
|
-
return "systemctl enable --now docker"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def docker_version_check() -> str:
|
|
15
|
-
return "docker --version"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|