Hello world using Chef

Check if Chef Development Kit and Vim are installed:

which chef vim
Create hello.rb inside your home directory:
$ cat ~/hello.rb
file '/hello.txt' do
  content 'Hello, world!'
end
Run chef-client as root in local mode (-z is an alternative option):
sudo chef-client --local-mode hello.rb
Verify:
ls -la /hello.txt
cat /hello.txt