Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Chef + Rails for customer cloud control zondag 7 april 13
Slide 2
Slide 2 text
Joren dev Steven ops zondag 7 april 13
Slide 3
Slide 3 text
Openminds zondag 7 april 13
Slide 4
Slide 4 text
How it used to be • ./post_install.sh • openminds gem • rackup omd.rb • data push to Sock zondag 7 april 13
Slide 5
Slide 5 text
• Idempotence • Time consuming • Direct control • Special snowflakes Implications for us zondag 7 april 13
Slide 6
Slide 6 text
for customers • no fixed solution: special snowflakes • one-way traffic to Sock • not a real control panel zondag 7 april 13
Slide 7
Slide 7 text
starting with chef zondag 7 april 13
Slide 8
Slide 8 text
Why Chef zondag 7 april 13
Slide 9
Slide 9 text
Why Chef zondag 7 april 13
Slide 10
Slide 10 text
First steps • ./post_install.sh zondag 7 april 13
Slide 11
Slide 11 text
LAMP Chef Server A M P VPS x zondag 7 april 13
Slide 12
Slide 12 text
Initial Issues • not always reusable • no why-run zondag 7 april 13
Slide 13
Slide 13 text
Version management • don’t break old stuff • no major upgrades • wrapper recipe • new version == new recipe zondag 7 april 13
Slide 14
Slide 14 text
MySQL::default zondag 7 april 13
Slide 15
Slide 15 text
Version management Library cookbook Wrapper cookbook zondag 7 april 13
Slide 16
Slide 16 text
Version management Library cookbook Sock (cookbook) zondag 7 april 13
Slide 17
Slide 17 text
Sock B.C. • one-way traffic • not a real control panel • time consuming for us zondag 7 april 13
Slide 18
Slide 18 text
Sock A.C. • two-way traffic • real control panel • client in control zondag 7 april 13
Slide 19
Slide 19 text
How Clients Sock Chef node(s) Openminds zondag 7 april 13
Slide 20
Slide 20 text
Provisioning Sock zondag 7 april 13
Slide 21
Slide 21 text
Provisioning Sock zondag 7 april 13
Slide 22
Slide 22 text
Provisioning Sock zondag 7 april 13
Slide 23
Slide 23 text
Sock provisions Chef zondag 7 april 13
Slide 24
Slide 24 text
Chef handling our JSON • Light-Weight Resource and Providers • Actions: create, update, delete, lock, move, ... zondag 7 april 13
Slide 25
Slide 25 text
Chef handling our JSON zondag 7 april 13
Slide 26
Slide 26 text
Chef handling our JSON zondag 7 april 13
Slide 27
Slide 27 text
Breaking stuff • Cache invalidation • Naming things • Git usage; working in a team • “but it worked on my Vagrant...” zondag 7 april 13
Slide 28
Slide 28 text
Sandbox Environment • We still use Vagrant <3 • Mimics Production Environment • Detailed monitoring zondag 7 april 13
Slide 29
Slide 29 text
Automated testing • Jenkins • Functional tests • Integration tests zondag 7 april 13
Slide 30
Slide 30 text
Knife test zondag 7 april 13
Slide 31
Slide 31 text
Knife test Food critic zondag 7 april 13
Slide 32
Slide 32 text
Knife test Food critic zondag 7 april 13
Slide 33
Slide 33 text
Xen node a node b node c zondag 7 april 13
Slide 34
Slide 34 text
Xen node a node b node c Integration tests } zondag 7 april 13
Slide 35
Slide 35 text
zondag 7 april 13
Slide 36
Slide 36 text
Le Future • we’re agile, we don’t plan the future • chef-sock all the things, all the time • better queueing and reporting zondag 7 april 13
Slide 37
Slide 37 text
Le Future zondag 7 april 13
Slide 38
Slide 38 text
Thank you. joren Zhann zondag 7 april 13