Forge Home

mac_proxy

A series of types/providers to manage Network interface proxies on OS X

10,418 downloads

10,182 latest version

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

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.2 (latest)
  • 0.0.1
released Nov 25th 2013

Start using this module

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

Add this module to your Puppetfile:

mod 'glarizza-mac_proxy', '0.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add glarizza-mac_proxy
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install glarizza-mac_proxy --version 0.0.2

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

glarizza/mac_proxy — version 0.0.2 Nov 25th 2013

OS X Proxy Puppet Module

This module contains all the files necessary for managing the following with Puppet:

  • FTP Proxy server/port
  • Web Proxy server/port
  • Gopher Proxy server/port
  • Secure Proxy server/port
  • Streaming Proxy server/port
  • Socks Proxy server/port
  • Auto Proxy URL
  • Proxy bypass domains

How to use

  • Install the module in your Puppet modulepath (If you don't know your main Puppet modulepath, you can find it with sudo puppet config print modulepath
  • Discover all resources with sudo puppet resource mac_web_proxy (or appropriate proxy type)
  • Declare and enforce configuration like you would normally with Puppet

Puppet Types

  • mac_web_proxy
  • mac_ftp_proxy
  • mac_gopher_proxy
  • mac_secure_proxy
  • mac_socks_proxy
  • mac_auto_proxy
  • mac_proxy_bypassdomains

Declaring a proxy resource

The web, ftp, gopher, secure, and socks proxy types are all declared similarly and use the same properties/parameters:

mac_web_proxy { 'Ethernet':
  ensure       => present,
  proxy_server => 'proxy.puppetlabs.com',
  proxy_url    => '8080'
}

The auto proxy only accepts a proxy_server property, and does not accept a proxy_port property:

mac_auto_proxy { 'Ethernet':
  ensure       => present,
  proxy_server => 'auto.puppetlabs.com',
}

The mac_proxy_bypassdomains type accepts an array for the domain property and sets the domains that should bypass the proxies for that network interface:

mac_proxy_bypassdomains { 'Ethernet':
  domains => ['*.puppetlabs.com', '10.13.1.3/24', 'www.garylarizza.com'],
}