Giter Site home page Giter Site logo

cloud-automation's Introduction

cloud

This Repo contains everything needed to deploy my Cloud Server on a Ubuntu Box, currently tested with Ubuntu 20.04.

The Folder "ansible" contains all the logic and playbooks to deploy everything needed and endup with a fully functional box.

The Folder "docker" contains all the description to deploy the single docker components needed, by using docker-compose.

The Folder "vagrant" contains a description for a vargant box that can be used to test everything.

Encrypt Strings containing sensitiv information:

ansible-vault encrypt_string --ask-vault-pass 'STRING TO ENCRYPT'

Using the Playbook to configure the cloud:

ansible-playbook -i inventory.test.yaml ./basic-install.yaml --ask-vault-pass

Restore the Cloud from a backup:

ansible-playbook -i inventory.test.yaml ./restore-nextcloud.yaml --ask-vault-pass

TODOs

  • Autodeployment (Idee):
    • unpriviligierten User anlegen der idealerweise in chroot umgebung ist
    • SSH key ohne passwort erstellen um Repo auszuchecken (für root auf cloud)
    • Gleichen SSH Key nutzen um auf cloud und raspi rootaccess zu bekommen
    • cronjob anlegen der prüft ob in chroot von unpriviligiertem User eine deploy datei erstellt wurde (diese kann schlüsselwörter wie "check" oder "prod" enthalten um den ansible mode zu bestimmen)
    • wenn die Datei existiert, wird ein deployment gestartet
    • Github Action erstellen die über unpriviligierten User die deploy datei anlegt
  • Prometheus Exporter/Metriken hinzufügen:
  • Überwachung auf neuere Docker Images bzw. neue Softwareversionen ("https://crazymax.dev/diun/providers/docker/)
    • Aufbau einer autodeploy Struktur, siehe u.a. branches hier
    • Erstellen eines Branches + PR über "update-docker-images.sh" skript
    • Automatische Mailbenachrichtigung via Github Actions
    • Via Github Actions nach dem Merge, eine Datei auf dem SRV anlegen (oder das repo regelmäßig pullen und bei änderungen, diese einspielen)
    • Wenn änderungen da sind, bzw. die Datei da ist, via ansible auf dem eigenen Server den Server aktualisieren

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.