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:
- Redhat based:
- centos, fedora, redhat, scientific linux
- Debian based:
- debian, ubuntu
- SuSE based:
- OpenSuSE/SLES/SLED
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",
}
}
node default {
class { 'proxy::remove': }
}
$ 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