Giter Club home page Giter Club logo

infra's Introduction

KalkSpace Infra

Frickel Config Management via Ansible

Ask high-level questions in the forums or in #infrastruktur. For specific problems or enhancements, please open an issue.

Metrics

This manages metrics services living at https://metrics.kalk.space. See the role readme for details.

Getting started

The config management is based on Ansible. To be able to test and apply changes to this repo you need to install it.

Configuration is split into roles:

Testing changes

Use this command to test changes before rolling them to a live node (requires Docker):

ansible-playbook test.yml --diff

This will not attempt to bring up any containers. It only tests config generation.

To check the config files, look at the diff output or run docker exec -ti <container_id> bash.

If you want to start a subsequent run with a fresh test environment, run:

ansible-playbook test.yml --diff -e recreate_test_env=true

Access to secrets

Secrets are encrypted via Ansible vault. This allows us to not commit them in plaintext and still enjoy all benefits of git.

All secrets should be stored in vault/secrets.yml to collect them in a single place. vault/test-dummies.yml is used for setting mock values for testing.

The vault needs a password to decrypt secrets for production runs. Members of the admin team can find this in our password manager. Place it in ~/.kalkspace_ansible_vault_pass.

Applying changes

Use the site.yml playbook to apply changes to a production node. You need to have your SSH key in allowed_hosts of the root user on the host.

ansible-playbook site.yml --diff

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.