Now that you have the source for the umbraco
cookbook downloaded to your local machine, let's take a look at what it's doing. Umbraco is a very easy-to-install ASP.net CMS application that will give you a good feeling for how to install and configure an IIS application using Chef. Umbraco was chosen for this example cookbook because it does not require a database, although it supports one, and its single ZIP file installation makes it easy to follow along.
Let's take an in-depth look at the default.rb
recipe that is contained within the umbraco
cookbook. The code snippets in the upcoming section are contained within umbraco/recipes/default.rb
.
Before we can set up the IIS application, our recipe will need to ensure that the IIS web server Windows role is installed on the host. As we have seen in the previous chapter, Chef has a resource, windows_feature
, that allows us to ensure that it is either already available or gets installed as part of...