GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - palazzem/hanzo: Docker and devcontainers build to configure a development environment

BranchesTags
Open more actions menu

Latest commit

 

History

741 Commits
741 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.github
.github
 
 
bin
bin
 
 
roles
roles
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ansible.cfg
ansible.cfg
 
 
inventory.ini
inventory.ini
 
 
playbook.yml
playbook.yml
 
 
requirements.yml
requirements.yml
 
 

Repository files navigation

Hanzo

CI

Hattori Hanzō: You must have big rats if you need Hattori Hanzo's steel. The Bride: ...Huge.

CachyOS system provisioner powered by Ansible. A single command bootstraps a complete development and gaming machine with idempotent configuration.

Requirements

  • CachyOS (Arch-based)
  • Full-disk encryption (LUKS) on the root filesystem to prevent unencrypted swap file
  • Internet connection for initial setup

Quickstart

curl -L https://raw.githubusercontent.com/palazzem/hanzo/main/bin/bootstrap.sh | bash

This will:

  1. Install uv
  2. Clone this repository to ~/.local/src/hanzo
  3. Prompt for your name and email (first run only)
  4. Link hanzo and hanzo-aur into ~/.local/bin
  5. Install ansible-core
  6. Install required Galaxy collections (community.general)
  7. Install the AUR package set through Shelly (one PKGBUILD review per package)
  8. Run the playbook (prompts once for your sudo password)
  9. Replace every snapper snapshot with a single Hanzo configuration baseline (first run only)
  10. Print manual steps automation cannot cover

Usage

After bootstrap, re-run provisioning at any time:

hanzo              # full provisioning run
hanzo --check      # dry run (shows what would change)
hanzo --ci         # unattended run, container only

Configuration

User configuration is stored at ~/.config/hanzo/config.yml:

hanzo_fullname: "Your Name"
hanzo_email: "[email protected]"

Edit this file directly to update your settings. You can also set HANZO_FULLNAME and HANZO_EMAIL as environment variables for unattended provisioning (e.g., in containers) — when the config file does not exist yet, the bootstrap script writes them out instead of prompting. An existing config file is never rewritten, so later changes go in the file itself.

The file is loaded into its own namespace and read through an allowlist: exactly hanzo_fullname and hanzo_email are used, and any other key is ignored. It is not a place to override playbook or role variables — since the file is user-writable, an unfiltered load would let anything with write access to your home directory inject variables into tasks that run as root. Both keys are optional; when one is missing, the matching git identity setting is simply skipped.

Architecture

Provisioning runs in two stages: hanzo-aur installs the AUR package set through Shelly (skipping packages already at the AUR version), then the playbook applies every role. Roles run in dependency order, each owning one domain.

  • bin/ — bootstrap.sh (one-command setup), hanzo (provisioning CLI), hanzo-aur (AUR package set via Shelly)
  • playbook.yml — entry point: detection facts, then the roles in dependency order
  • roles/ — one directory per domain, each declaring a tag
  • ansible.cfg — local connection, become defaults, roles path
  • requirements.yml — Galaxy collection dependencies (pinned versions)

Development

Clone the repository and install the pre-commit hooks:

git clone https://github.com/palazzem/hanzo.git
cd hanzo
pre-commit install

Run linters locally:

pre-commit run --all-files

Run provisioning inside a CachyOS container:

# Provisioning check
docker build --build-arg HANZO_ARGS="--check" -f tests/Containerfile -t hanzo:test .

# Full unattended provisioning
docker build --build-arg HANZO_ARGS="--ci" -f tests/Containerfile -t hanzo:test .

Contribute

This tool provisions my personal CachyOS setup. You may use this repository as a base to create your own configuration. I'll be glad to accept any PR that:

  • Fixes bugs or issues in the current implementation
  • Improves the Ansible role structure or provisioning logic
  • Enhances or makes me aware of different provisioning approaches

I will not merge pull requests that add new development tools, but I will be grateful if you can discuss about it in the issue tracker.

See CLAUDE.md for the task authoring contract.

License

BSD 2-Clause. See LICENSE for details.

About

Docker and devcontainers build to configure a development environment

Topics

devcontainersdevenvdevops-toolsdevtoolsdocker

Resources

Readme
License
Activity

Stars

23 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.