Upload
nicolas-ledez
View
211
Download
1
Embed Size (px)
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.
Citation preview
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