diff options
author | Micah Anderson <micah@riseup.net> | 2012-08-22 10:55:25 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-08-22 10:55:25 -0400 |
commit | b528cd0005f263b3d2014cdc44d7461577821343 (patch) | |
tree | 4cc18de35af7acec5c55b8658a0161c6dcbf6f49 /manifests | |
parent | 0c2f31b5d5c972c179cb06ea1a06e6e0e7b1b262 (diff) |
parameterize the apt::proxy_client class
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/proxy_client.pp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/manifests/proxy_client.pp b/manifests/proxy_client.pp index 23e9bd1..c284c74 100644 --- a/manifests/proxy_client.pp +++ b/manifests/proxy_client.pp @@ -1,14 +1,7 @@ -class apt::proxy_client { - - $real_apt_proxy = $apt_proxy ? { - "" => "http://localhost", - default => $apt_proxy - } - - $real_apt_proxy_port = $apt_proxy_port ? { - "" => "3142", - default => $apt_proxy_port - } +class apt::proxy_client( + $proxy = 'http://localhost', + $port = '3142', +){ apt_conf { "20proxy": content => template("apt/20proxy.erb"), |