Skip to content

patux/proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Description

Setup or Removes the Proxy configuration on Linux boxes

This module depends on stdlib from puppetlabs to work: https://github.com/puppetlabs/puppetlabs-stdlib In case you do not have access to internet (for obvious reasons, not setting the proxy yet :P ) You can take it from vendor directory (included here) and move to your modules directory:

Current OS Supported:

  • Redhat based:
    • centos, fedora, redhat, scientific linux
  • Debian based:
    • debian, ubuntu
  • SuSE based:
    • OpenSuSE/SLES/SLED

Usage:

Setup the proxy:

NOTE Schemes are mandatory: Proxy URLs now must have an explicit scheme. A MissingSchema exception will be raised if they don't. More info: https://pypi.python.org/pypi/requests

node default {
    class { 'proxy': 
        http_proxy_host  =>  "http://myproxy.url.com", 
        http_proxy_port  => "3128", 
        https_proxy_host =>  "http://myproxy.url.com", 
        https_proxy_port => "3128", 
        socks_proxy_host =>  "socks://myproxy.url.com", 
        socks_proxy_port => "3128", 
        ftp_proxy_host   =>  "ftp://myproxy.url.com", 
        ftp_proxy_port   => "3128", 
        no_proxy_domains => ".intel.com,.mylocalnet.com",
    }
}

Remove the proxy:

node default { 
    class { 'proxy::remove': } 
} 

Example:

$ mkdir -p puppet/modules
$ cd puppet/modules
$ git clone https://github.com/patux/proxy.git
$ cd proxy
$ mv vendor/stdlib ../
$ cd tests
$ vi setup.pp # modify accoring your environment
$ puppet apply --modulepath=../../ setup.pp

About

Puppet module to setup a proxy on linux systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages