Chef – 05 – First Recipe

#create hello.rb nano hello.rb
file ‘example.txt’ do
content ‘hello world’
end

#then apply

#chef-apply hello.rb

#you will see the ‘example.txt’  file with hello world content

https://github.com/apocoder/devops/blob/master/chef/chapter_1/01_hello.rb

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s