Version information
This version is compatible with:
- Puppet Enterprise 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
- Puppet >= 4.10.0 < 99.0.0
Start using this module
Add this module to your Puppetfile:
mod 'mgeppetto-windows_http_proxy', '1.1.1'
Learn more about managing modules with a PuppetfileDocumentation
Windows HTTP Proxy
Manage the HTTP proxy settings within Microsoft Windows.
Table of Contents
- Description
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
This module assists with managing the HTTP proxy configuration settings on a Windows node. It leverages PowerShell to do the bulk of the heavy lifting. By default, it will not make any modifications (to ensure unintentional breakage does not happen on a node).
Usage
To use the module, supply the desired configuration:
windows_http_proxy {
bypass_list => '<local>;*.test.sandbox.company.com;*.company.com;',
ensure => 'present',
port => 9191,
server => 'ourproxyserver.company.com',
}
When troubleshooting a node issue, create a System Environment variable with a Name of "PUPPET_PS_HELPER_DEBUG" and a Value of "True". Then trigger a Puppet agent run; after which you may review the contents of the "C:\Windows\Temp\windows_http_proxy.log" file.
Limitations
- This module uses the following to generate the contents of the REFERENCE.md file:
puppet strings generate --format markdown --out REFERENCE.md
- Command to apply this module locally (and kick the tires):
puppet apply --modulepath="<PathToModuleParentFolders>" --execute "include <ModuleName>" --environment "<EnvironmentName>" --no-splay --verbose --debug
- For example:
puppet apply --modulepath="C:\ProgramData\PuppetLabs\code\environments\production\modules;c:\projects\forge" --execute "include windows_http_proxy" --environment "production" --no-splay
Development
Feedback and ideas are always welcome - please contact an Author (listed in metadata.json) to discuss your input, or feel free to simply open an Issue.
Reference
Table of Contents
Classes
Public Classes
windows_http_proxy
: Windows HTTP Proxy
Private Classes
windows_http_proxy::config
: Configuration
Classes
windows_http_proxy
Manages Microsoft Windows HTTP proxy
Examples
include windows_http_proxy
Parameters
The following parameters are available in the windows_http_proxy
class:
bypass_list
Data type: String
String containing the list of addresses that should not go through the proxy Example: ';.sandbox.company.com;.company.com;'
Default value: '<local>'
ensure
Data type: Enum['absent', 'present', 'unmanaged']
denotes the desired state of the supplied proxy server Example: 'present'
Default value: 'unmanaged'
log_output
Data type: Boolean
Boolean used to enable additional logging output Example: true
Default value: false
port
Data type: Optional[Integer]
Denotes the port to use on the proxy server Example: 8282
Default value: undef
server
Data type: Optional[String]
String containing the FQDN of the proxy server to use Example: 'proxy.company.com'
Default value: undef
Dependencies
- puppetlabs/pwshlib (>= 0.4.0 < 99.0.0)
- puppetlabs/powershell (>= 1.0.1 < 99.0.0)
- puppet/stdlib (>= 6.4.0 < 99.0.0)