Book Image

Chef Infrastructure Automation Cookbook

By : Matthias Marschall
Book Image

Chef Infrastructure Automation Cookbook

By: Matthias Marschall

Overview of this book

Table of Contents (14 chapters)
Chef Infrastructure Automation Cookbook Second Edition
About the Author
About the Reviewers

Installing packages from a third-party repository

Even though the Ubuntu package repository contains many up-to-date packages, you might bump into situations in which either the package you need is missing or outdated. In such cases, you can either use third-party repositories or your own repositories (containing self-made packages). Chef makes it simple to use additional APT repositories with the apt cookbook.

Getting ready

Make sure that you have a cookbook called my_cookbook and that the run_list of your node includes my_cookbook, as described in the Creating and using cookbooks recipe in Chapter 1, Chef Infrastructure.

Let's retrieve the required apt cookbook:

  1. Add it to Berksfile:

    mma@laptop:~/chef-repo $ subl Berksfile
    source ''
    cookbook 'apt'
  2. Install it to your local workstation:

    mma@laptop:~/chef-repo $ berks install
    Resolving cookbook dependencies...
    Fetching cookbook index from
    Installing apt (2.6.1)
  3. Upload it to your...