Skip to main content

#Labops - A declarative, YAML-based homelab manager

A declarative, YAML-based homelab manager. labops is a CLI tool designed to simplify, automate, and standardize the setup, configuration, and maintenance of your homelab infrastructure utilizing simple configuration files and powerful backend automation.

Features

Current Capabilities

  • Declarative YAML Configuration: Define your complete homelab environment comprehensively using simple YAML configuration files.
  • Host Management: Automated setup, initialization, and system updates for a variety of host operating systems (Alpine, Debian, RedHat) powered by integrated Ansible playbooks.
  • Proxmox LXC: Update Proxmox Linux Containers (LXC) natively (through Proxmox Root Host)

Roadmap & Future Scope

  • Docker Stack Management: Seamlessly deploy, spin up, and manage Docker Compose stacks across your nodes.
  • DNS Automation: Automated updating of internal DNS records.
  • Reverse Proxy Orchestration: Manage, update, and automate reverse proxy routes

How it Works

labops acts as a bridge between simple, human-readable YAML configurations and powerful Ansible Commands.

  1. Configuration parsing: It reads a declarative .yml inventory representing your homelab layout, target servers, credentials, and settings.
  2. Validation: It validates the YAML structure and data format to stop misconfigurations early.
  3. Execution: Based on the commands executed, it triggers internal Python routines or dispatches built-in Ansible playbooks targeting the defined hosts. This ensures consistent host setups, OS updates (Debian, RedHat, Alpine), and more without writing raw playbook files manually.

Installation

You can install labops easily via pip:

pipx install labops
#or
pip install labops

Since labops is a standalone CLI tool, using pipx is highly recommended to isolate its dependencies

Usage

Once installed, the labops command becomes available. Point it to your YAML configuration file (e.g., test-samples/homelab-complete.yml):

# View all available CLI commands
labops --help

# Example: Run a setup routine for all hosts
labops host update all

Development & Building

This project utilizes Dev Containers to provide a seamless, consistent development environment, and uses uv for lightning-fast Python package management.

1. Development Environment

To start developing locally without installing system-level dependencies:

  1. Open the project in VS Code (or any editor supporting Dev Containers).
  2. When prompted, click Reopen in Container (this builds your development environment with Python, Ansible, and other necessary CLI tools pre-installed).
  3. Once the container is running and your terminal is open, sync the dependencies and activate the virtual environment:
# Create the virtual environment and install dependencies + the labops CLI
uv sync

# Activate the virtual environment
source .venv/bin/activate

# Now you can run the CLI
labops --help

2. Building the Package

The package does not have to be manually updated to PyPi, as it utalizes github actions to build and publish it.

To build the standard Python distribution files locally (Wheel .whl and Source Distribution .tar.gz) for testing:

uv build

This will generate the artifacts inside the dist/ directory.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labops-0.6.1.tar.gz (143.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labops-0.6.1-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

Details for the file labops-0.6.1.tar.gz.

File metadata

  • Download URL: labops-0.6.1.tar.gz
  • Upload date:
  • Size: 143.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for labops-0.6.1.tar.gz
Algorithm Hash digest
SHA256 2a3d92a24647c2cd6f963e624bc33b3bb7dc24d977b178d62dc60428d0daf12c
MD5 86ee3a4536fc60c6d7db1753a27f5124
BLAKE2b-256 e2a2c003b39e025f0cc88a076ee0ce9f0b74df75d9847094ec6605ce985686b7

See more details on using hashes here.

File details

Details for the file labops-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: labops-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 52.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for labops-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f27c053bc86ee10425fc65366d43bef3bfa28e99a86ee48e2adb9147f717e46
MD5 8ef177acc2fc46d13d1bf441a446ef1a
BLAKE2b-256 67b74f7c52aa2f6b125c7dc2a14cf49b1a829403261e6e0f6ec2208a40f9d000

See more details on using hashes here.

Release history Release notifications | RSS feed

0.11.0

2 files

0.10.0

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

This release

0.6.1 This release

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page