default => $apt_update_method,
}
+ $apt_http_proxy = $apt_http_proxy ? {
+ '' => false,
+ default => $apt_http_proxy,
+ }
+
+ $apt_ftp_proxy = $apt_ftp_proxy ? {
+ '' => false,
+ default => $apt_ftp_proxy,
+ }
+
package { apt: ensure => installed }
# a few templates need lsbdistcodename
}
}
}
+
+ if $apt_http_proxy or $apt_ftp_proxy {
+ file { "/etc/apt/apt.conf.d/proxy":
+ owner => root,
+ group => root,
+ mode => 0644,
+ content => template("apt/proxy.erb"),
+ require => File[apt_config],
+ }
+ } else {
+ file { "/etc/apt/apt.conf.d/proxy":
+ ensure => absent,
+ }
+ }
}
class dselect {