Forge Home

windowsfeature

Module that will turn windows features on or off for Windows Server 2008 and above

76,537 downloads

65,679 latest version

3.0 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

  • 999.999.999 (latest)
  • 1.0.0
  • 0.2.0
  • 0.1.2
  • 0.1.1
  • 0.1.0
  • 0.0.3
  • 0.0.2
released Mar 30th 2014
This module has been deprecated by its author since Nov 2nd 2018.

The author has suggested puppet-windowsfeature as its replacement.

Start using this module

Documentation

opentable/windowsfeature — version 0.0.3 Mar 30th 2014

puppet-windowsfeature

Library that uses ServerManager api that comes with Windows Server 2008 and Windows Server 2012 to add / remove windows features

Build Status

Usage

This module is only available to Windows Server 2008 and above due to using the ServerManager 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:

class my_windows_features {
 windowsfeature { 'Web-Asp-Net': }
 windowsfeature { 'Web-Net-Ext': }
 windowsfeature { 'Web-ISAPI-Ext': }
 windowsfeature { 'Web-ISAPI-Filter': }
 windowsfeature { 'Web-Mgmt-Tools': }
 windowsfeature { 'Web-Mgmt-Console': }
 windowsfeature { 'telnet':
    ensure => absent,
 }
}

class my_other_windows_feature_implementation {
    windowsfeature{'IIS':
      feature_name => ['Web-Server',
        'Web-WebServer',
        'Web-Asp-Net45',
        'Web-ISAPI-Ext',
        'Web-ISAPI-Filter',
        'NET-Framework-45-ASPNET',
        'WAS-NET-Environment',
        'Web-Http-Redirect',
        'Web-Filtering',
        'Web-Mgmt-Console',
        'Web-Mgmt-Tools'],
    }
}

Then each place you want to use a module to manage windows features, then you just include it in your nodes.pp as follows:

node 'mywebserver' {
    include 'my_windows_features'
}

Further Info

For a list of the windows features you can install, please visit this technet article