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

Introduction

Moving files around and installing software are the most common tasks undertaken when setting up your nodes. In this chapter, we'll take a look at the various ways in which Chef supports you in dealing with ...

Get Chef Infrastructure Automation Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.