Cookbooks
iis
documentation
Iis Module

back to resource list (opens in a new tab)


iis_module

Manages modules globally or on a per site basis.

Actions

  • :add - add a new module
  • :delete - delete a module
  • :install - install a native module from the filesystem (.dll)
  • :uninstall - uninstall a native module

Properties

NameTypeDefaultDescription
module_nameStringname property. The name of the module to add or delete
typeStringThe type of module
preconditiontrue, falseprecondition for module
applicationStringThe application or site to add the module to
addStringfalseWhether the module you install has to be globally added
imageStringLocation of the DLL of the module to install

Examples

# 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"