#
# Cookbook Name:: my_cookbook
# Recipe:: default
#
# Copyright 2015, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#


#Using environment variables
# ENV['MESSAGE'] = "Hello from Chef!"

# execute 'print value of environment variable $MESSAGE' do
# 	command 'echo $MESSAGE > /tmp/message'
# 	environment 'MESSAGE' => 'Hello from execute resource.'
# end

#Using search
# servers = search(:node, "role:web")

# servers.each do |srv|
# 	log srv.name
# end

#Using templates
# template "/etc/logrotate.conf" do
# 	source "logrotate.conf.erb"
# 	variables(
# 		how_often: "daily",
# 		keep: "31"
# 	)
# end



