git-infrastructure-setup

Automate Git-based infrastructure repository setup, inventory, and secret sanitization.

Updated Oct 23, 2024
One-click install
npx skills add https://github.com/lenadlm/docker --skill git-infrastructure-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-infrastructure-setup
Source: https://github.com/lenadlm/docker/tree/main/hermes-skills/skills/devops/git-infrastructure-setup
Command: npx skills add https://github.com/lenadlm/docker --skill git-infrastructure-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, python, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the setup of Git infrastructure for DevOps workflows, including inventory scripts, configs, and compose files across hosts, organizing them into a structured project and pushing them to remote repositories.

Core Features & Use Cases

  • Inventory and Structure: Automatically inventory scripts, docker-compose files, and .env files across all hosts, and organize them into a structured project.
  • Secret Sanitization: Sanitize secrets and remove them from the project tree, replacing them with placeholder values.
  • Git History Rewrite: Rewrite Git history to remove hardcoded secrets from the repository.
  • Secure Local State: Keep sensitive information secure by managing local state and environment variables.

Quick Start

Use the git-infrastructure-setup skill to bootstrap your Git infrastructure by running the following command: git-infrastructure-setup --bootstrap

Frequently Asked Questions about git-infrastructure-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Git infrastructure setup for DevOps workflows?

Automate Git infrastructure setup by running the bootstrap command to inventory scripts, docker-compose files, and .env files across hosts, organizing them into a structured project for remote repositories.

What is the best way to sanitize secrets in an infrastructure as code repository?

Sanitize secrets in infrastructure as code by removing sensitive values from the project tree and replacing them with placeholder values, ensuring secure local state management for environment variables.

How do I rewrite Git history to remove hardcoded secrets from my repository?

Rewrite Git history to remove hardcoded secrets by executing the history rewrite process, which cleans the repository tree while maintaining the structured project organization for DevOps workflows.

Do I need Python and Git to bootstrap infrastructure as code projects?

Yes, you need both Git and Python installed to bootstrap infrastructure as code projects, as Python drives the inventory scripts and secret handling processes required for the setup.

Can I inventory docker-compose and .env files across multiple hosts automatically?

Yes, the inventory process automatically discovers scripts, docker-compose files, and .env files across all hosts, structuring them into a unified infrastructure as code project ready for remote repositories.

When should I use automated Git history rewriting for infrastructure repositories?

Use automated Git history rewriting when hardcoded secrets exist in your infrastructure repositories, requiring sanitization to replace sensitive data with placeholders before pushing to remote repositories.