Let's Automate all the things

Ansible Paris Meetup, 28 Mars 2017

Amine Ben Asker

Software Engineer

Automation enthusiast

@asker_amine

yurilz.com

aka yurilz

Why Automate ?

Why Automate ?

Faster repairs

Faster action

Time saving

Paging a human is a quite expensive use of an engineer's time

Why Monitor ?

Analyzing long-term trends

Comparing overtime or experiment groups

Building dashboards

"If you can't monitor a service, you don't know what's happening, and if you're blind to what's happening, you can't be reliable" SRE, Google

Automation

+

Monitoring

Avoid "the someone" to stare at a screen to watch for problems 

How ?

Zabbix

Zabbix is an open source distributed monitoring software that monitors numerous parameters of a network and the health and integrity of servers.

Ansible

Ansible is a radically simple open source IT automation engine that automates ... ALL THE THINGS

[Ansible.com : Edited]

A basic Zabbix distributed architecture

Simple Incident workflow

Improved workflow

ZABBAlike

With ZABBAlike, Zabbix is able to automatically fix/scale itself

Zabbix Ansible Like

Playbook : Create a zabbix proxy

pre_tasks:
    - copy:
        src: "{{ zabbix_local_proxy_rpm }}" ...

roles:
    - { role: geerlingguy.mysql }
    - { role: amine.zabbalike-Installproxy }

tasks:
    - name: Link the Zabbix proxy to the Core
      local_action:
          module: zabbix_proxy

Playbook : fix a zabbix server

No longer be the robot, Invent the robot

Thanks

Follow me @asker_amine

Questions

Zabbix-Ansible

By Yuri Laaziz

Zabbix-Ansible

  • 1,555