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
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
Add it to
mma@laptop:~/chef-repo $ subl Berksfile
source 'https://supermarket.getchef.com' cookbook 'apt'
Install it to your local workstation:
mma@laptop:~/chef-repo $ berks install
Resolving cookbook dependencies... Fetching cookbook index from https://supermarket.getchef.com... Installing apt (2.6.1)
Upload it to your...