diff options
Diffstat (limited to 'manifests')
| -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; +  } +}  | 
