Atmosphere 2014: Cheffing a department - Andrzej Grzesik
-
Upload
proidea -
Category
Presentations & Public Speaking
-
view
104 -
download
0
description
Transcript of Atmosphere 2014: Cheffing a department - Andrzej Grzesik
cheffing a department
Andrzej Grzesik
cheffing a departmentone dev at a time
Andrzej Grzesik
about:me
dev going deeper
disclaimers
my opinions are my own
I hate computers
questions?shoot!
#atmospheretweet please
tl;dr;
nie ma, że nie ma mema
a bit of background
new devsnext to existing org
what did we do?
started to use chef
why?
we wanted kickass people
ok, not really
we needed a prod quickly
and things were broken*and we didn’t have time nor nerves
infrastructure as code
bash scales well
bash scales well
protein scales wellit’s just 25 years to breed and train a new techie!
goal: automated infra
So, chef
nope
why not *
what does it look like?
code?
easy to read easy to version with concise DSL
package "haproxy" do! action :install!end!!
template "/etc/haproxy/haproxy.cfg" do! source "haproxy.cfg.erb"! owner "root"! group "root"! mode 0644! notifies :restart, "service[haproxy]"!end!!
service "haproxy" do! supports :restart => true! action [:enable, :start]!end!
put resources together into recipes organise recipes into roles apply roles to machines
there is a lot of this on github
developers doing infra
problems?“what could possibly go wrong”
it wasn’t easy
it isn’t easy
reality
soform follows function
simplicity is key
a tiny problem
polyglots ftw
server or solo?
why NOT chef server?
reviewsmandatory
[email protected]:ktoso/review-kiwi.git
dual executionbiggest problem
people
let them do mistakes
let them do mistakestough
do food
do food
phoenix patterndisposable servers
phoenix patterndon’t fix boxes, bake new
‘breaking’ loginhelps ;-)
what now?
QA/QE to the rescue
mobile first?
mobile first!
summary
people are complicated
summary
• keep it simple
• do things
• ???
• profit
kthxbye