8000 GitHub - xorima/byte-haven: My Homelab setup
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xorima/byte-haven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Byte Haven

Welcome to the Byte Haven, my homelab setup repository. This repository provides Ansible playbooks to help set up and manage my homelab environment. It uses Ansible to automate server configuration, base setup, and Kubernetes (k3s) installation.

Prerequisites

Before you begin, make sure you have the following tools installed:

Secrets

The setup uses 1Password to retrieve secrets stored in the sg-k8s vault. You will need to have the following items stored:

  • admin-user: The username and initial password for the admin user.
  • my_user: The username and password for your primary user.
  • k3s-token: Token used for k3s installation.

Makefile Tasks

1. ansible-first-run

This task sets up the base configuration for your homelab by retrieving the admin credentials from 1Password and running the Ansible playbook with sudo privileges.

make ansible-first-run
  • Retrieves the admin user's initial password and username.
  • Executes the ansible/base.yaml playbook to configure the server.
  • Uses SSH keys for secure login, bypassing host key checking for ease of use.

2. ansible-base

This task runs the base configuration playbook without the admin password setup (useful after the initial run).

make ansible-base
  • Executes the ansible/base.yaml playbook.
  • Uses the primary user’s credentials stored in 1Password.

3. ansible-k3s

This task installs k3s, a lightweight Kubernetes distribution, on your server.

make ansible-k3s
  • Installs any required Ansible collections.
  • Retrieves the k3s token from 1Password and installs k3s using the ansible/k3s-install.yaml playbook.

Getting Started

  1. Clone the Repository

    git clone <repository-url>
    cd <repository-directory>
  2. Ensure SSH Access

    Make sure you have SSH access to the hosts defined in ansible/inventory/hosts.yaml. You may need to adjust your inventory file to point to your homelab servers.

  3. Configure 1Password CLI

    Log in to 1Password CLI to retrieve the necessary credentials:

    eval $(op signin)
  4. Run the Playbooks

    Start with the base configuration:

    make ansible-first-run

    Afterward, you can re-run tasks like ansible-base or ansible-k3s as needed to continue configuring your homelab.


Let me know if you need to tweak this further!

About

My Homelab setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0