Top Banner
Infrastructure as code with Chef
15

Chef infrastructure as code

Jan 12, 2015

Download

Technology

Nicolas Ledez

Lighting Talk sur comment gérer son infrastructure en écrivant du code avec Chef.
Et comme est du code, il devient possible de faire du BDD et TDD avec son infrastructure.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chef infrastructure as code

Infrastructure as codewith Chef

Page 2: Chef infrastructure as code

remercie pour l�organisation de

ses sponsors pour leur soutien

Page 3: Chef infrastructure as code

Infrastructure as codewith Chef

Page 4: Chef infrastructure as code

Infrastructure as codewith Chef

Page 5: Chef infrastructure as code

http://www.zem.fr/

Page 6: Chef infrastructure as code

Chef ?

http://www.vectorarts.net/people/free-woman-chef-tree-vector-graphics/

Page 7: Chef infrastructure as code
Page 8: Chef infrastructure as code

Premier CookbookEn mode TDD

Page 9: Chef infrastructure as code

TDD ?

Page 10: Chef infrastructure as code

TDD

runner.to create_file "/etc/nginx/nginx.conf"file = chef_run.template("/etc/nginx/nginx.conf")expect(file).to be_owned_by('root', 'root')expect(file.mode).to eq("0440")

Page 11: Chef infrastructure as code

BDD ?

Page 12: Chef infrastructure as code

BDD

file("/etc/nginx/nginx.conf").must_have(:mode, "0440")package("nginx").must_be_installedservice("nginx").must_be_running

Page 13: Chef infrastructure as code

Démo

Page 14: Chef infrastructure as code

Merci

Page 15: Chef infrastructure as code

@nledez nicolas.ledez.net