Giter Site home page Giter Site logo

chinook's Introduction

Chinook

Layered Terraform & Ansible toolbox to setup a prod-ready Nomad cluster in AWS.

Getting started

  • Fill the file inventories/host_vars/localhost.yml to point a private key file and a public key file:
default_local_private_key_file: "/absolute/path/to/private_key_file"
default_local_public_key_file: "/absolute/path/to/public_key_file"
  • Fill your env vars to allow Terraform to authenticate to AWS.
  • Then deploy infrastructure, layer by layer:
ansible-playbook playbooks/deploy-tf-layer.yml -e layer_name=00-access-rights
ansible-playbook playbooks/deploy-tf-layer.yml -e layer_name=01-landscape
ansible-playbook playbooks/deploy-tf-layer.yml -e layer_name=02-monitor
ansible-playbook playbooks/deploy-tf-layer.yml -e layer_name=03-masters
ansible-playbook playbooks/deploy-tf-layer.yml -e layer_name=04-workers
  • Wait a couple of minutes for all hosts to start and execute their cloudinit scripts.
  • At last, let Ansible do its job:
ansible-playbook playbooks/configure.yml

Use it

For now, all ips are stated in inventories/*.inventory. Landscape holds bastion hosts. Monitor holds Prometheus and Grafana. Masters hold Consul and Nomad Server. Workers hold Nomad nodes.

For now, to reach services, you need to forward remote ports locally via ssh.

Have fun. Hack in peace.

switch to new environment :

  • change vars in group_vars/all.yml

  • change vars in 020-entry-points/terraform.tfvars

    Non-members getting access to data Cluster state manipulation due to malicious messages Fake data generation due to malicious messages Tampering causing state corruption Denial of Service against a node

regen certificates of host : delete node cer and csr locally and rerun consul-agent

https://github.com/libopenstorage/openstorage

chinook's People

Stargazers

vbenji avatar Alexis Morelle avatar

Watchers

Aurélien Maury avatar James Cloos avatar  avatar

Forkers

almorelle jdxlabs

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.