Chef template

chef-repo > site-cookbooks > hello > recipes > default.rb

template "index.html" do 
	path "/var/www/html/index.html"
	source "index.html.erb"
	mode 0644
end

chef-repo > site-cookbooks > hello > templates > default > index.html.erb

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	hello
</body>
</html>