Book Image

Chef Infrastructure Automation Cookbook Second Edition

By : Matthias Marschall
Book Image

Chef Infrastructure Automation Cookbook Second Edition

By: Matthias Marschall

Overview of this book

Table of Contents (14 chapters)
Chef Infrastructure Automation Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Working with Files and Packages

"The file is a gzipped tar file. Your browser is playing tricks with you and trying to be smart."

Rasmus Lerdorf

In this chapter, we will cover the following recipes:

  • Creating configuration files using templates

  • Using pure Ruby in templates for conditionals and iterations

  • Installing packages from a third-party repository

  • Installing software from source

  • Running a command when a file is updated

  • Distributing directory trees

  • Cleaning up old files

  • Distributing different files based on the target platform