Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nousmotards infrastructure with Ansible

Deimos Fr
September 15, 2015

Nousmotards infrastructure with Ansible

Those slides have been presented during an Ansible meetup (http://www.meetup.com/fr/Ansible-Paris/events/223572292/). The slides are giving an overview of what has been achieved in order to setup the Nousmotards infrastructure (social network for bikers www.nousmotards.com). Note: if you want to see the presentation with gif and video: http://nousmotards.github.io/ansible-meetup-0915/

Deimos Fr

September 15, 2015
Tweet

More Decks by Deimos Fr

Other Decks in Technology

Transcript

  1. ABOUT THE SPEAKER PIERRE MAVRO / @DEIMOSFR Co-Founder DevOps at

    Worked for and Wrote Tech and (www.deimos.fr) Motorcycle enthusiast Automation and NoSQL lover Nousmotards Criteo RedHat Ullink MariaDB High Performance Book blog wiki
  2. ABOUT NOUSMOTARDS is a social network for bikers made by

    bikers: Nousmotards Manage events Create road books Easily meet new friends ...
  3. WHY DID WE CHOOSE ANSIBLE? YAML make it simple and

    easy to read Fast to write and execute Agentless Tons of available community plugins and role Written in Python Because that just ROX !!!
  4. DOCKER What is Docker? Simple to install (repo + packages)

    Store images in a Docker registry (public/private) Container versionning Uses some LXC internals Easy to use Stable enough for small production
  5. PACKER What is Packer? Define source image Pre scripts (ansible

    dependencies) Run Ansible playbook Post scripts (clean) Export in wished format Push to your Docker registry
  6. ANSIBLE Store everything on Git Avoid repetition (with_*) Set multiple

    envs Use vars at max Use facts at max Fail fast Community: Ansible Galaxy
  7. CONSUL What is Consul? Why using Consul? Ansible deploy the

    servers Ansible deploy the agents on containers Register/unregister DNS entry with container start/stop Use consul_io.py for Ansible inventory
  8. CONSUL TEMPLATE Why is this needed? Choose a Load Balancer

    (like Haproxy) Use consul-template from Ansible Galaxy Configure Consul template for Haproxy Run it to get HAProxy updated with consul changes
  9. ANSIBLE IS EVERYWHERE!!! To build physical servers To build containers

    To deploy containers Integrated with Git and Jenkins
  10. ANSIBLE CONTRIBUTIONS Ansible Consul inventory Roles we're sharing: consul-template elasticsearch

    graphite mariadb neo4j packer https://galaxy.ansible.com/list#/users/3601