Even though the Ubuntu package repository contains many up-to-date packages, you might bump into situations where either the package you need is missing or is outdated. In such cases, you can either use third-party repositories or your own (containing self-made packages). Chef makes it simple to use additional package repositories with the
apt cookbook,if you're on Debian or Ubuntu.
Chef provides a
yum resource, if you're on RedHat/CentOS/Fedora/Scientific
Make sure you've a cookbook called
my_cookbook and the
run_list of your node includes
my_cookbook as described in the Creating and using cookbooks section in Chapter 1, Chef Infrastructure.