In this article we will discuss about cookbooks. A Cookbook is used by Chef - Configuration management tool to define a set of instructions or commands that need to be executed on managed node. In this post we will create a simple cookbook to install IIS Server on Windows Machine. In Our case, Windows Machine will be on Microsoft Azure IaaS.
Copy cookbook folder from startup kit to /root/
Open a terminal in CentOS workstation and go to cookbooks directory. Execute chef generate cookbook webserver in terminal. It will create webserver folder in the cookbooks folder.
Open the webserver cookbook folder and verify different directory automatically created by the chef generate command.
default.rb file available in the recipe directory.
We will write a recipe that will install IIS Server and create a Web page:
In the Next article we will discuss about Execute knife-azure to create Virtual Machine on Microsoft Azure
Labels: Automation, Chef, Cloud Computing, Devops, Microsoft Azure