A PREPARED BY THE DEPARTMENT OF THE T DEPARTMENT OF EDUCATION
Cheffing a department
-
Upload
andrzej-grzesik -
Category
Technology
-
view
187 -
download
0
Transcript of Cheffing a department
@ags313#cheffing
Cheffing a dept, one dev at a time
Andrzej Grzesik @ags313 andrzejgrzesik.info
about:me
dev going deeper
disclaimers
my opinions are my own
questions?shoot!
#DevoxxUK #cheffingtweet please
tl;dr;
there is life beyond Tomcat
a bit of background
new department
new devsnext to existing org
do the right thingdo it right
enthusiasm through the roof
then: project happens
we need to run it!
what did we do?
started to use chef
why?
it was all amazing
ok, not really
we needed a prod quickly
and things were broken*and we didn’t have time nor nerves
So, chef
nope
why not *
dev friendliness
what does it look like?
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
code?
easy to read easy to version with concise DSL
there is a lot of this on githubproblem
infrastructure as code
bash scales well
protein scales wellit’s just 25 years to breed and train a new techie!
goal: automated infra
developers doing infra
developers doing infraproblem?
problems?“what could possibly go wrong”
it wasn’t easy
it isn’t easy
reality
needed buyin
soform follows function
simplicity is key
because yet another tool
a tiny problem
polyglots ftw
chef: server or solo?
why NOT chef server?
code reviewsmandatory
[email protected]:ktoso/review-kiwi.git
dual executionbiggest problem
people
politics
Single point of…
let people make mistakes
do food
great for trying
Law of Large Numbers
servers break
many servers break… a lot
phoenix patterndisposable servers
phoenix patterndon’t fix boxes, bake new
‘breaking’ loginhelps ;-)
How did we deploy?
not with chef
base roleextremely useful
what now?
QA/QE to the rescue
@YourTwitterHandle#DVXFR14{session hashtag} @ags313 #cheffing
Q & A
@YourTwitterHandle#DVXFR14{session hashtag} @ags313 #cheffing
Summar
y
people are complicated
summary
• keep it simple
• do things
• ???
• profit
kthxbye