Forge Home

iis

Module that will manage IIS for windows server 2008 and above. It will help maintain application pools, sites and virtual applications

10,655 downloads

9,675 latest version

3.2 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.6 (latest)
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2 (deleted)
  • 0.0.1 (deleted)
released May 2nd 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'apaz-iis', '0.0.6'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add apaz-iis
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install apaz-iis --version 0.0.6

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

apaz/iis — version 0.0.6 May 2nd 2014

Puppet-IIS

Module for puppet that can be used to create sites, application pools and virtual applications with IIS 7 and above.

Build Status

Usage

This module is only available to Windows Server 2008 and above due to using the WebAdministration module that ships with PowerShell. To use the module, use git clone to a directory in your modules folder on your puppetmaster. Then create a module manifest for the site you wish to maintain configuration for. Then you need to include this new module manifest in your nodes.pp file as follows:

node 'nodename' {
    include 'mywebsite'
}

Please note, that you need to implement the iis class in your module as in the example below

Examples

  class mywebsite {
    iis::manage_app_pool {'my_application_pool':
      enable_32_bit           => true,
      managed_runtime_version => 'v4.0',
    }

    iis::manage_site {'www.mysite.com':
      site_path     => 'C:\inetpub\wwwroot\mysite',
      port          => '80',
      ip_address    => '*',
      host_header   => 'www.mysite.com',
      app_pool      => 'my_application_pool'
    }

    iis::manage_virtual_application {'application1':
      site_name   => 'www.mysite.com',
      site_path   => 'C:\inetpub\wwwroot\application1',
      app_pool    => 'my_application_pool'
    }
    
    iis::manage_virtual_application {'application2':
      site_name   => 'www.mysite.com',
      site_path   => 'C:\inetpub\wwwroot\application2',
      app_pool    => 'my_application_pool'
    }
 }
 

This will result in an IIS Directory setup as follows:

The module knows that if requesting a virtual application, then it will have to create a site and application pool in the correct order so that it can build the correct model. Further usage would be to include the values as specified in the iis class above from hiera configuration.

Additional Bindings

A default binding is setup using the values passed to the manage_site resource. Additional bindings can be added to a site using the manage_binding resource.

-- iis::manage_binding { 'www.mysite.com-port-8080': site_name => 'www.mysite.com', protocol => 'http', port => '8080', }

Host header and ip address can also be supplied.

-- iis::manage_binding { 'www.mysite.com-port-8080': site_name => 'www.mysite.com', protocol => 'http', port => '8080', ip_address => '192.168.0.1', host_header => 'mysite.com', }