Skip to main content

check-system-dependencies

Check whether the system has all dependencies required by the deployer (OpenTofu, Ansible, LXD, cargo-machete). Use before running provisioning, E2E tests, or any infrastructure command. Triggers on "check dependencies", "check system dependencies", "are dependencies installed", "verify dependencies", "dependency check", or "missing tools".

来源信息

仓库
torrust/torrust-tracker-deployer
最近来源活动
2026年4月14日 15:39
检测到的 SKILL.md 语言
英语
星标
5
Forks
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
check-system-dependencies
description
Check whether the system has all dependencies required by the deployer (OpenTofu, Ansible, LXD, cargo-machete). Use before running provisioning, E2E tests, or any infrastructure command. Triggers on "check dependencies", "check system dependencies", "are dependencies installed", "verify dependencies", "dependency check", or "missing tools".
metadata
{"author":"torrust","version":"1.0"}
# Check System Dependencies Use the built-in `dependency-installer` package to verify all required tools are installed. ## Commands ```bash # Check all dependencies cargo run -p torrust-tracker-deployer-dependency-installer --bin dependency-installer check # Check a specific dependency cargo run -p torrust-tracker-deployer-dependency-installer --bin dependency-installer check --dependency opentofu # List all dependencies with status cargo run -p torrust-tracker-deployer-dependency-installer --bin dependency-installer list # Install all missing dependencies cargo run -p torrust-tracker-deployer-dependency-installer --bin dependency-installer install ``` ## Required Dependencies | Dependency | Purpose | | --------------- | ----------------------------------------- | | `opentofu` | Infrastructure provisioning (`provision`) | | `ansible` | VM configuration (`configure`, `release`) | | `lxd` | Local VM provider (LXD environments) | | `cargo-machete` | Unused dependency detection (linter / CI) | ## Exit Codes - `0` — All checked dependencies are installed - Non-zero — One or more dependencies are missing ## Interpreting Output All output goes to stderr via structured logging. Look for the summary line: ```text INFO ... All dependencies are installed ``` Or a missing dependency error: ```text ERROR ... dependency is not installed dependency="opentofu" ``` ## Notes - Run this before any `provision`, `configure`, `release`, or E2E test command - In CI/CD pipelines use `--log-level off` to suppress output and rely on exit code only: ```bash cargo run -p torrust-tracker-deployer-dependency-installer --bin dependency-installer check --log-level off ``` - To install missing tools automatically, use the `install` subcommand (requires system package manager access)
在 GitHub 查看