GithubHelp home page GithubHelp logo

ewe-studios / ewe_infra Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.66 MB

Infrastructure for life

Shell 25.38% Jinja 37.86% Python 27.13% Ruby 1.88% CSS 0.80% Dockerfile 1.98% HTML 0.74% PHP 1.04% Lua 2.01% JavaScript 0.49% Makefile 0.69%

ewe_infra's Introduction

Ewe Infra

Infrastructure repository for booting up a working service infrastructure for deployment applications into. Built on top of kubernetes, gitea and gitops principles.

Setup

Vaulted Secrets

Within this playbook are ansible-vault encrypted files which require a secret, this should be placed in the secrets.txt file in the root of the repository.

Place your text within the secrets.txt and run desired playbooks.

Copy inventory.example.yml file and add your target servers

cp inventory.example.yml inventory.yml

Execute

Install VPS KVM Setup

The vps_kvm playbook will setup 3 controllers and 3 worker microvms using ignite and firecracker provisioning for you a ready environment for use in setting up whatever services you wish to setup. We reuse this for setting up k0s

make deploy_play FILE=vps_kvm EXTRA_VARS=""

e.g

make deploy_play FILE=local_llm EXTRA_VARS="vps_host='metal_slaves'"

Goal:

  1. Install containerd binary from its GitHub release.
  2. Install firecracker binary from its GitHub release.
  3. Install Weave Ignite binary from its GitHub release.
  4. Use WeaveIgnite to set up 3 microvm as controller nodes (goal for setup k0s via the vps_k0s and generated custom host files).
  5. Use WeaveIgnite to set up 3 microvm as worker nodes (goal for setup k0s via the vps_k0s and generated custom host files).
  6. Generate a new custom inventory file containing host IPs and details for controllers and worker nodes.

Extra Information

Ansible has varying plugins for dynamic inventories:

ansible.builtin.auto                                    Loads and executes an inventory plugin specified in a YAML config                                                                                                                                                                                                                                                                                                        
ansible.builtin.constructed                             Uses Jinja2 to construct vars and groups based on existing inventory                                                                                                                                                                                                                                                                                                     
ansible.builtin.generator                               Uses Jinja2 to construct hosts and groups from patterns                                                                                                                                                                                                                                                                                                                  
ansible.builtin.host_list                               Parses a 'host list' string                                                                                                                                                                                                                                                                                                                                              
ansible.builtin.ini                                     Uses an Ansible INI file as inventory source                                                                                                                                                                                                                                                                                                                             
ansible.builtin.script                                  Executes an inventory script that returns JSON                                                                                                                                                                                                                                                                                                                           
ansible.builtin.toml                                    Uses a specific TOML file as an inventory source                                                                                                                                                                                                                                                                                          
ansible.builtin.yaml                                    Uses a specific YAML file as an inventory source                

ewe_infra's People

Contributors

influx6 avatar

Watchers

 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.