Adoptable Cookbooks List

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Examples

# stop and delete the default site
iis_site 'Default Web Site' do
action [:stop, :delete]
end
# create and start a new site that maps to
# the physical location C:\inetpub\wwwroot\testfu
iis_site 'Testfu Site' do
protocol :http
port 80
path "#{node['iis']['docroot']}/testfu"
action [:add,:start]
end
# do the same but map to testfu.opscode.com domain
iis_site 'Testfu Site' do
protocol :http
port 80
path "#{node['iis']['docroot']}/testfu"
host_header "testfu.opscode.com"
action [:add,:start]
end

iis_config

Runs a config command on your IIS instance.

Actions

:config - Runs the configuration command

Attribute Parameters

cfg_cmd - name attribute. What ever command you would pass in after "appcmd.exe set config"

Example

#Sets up logging
iis_config "/section:system.applicationHost/sites /siteDefaults.logfile.directory:"D:\\logs"" do
action :config
end
#Loads an array of commands from the node
cfg_cmds = node['iis']['cfg_cmd']
cfg_cmds.each do |cmd|
iis_config "#{cmd}" do
action :config
end
end

iis_pool

Creates an application pool in IIS.

Actions

:add - add a new application pool

:config - apply configuration to an existing application pool

:delete - delete an existing application pool

:start - start a application pool

:stop - stop a application pool

:restart - restart a application pool

:recycle - recycle an application pool

Attribute Parameters

pool_name - name attribute. Specifies the name of the pool to create.

runtime_version - specifies what .NET version of the runtime to use.

pipeline_mode - specifies what pipeline mode to create the pool with

private_mem - specifies the amount of private memory (in kilobytes) after which you want the pool to recycle

iis_module

Actions

Attribute Parameters

module_name - The name of the module to add or delete

type - The type of module

precondition - precondition for module

application - The application or site to add the module to

Example

# Adds a module called "My 3rd Party Module" to mySite/
iis_module "My 3rd Party Module" do
application "mySite/"
precondition "bitness64"
action :add
end
# Adds a module called "MyModule" to all IIS sites on the server
iis_module "MyModule"

Usage

default

Installs and configures IIS 7.0/7.5/8.0 using the default configuration.

mod_*

This cookbook also contains recipes for installing individual IIS modules (extensions). These recipes can be included in a node's run_list to build the minimal desired custom IIS installation.

mod_aspnet - installs ASP.NET runtime components

mod_auth_basic - installs Basic Authentication support

mod_auth_windows - installs Windows Authentication (authenticate clients by using NTLM or Kerberos) support

Note: Not every possible IIS module has a corresponding recipe. The foregoing recipes are included for convenience, but users may also place additional IIS modules that are installable as Windows features into the node['iis']['components'] array.

License and Author

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

v1.0.2

Ruby 1.9 compat fixes

ensure carriage returns are removed before applying regex

v1.0.0

[COOK-718] initial release

Foodcritic Metric

2.1.6 failed this metric

FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/app.rb:27FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/app.rb:43FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/app.rb:62FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/config.rb:27FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/pool.rb:27FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/pool.rb:42FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/pool.rb:104FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/pool.rb:114FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/pool.rb:124FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/pool.rb:134FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/pool.rb:142FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/site.rb:26FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/site.rb:56FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/site.rb:100FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/site.rb:110FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/site.rb:120FC017: LWRP does not notify when updated: /tmp/cook/64f07b5e8343c11cce92c244/iis/providers/site.rb:130