Creating a role

At this stage, all the required cookbooks are uploaded on the hosted Chef. Now, let's create a role on the hosted Chef.

Before creating a role, let's understand what it means.

A role is created for a specific function. It provides a path for various patterns and workflow processes.

For example, the web server role can consist of Tomcat server recipes and any custom attributes:

  1. Go to Policy in the hosted Chef Dashboard and click on Roles in the sidebar menu. Click on Create Role to create a role.
  2. In the Create Role window, provide a Name and Description.
  3. Click on Next.

Refer to the following screenshot:

  1. A Run List keeps roles/recipes ...

Get DevOps Bootcamp 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.