Forge Home

iis

Puppet module for configuring IIS. It can configure application pools, sites, applications, virtual directories, settings and custom error pages.

11,946 downloads

11,113 latest version

3.5 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.

Version information

  • 0.2.0 (latest)
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.4
released Oct 22nd 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'mirdhyn-iis', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install mirdhyn-iis --version 0.2.0

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

mirdhyn/iis — version 0.2.0 Oct 22nd 2014

puppet-iis

Puppet module for configuring IIS. It can configure application pools, sites, applications, virtual directories, settings and custom error pages.

The module is available on puppet forge: http://forge.puppetlabs.com/mirdhyn/iis Report issues there: https://github.com/mirdhyn/puppet-iis/issues

Comments and/or remarks are welcome!

Pre-requisites

The module works with IIS 7+. It does not work with IIS 6 or earlier as those versions of IIS did not include the appcmd tool.

Example Usage

      iis_apppool { 'PuppetIisDemo':
        ensure                => present,
        managedpipelinemode   => 'Integrated',
        managedruntimeversion => 'v2.0',
      }


      iis_site { 'PuppetIisDemo':
        ensure       => present,
        bindings     => ["http/*:8000:"],
        physicalpath => 'c:\puppet_iis_demo'
      }


      iis_vdir { 'PuppetIisDemo/JSCache':
        ensure       => present,
        iis_app      => 'PuppetIisDemo/',
        physicalpath => 'c:\puppet_iis_demo\Javascript'
      }


      iis_app { 'Default Web Site/JSCache/MINIFIED':
        ensure          => present,
        applicationpool => 'PuppetIisDemo',
        physicalpath    => 'c:\puppet_iis_demo\Javascript\Javascript\MINIFIED'
      }


      iis_config { 'system.webServer/caching':
        enabled           => true,
        enablekernelcache => true
      }


      iis_config { 'system.webServer/asp':
        cache_maxdisktemplatecachefiles => 4000,
        cache_scriptfilecachesize       => 4500,
        cache_scriptenginecachemax      => 1000,
        limits_processorthreadmax       => 100
      }


      iis_config { 'cache expiration for /JSCache':
        config_section                 => 'system.webServer/staticContent',
        path                           => 'Default Web Site/JSCache',
        clientcache_cachecontrolmode   => 'UseMaxAge',
        clientcache_cachecontrolmaxage => '730.00:00:00'
      }


      iis_errorpages { 'PuppetIisDemo/':
        error_pages => [{ statusCode   => 404,
                          path         => '/err/404.asp',
                          responseMode => 'ExecuteURL' },
                        { statusCode    => 500,
                          subStatusCode => 100,
                          path          => '/err/500.100.asp',
                          responseMode  => 'ExecuteURL'}]
      }

Testing

WIP (Manually tested on Windows Server 2008 R2 64bit)

Notes

If using the rake build scipt, you need to use Ruby >= 1.9.2