O'Reilly logo

Configuration Management with Chef-Solo by Naveed ur Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Resources

Resources are a key part of a recipe; they define which action needs to be taken, which files need to be created, and which service needs to be restarted. Resources are responsible for taking any particular action on a node. They are written in a small block of Ruby code that runs sequentially as defined in the recipe. The chef-client looks for a resource, and on successful execution of the resource, it will return the success code to the chef-client. In case of any error, chef-client will terminate the operation and display an error.

As our new machine is ready, let's use some resources and install some basic packages. We will install the vim and screen packages on our new machine. The vim package is used for editing any document, whereas ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required