Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
DevOps with Ansible
Federico Marani
September 17, 2013
Technology
1
970
DevOps with Ansible
Intro to Devops and Ansible, and how we use it in Trialreach.
Federico Marani
September 17, 2013
Tweet
Share
More Decks by Federico Marani
See All by Federico Marani
fmarani
1
3k
fmarani
2
1.1k
fmarani
1
960
fmarani
0
39
Other Decks in Technology
See All in Technology
kanaugust
PRO
0
160
free_world21
0
110
joytomo
0
110
clustervr
0
250
akitok_
2
800
hiroyaiizuka
0
190
kentaro
1
800
noriyukitakei
0
100
dena_tech
0
230
dena_tech
15
3.5k
htomine
0
180
htomine
0
190
Featured
See All Featured
jmmastey
10
630
shpigford
369
42k
chriscoyier
779
240k
sugarenia
233
860k
chriscoyier
498
130k
bkeepers
52
4.2k
bkeepers
321
53k
shpigford
165
19k
reverentgeek
167
7.3k
robhawkes
52
2.8k
colly
188
14k
keithpitt
401
20k
Transcript
DevOps with Ansible Federico Marani - DJUGL Sep ‘13
- First website in Python on Linux in 1998 -
Startupper Federico Marani - @flagZ Tech Lead at
DevOps - Infrastructure as code - People leave companies Automate
all the things!
DevOps should not require programming experience
DevOps = SysAdmin 2.0 (ideally keep the one-liners in the
transition)
Ansible - Quick to get started - Builds on familiar
tools - Run commands on ssh
Playbook
Task order is important Example: 1. Install Postgres 2. Create
db user 3. Create database
Task are idempotent* *can be applied multiple times without changing
the result beyond the initial application
Handlers commands flagged for later execution (when task caused state
change)
Inventory
batteries included
How do we use it Postgresql PostGIS Solr Nginx Munin
Rsyslog Postfix Vagrant Memcached Rabbitmq
TIPS
- Use Ansible roles - Use the action with least
side effects (e.g. prefer “copy” to “template”)
- Keep servers stateless - Do things in the right
place, either project level or infrastructure level.
Thanks Federico Marani @flagZ http://flagzeta.org Pics by - http://www.flickr.com/photos/zigazou76/ -
http://www.flickr.com/photos/jamesclay/