diff options
author | nadir <nadir-technik@nadir.org> | 2010-10-22 19:17:57 +0200 |
---|---|---|
committer | nadir <nadir-technik@nadir.org> | 2010-10-22 19:17:57 +0200 |
commit | 851d20a7b621345516e8a8cd83d0970a5ea0521c (patch) | |
tree | 42847383584e518b3917d55d31b39ccafbee585c /manifests/proxy-client.pp | |
parent | eae01000c1db8bcfa7de17b2a9a8370289b801bc (diff) | |
parent | e2ac1b3d8d1713c81c83a695b776dec1c00d2d47 (diff) |
merged with immerda/master
Diffstat (limited to 'manifests/proxy-client.pp')
-rw-r--r-- | manifests/proxy-client.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/proxy-client.pp b/manifests/proxy-client.pp new file mode 100644 index 0000000..ea0a29c --- /dev/null +++ b/manifests/proxy-client.pp @@ -0,0 +1,18 @@ +class apt::proxy-client { + + $real_apt_proxy = $apt_proxy ? { + "" => "localhost", + default => $apt_proxy + } + + $real_apt_proxy_port = $apt_proxy_port ? { + "" => "3142", + default => $apt_proxy_port + } + + file { "/etc/apt/apt.conf.d/20proxy": + ensure => present, + content => "Acquire::http { Proxy \"http://$real_apt_proxy:$real_apt_proxy_port\"; };\n", + owner => root, group => 0, mode => 0644; + } +} |