Book Image

Configuration Management with Chef-Solo

By : Rahman
Book Image

Configuration Management with Chef-Solo

By: Rahman

Overview of this book

This is a step-by-step guide, full of hands-on examples of real-world deployment tasks. Each topic is explained and placed in context, while also pointing out the key details of the concepts used. This book is aimed at system administrators and system engineers who have an understanding of configuration management tools and infrastructure. For novice administrators, it contains easy-to-use application recipes to get started immediately.
Table of Contents (8 chapters)

Using files


Files are used as a resource to manage files on a new or existing node to create, delete, or update file contents. They contain user and group information along with the permission that needs to be assigned.

The syntax of the files is mentioned in the following code:

file "/tmp/testfile" do
  owner "root"  group "root"
  mode "0755"
  action :create
end

The preceding code block will be used to create a testfile in the /tmp folder, by the root user. The action attribute specifies the action that needs to be created.