Chef infrastructure as code
15
Infrastructure as code with Chef
-
Upload
nicolas-ledez -
Category
Technology
-
view
211 -
download
1
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
Chef ?
http://www.vectorarts.net/people/free-woman-chef-tree-vector-graphics/
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
file("/etc/nginx/nginx.conf").must_have(:mode, "0440")package("nginx").must_be_installedservice("nginx").must_be_running