Skip to content

Instantly share code, notes, and snippets.

@nathenharvey
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathenharvey/9092992 to your computer and use it in GitHub Desktop.
Save nathenharvey/9092992 to your computer and use it in GitHub Desktop.
# This is a Chef recipe file. It can be used to specify resources which will
# apply configuration to a server.
log "Welcome to Chef, #{node["starter_name"]}!" do
level :info
cookbook_file "helloworld.txt" do
path "/Users/rossmohan/HELLOWORLD.TXT"
action :create_if_missing
end
end
# You can't nest resources like that so it will fail, as you've seen.
# Try this instead
log "Welcome to Chef, #{node["starter_name"]}!" do
level :info
end
cookbook_file "helloworld.txt" do
path "/Users/rossmohan/HELLOWORLD.TXT"
action :create_if_missing
end
@rmohanx
Copy link

rmohanx commented Feb 19, 2014

Works like a champ. You rock. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment