iis
Version information
This version is compatible with:
- Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 3.8.7 < 5.0.0
This module has been deprecated by its author since Aug 1st 2017.
The reason given was: This module has been moved to the care of Puppet where it is now being maintained and updated.
The author has suggested puppetlabs-iis as its replacement.
Start using this module
Documentation
Deprecation notice
This module has been moved to the care of Puppet, where it is now being maintained and updated. Find new versions at https://forge.puppet.com/puppetlabs/iis .
Details for migrating can be found at: https://github.com/puppetlabs/puppetlabs-iis/blob/master/MIGRATION.md
IIS module for Puppet
Module for puppet that can be used to create sites, application pools and virtual applications with IIS 7 and above.
Table of Contents
- Overview
- [Requirements] (#requirements)
- [Types] (#types)
- [iis_site] (#iis_site)
- [iis_pool] (#iis_pool)
- [iis_virtualdirectory] (#iis_virtualdirectory)
- [iis_application] (#iis_application)
Overview
Create and manage IIS websites, application pools, and virtual applications.
Requirements
= Windows 2012
- IIS installed
Types
iis_site
Enumerate all IIS websites:
puppet resource iis_site
Example output for puppet resource iis_site 'Default Web Site'
iis_site { 'Default Web Site':
ensure => 'started',
app_pool => 'DefaultAppPool',
ip => '*',
path => 'C:\InetPub\WWWRoot',
port => '80',
protocol => 'http',
ssl => 'false',
}
iis_site attributes
-
ensure
Denotes the presence and state of site.{ present, absent, started, stopped }
Default:started
-
name
(namevar) Web site's name. -
path
Web root for the site. This can be left blank, although IIS won't be able to start the site. -
app_pool
The application pool which should contain the site. Default:DefaultAppPool
-
host_header
A host header that should apply to the site. Set tofalse
to maintain no host header. -
protocol
The protocol for the site. Defaulthttp
-
ip
The IP address for the site to listen on. Default:$::ipaddress
-
port
The port for the site to listen on. Default:80
-
ssl
If SSL should be enabled. Default:false
-
state
Whether the site should beStarted
orStopped
. Default:Started
Refresh event
Sending a refresh event to an iis_site type will recycle the web site.
iis_pool
Enumerate all IIS application pools:
puppet resource iis_pool
Example output for puppet resource iis_site 'DefaultAppPool'
iis_pool { 'DefaultAppPool':
ensure => 'started',
enable_32_bit => 'false',
pipeline => 'Integrated',
runtime => 'v4.0',
}
iis_pool attributes
-
ensure
Denotes the presence and state of pool.{ present, absent, started, stopped }
Default:started
-
name
(namevar) Application pool's name. -
enable_32_bit
Enable 32-bit applications (boolean). Default:false
-
pipeline
The managed pipeline mode for the pool {'Classic', 'Integrated'}. -
runtime
Version of .NET runtime for the pool (float). -
state
Whether the site should beStarted
orStopped
. Default:Started
Refresh event
Sending a refresh event to an iis_pool type will recycle the application pool.
iis_virtualdirectory
Enumerate all IIS virtual directories:
puppet resource iis_virtualdirectory
Example output for puppet resource iis_virtualdirectory 'default'
iis_virtualdirectory { 'default':
ensure => 'present',
path => 'C:\inetpub\wwwroot',
site => 'Default Web Site',
}
iis_virtualdirectory attributes
-
path
Target directory for the virtual directory. -
site
(Read-only) Web site in which the virtual directory resides. To change sites, remove and re-create virtual directory.
iis_application
Enumerate all IIS applications:
puppet resource iis_application
Example output for puppet resource iis_site 'test_app'
iis_application { 'test_app':
ensure => 'present',
app_pool => 'DefaultAppPool',
path => 'C:\Temp',
site => 'Default Web Site',
}
iis_application attributes
-
app_pool
The application pool which should contain the application. Default:DefaultAppPool
-
path
Root for the application. This can be left blank, although IIS won't be able to use it. -
site
(Read-only) Web site in which the application resides. To change sites, remove and re-create application.
Changelog
2017-06-13 Release 3.1.0
Summary
Release designating the deprecation of puppet-iis for the migration to puppetlabs-iis. The puppetlabs-iis 4.0.0 series continues the functionality present in the 3.x puppet-iis series along with lots of additional bugfixes, expanded functionality, improved performance, and official support from Puppet.
Improvements
- Add notification and documentation for namespace migration.
2017-02-11 Release 3.0.0
Summary
Major IIS site improvements; bug fixes. This is the last release with Puppet3 support!
Features
- Add idle action timeout
- Add state to site for Started or Stopped
Improvements
- Overhaul of IIS site logic. Server 2008 support dropped.
- Add host_header functionality
- Add refresh event to iis_site
Bugfixes
- Fix error thrown by ConverTo-Json
- Fix fact causing errors on RHEL6 nodes
- Remove invalid argument -SslFlags from Remove-WebBinding
2016-04-12 - Release 2.0.2
Summary
Bug fix release
Bugfixes
Application development renamed to application deployment Travis release pipeline fixed
2016-02-12 - Release 2.0.1
Summary
Bug fix release
Bugfixes
Application development renamed to application deployment
2016-02-12 - Release 2.0.0
Summary
New Major version. Support for installing IIS from scratch. Lots of new configuration options for managing application pools.
Features
- adding support for installing the windows features required to install IIS (#26)
- added support for SNI (#56)
- added
start_mode
andrapid_fail_protection
app pool advanced settings (#70) - added
apppool_identitytype
to manage_app_pool (#72) - added
apppool_idle_timeout_minutes
to manage_app_pool (#74) - added
apppool_max_processes
to manage_app_pool (#75) - added
apppool_recycle_periodic_minutes
to manage_app_pool (#78) - added
apppool_recycle_logging
to manage_app_pool (#81) - added
apppool_recycle_schedule
to manage_app_pool (#82)
Bugfixes
- fix virtual applications names that contain slashes (#59)
- fixed bug with space in virtual directory path (#67)
- updated the
iis_version
fact to support versions above 10 (#66)
Improvements
- updated the
iis_version
fact to be ruby only (#66) - updated stdlib minimum version dependency to 4.6.0 (#72)
- added .net 4.5 as a supported app runtime version (#83)
2015-05-22 - Release 1.4.1
Summary
Bugfix release do move fact into usable location
Bugfixes
- update the
iis_version
fact to a usable location - add upper-bound to stdlib and powershell dependencies in metadata
- added puppet and pe requirements to metadata
2015-05-01 - Release 1.4.0
Summary
First release in the new puppet-community namespace. Also adds new definition for managing virtual directories.
Features
- add new define
iis::manage_virtual_directory
for managing virtual directories.
2014-11-27 - Release 1.3.0
Summary
This release adds the option of only managing bindings. It also switches to the puppetlabs/powershell provider.
###Features
- add parameter
only_manage_binding
if we only want to manage the binding without managing the site
Bugfixes
- update dependency from joshcooper/powershell to puppetlabs/powershell
- fixing some warnings.
- fixing bug when updating
managed_pipeline_mode
- update all classes to properly use the powershell provider
2014-08-14 - Release 1.2.0
Summary
This release fixes some bugs when defining virtual applications.
Bugfixes
- fix being able to manage virtual applications with spaces in the name
- support for virtual applications on a directory that already exists
2014-08-08 - Release 1.1.2
Summary
A small maintenance release fixing some containment issues.
Bugfixes
- fixing lint and containment issues
2014-06-19 - Release 1.1.1
Summary
Another small bugfix release with the certificates.
Bugfixes
- fixing small bug in certificate binding
2014-04-22 - Release 1.1.0
Summary
Quick bug fix release to make sure that the https binding is updated if/when you update a certificate.
Bugfixes
- allow updating of https binding when certificate is updated.
2014-04-16 - Release 1.0.0
Summary
After feedback on the ssl support from the previous 0.0.2 release this release adds support for using the certificate thumbprint rather than the name when adding an SSL certificate.
Features
- change to using
certificate_thumbprint
rather thancertificate_name
##2014-02-19 - Release 0.0.2
Summary
Fixing lots of small bugs with this release. But the biggest change is the support of enabling SSL for sites.
Features
- added SSL support
Bugfixes
- fixed idempotancy bug with spaces in the site name
- fixed bug with quoting in app pool creation command
- fix issue when IIS starts with zero existing sites
- update PhysicalPath and ApplicationPool for existing sites
- removed validation around wildcard '*' for IP address binding
2013-08-22 - Release 0.0.1
Summary
Initial version
Dependencies
- puppetlabs/stdlib (>= 4.6.0 < 5.0.0)
- puppetlabs/powershell (>= 1.1.1 < 3.0.0)
The MIT License (MIT) Copyright (c) 2014 OpenTable, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.