Code Monkey home page Code Monkey logo

infra's Introduction

Introduction

This repo contains the code used to deploy and managing my various LXC's on Proxmox. Ansible is the main way I deploy things.

A huge HUGE thanks to IronicBadger/AlexKTZ for his infra GitHub repo. I learned a ton poking around that repo and some of the things are copied straight from there, so credit where credit is due.

Requirements

  • Python 3
  • ansible installed on the system
  • just
    • Lazy install: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | sudo bash -s -- --to /usr/local/bin

Explanation of Shards/Names:

Most of my servers are named after Shards of Adonalsium from my favorite fantasy series by Brandon Sanderson. So if you look at my roles you'll see a pattern.

  • Adonalsium - Primary Proxmox Node
  • Autonomy - Home Automation
  • Cultivation - Misc. Media
  • Dominion - Ansible primary dev/git
  • Endowment - Media distribution/collection
  • Honor - DMZ/Primary Adguard/Wireguard
  • Preservation - Databases
  • Ambition - Cloud VPS

Then my desktops are named after some of my favorite characters from the Cosmere: Kelsier, Vasher, and Szeth.

First Deploy instructions:

  • just install - Installs a github hook to prevent uploading an unencrypted Ansible vault file, adds the Ansible Galaxy roles, and sets up the Ansible vault password
  • just boostrap - Sets up the hosts with a main user and an ansible user that can run sudo without a password
  • just build_proxmox - Creates all LXCs, sets up disks on Proxmox host
  • just bootstrap HOSTNAME - Bootstraps the indicated server/desktop/whatever
  • just build HOSTNAME - Sets up the various machines

Ansible Vault

  • just encrypt - Encrypts the Ansible vault
  • just decrypt - Decrypts the Ansible vault

Updates

  • just update - Runs apt update and apt upgrade on the servers, and pushes an updated docker-compose.yml file
  • just docker - Runs docker-compose pull {{ containers }} and docker-compose up -d {{ container }} on host and containers specified

If you appreciate my work, please consider buying me a beer (or coffee, or whatever)

ko-fi

infra's People

Contributors

fuzzymistborn avatar renovate[bot] avatar renovate-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.