Slide 1

Slide 1 text

DevOps with Ansible Federico Marani - DJUGL Sep ‘13

Slide 2

Slide 2 text

- First website in Python on Linux in 1998 - Startupper Federico Marani - @flagZ Tech Lead at

Slide 3

Slide 3 text

DevOps - Infrastructure as code - People leave companies Automate all the things!

Slide 4

Slide 4 text

DevOps should not require programming experience

Slide 5

Slide 5 text

DevOps = SysAdmin 2.0 (ideally keep the one-liners in the transition)

Slide 6

Slide 6 text

Ansible - Quick to get started - Builds on familiar tools - Run commands on ssh

Slide 7

Slide 7 text

Playbook

Slide 8

Slide 8 text

Task order is important Example: 1. Install Postgres 2. Create db user 3. Create database

Slide 9

Slide 9 text

Task are idempotent* *can be applied multiple times without changing the result beyond the initial application

Slide 10

Slide 10 text

Handlers commands flagged for later execution (when task caused state change)

Slide 11

Slide 11 text

Inventory

Slide 12

Slide 12 text

batteries included

Slide 13

Slide 13 text

How do we use it Postgresql PostGIS Solr Nginx Munin Rsyslog Postfix Vagrant Memcached Rabbitmq

Slide 14

Slide 14 text

TIPS

Slide 15

Slide 15 text

- Use Ansible roles - Use the action with least side effects (e.g. prefer “copy” to “template”)

Slide 16

Slide 16 text

- Keep servers stateless - Do things in the right place, either project level or infrastructure level.

Slide 17

Slide 17 text

Thanks Federico Marani @flagZ http://flagzeta.org Pics by - http://www.flickr.com/photos/zigazou76/ - http://www.flickr.com/photos/jamesclay/