windowsfeature
Version information
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
puppet-windowsfeature
Library that uses ServerManager api that comes with Windows Server 2008 and Windows Server 2012 to add / remove windows features
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
Dependencies
- puppetlabs/stdlib (>=3.0.0)
- joshcooper/powershell (>=0.0.6)
Copyright (c) 2013 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.