Chef infrastructure as code

15
Infrastructure as code with Chef

description

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.

Transcript of Chef infrastructure as code

Infrastructure as codewith Chef

remercie pour l�organisation de

ses sponsors pour leur soutien

Infrastructure as codewith Chef

Infrastructure as codewith Chef

http://www.zem.fr/

Chef ?

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

Premier CookbookEn mode TDD

TDD ?

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")

BDD ?

BDD

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

Démo

Merci

@nledez nicolas.ledez.net