Document the Proxmox host, its read-only access and the local Proxmox test VM
Rust development slice / linux (push) Failing after 15s
Rust development slice / linux (push) Failing after 15s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+7
-2
@@ -30,12 +30,17 @@ def credentials_directory():
|
||||
|
||||
def ssh_prefix(target):
|
||||
credentials = credentials_directory()
|
||||
config = load_config(credentials / ("linux-vm.conf" if target == "linux" else "server.conf"))
|
||||
profile = {"linux": "linux-vm.conf", "proxmox": "proxmox-vm.conf"}.get(target, "server.conf")
|
||||
config = load_config(credentials / profile)
|
||||
host = config["username"] + "@" + config["address"]
|
||||
key = str(Path(config["ssh_key_path"]).expanduser())
|
||||
base = ["ssh", "-F", "/dev/null", "-T"]
|
||||
direct = [*base, "-p", config.get("port", "22"), "-i", key, "-o", "StrictHostKeyChecking=yes",
|
||||
"-o", "BatchMode=yes", "-o", "ForwardAgent=no", "-o", "IdentitiesOnly=yes"]
|
||||
if target == "proxmox":
|
||||
# Local test host: its own pin file, not the user's global known_hosts.
|
||||
return [*direct, "-o", "UserKnownHostsFile=" + str(credentials / "proxmox-dev.known_hosts"),
|
||||
"-o", "GlobalKnownHostsFile=/dev/null", "-o", "ConnectTimeout=10", host]
|
||||
if target != "windows":
|
||||
return [*direct, "-o", "ConnectTimeout=10", host]
|
||||
# Match the pinned access registered by deploy/windows/prepare_dev_access.py.
|
||||
@@ -154,7 +159,7 @@ def main():
|
||||
"Ziel: rmm-dev-stage/<SHA-256>/<Dateiname> im SSH-Benutzerprofil. "
|
||||
"Identische Dateien werden wiederverwendet. Dienste und Releases werden separat aktiviert."))
|
||||
parser.add_argument("--plan", action="store_true", help="Nur lokale Hashes und Zielpfade anzeigen")
|
||||
parser.add_argument("target", choices=("server", "linux", "windows"), help="Entwicklungsziel")
|
||||
parser.add_argument("target", choices=("server", "linux", "windows", "proxmox"), help="Entwicklungsziel")
|
||||
parser.add_argument("files", nargs="+", type=Path, metavar="DATEI", help="Vorhandene lokale Artefakte")
|
||||
args = parser.parse_args()
|
||||
for path in args.files:
|
||||
|
||||
Reference in New Issue
Block a user