Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. I’m using it for Nousmotards and decided to build an Ansible role for it to make it simpler to deploy. Why did I built it as other projects like Kargo already exists? I just wanted a simple and maintainable role based on CoreOS official documentation. That’s what I did: This role bootstrap a Kubernetes cluster based on CoreOS Container Linux for production usages.

Continue reading

  CoreOS is a lightweight Linux operating system designed for clustered deployments providing automation, security, and scalability for your most critical applications. I’ve been playing with CoreOS to replace Debian hosts which run Docker containers on Nousmotards project. CoreOS helps on simplifying bare metal deployment and avoid managing OS upgrade. As I’m still an Ansible lover, I’ve made 2 roles: CoreOS Ansible: Ansible role to deploy pypy to CoreOS to be able to get Ansible prerequisites CoreOS: Ansible CoreOS role to deploy CoreOS on bare metal servers If you want to quickly look at the result:

Continue reading

As I wanted to upgrade it and because it has been asked several time, I upgraded the consul-template Ansible role to manage official binaries (and upgrades). Here are the new vars: consul_template_version: '0.11.0' consul_template_arch: 'linux_amd64' consul_template_http_src: "https://github.com/hashicorp/consul-template/releases/download/v{{consul_template_version}}/consul_template_{{consul_template_version}}_{{consul_template_arch}}.zip" You can of course find the role to Ansible Galaxy: https://galaxy.ansible.com/deimosfr/consul-template/ I hope you’ll enjoy this new version :-)

Continue reading

The Ansible meetup ended ! That was really nice for my first one. I had really great feedbacks and liked the questions when ended. More than that I met nice people after the meetup and could have interresting discussions :-). I’m really happy about it. For those who would like to review the slides, you can find them here: http://nousmotards.github.io/ansible-meetup-0915/ If you want to watch the video: http://www.infoq.com/fr/presentations/reseau-social-motard or view the PDF version here:

Continue reading

A few months ago, I already talked about offloading SSL with Nginx. I also wanted to try it with HAProxy which can be more interesting in some cases. The good On HAProxy, the good thing is the simplicity to do it. First of all you need to have at least the version 1.5 of HAProxy so to get SSL support. Then you only need those lines to offload SSL:

Continue reading

Packer is a really great solution to make an image in several formats (VirtualBox, Docker…). I recently wanted to deploy it on a Jenkins server to automatically perform image build with the help of Packer. That’s why I’ve wrote a Packer role for Ansible really easy to use. You simply have to set (or let them by defaults) vars: # Packer version to install packer_version: '0.7.5' # Packer destination folder packer_destination: '/usr/bin' It will install the desired version :-)

Continue reading

For my company, I recently had to find a good solution to make Snapshots from Instance IDs or from tags on AWS. I made several searches but unfortunately didn’t find what I was searching for. That’s why I started to make a tool to do this kind of job. It’s written in Python and requires the Boto library. Here is what you can do with Simple EC2 snapshots: Hot snapshots (by default) and Cold snapshots Multiple instances snapshot in one line Detection of doubles Filters by tags (allowing wildcards) or by instance IDs Credentials file multiple with profiles Limit the number of snapshots Restrict snapshots to data disks only The tool is open source and can be downloaded on GitHub :-).

Continue reading

Author's picture

Pierre Mavro / Deimosfr


SRE Lead DevOps at Criteo  •  Nousmotards Co-Founder

Paris - France