Last active
August 29, 2015 13:56
-
-
Save nathenharvey/9092992 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works like a champ. You rock. Thanks.