Use the geoDNS http.debian.net instead of the main debian ftp server
'squeeze': {
$backports_location = 'http://backports.debian.org/debian-backports'
}
+ 'wheezy': {
+ $backports_location = 'http://ftp.debian.org/debian/'
+ }
default: {
$backports_location = 'http://http.debian.net/debian/'
}
proxy_host => false
}'
end
- let :filename do
- "#{title}-#{release}.list"
- end
+ let :filename do
+ "#{title}-#{release}.list"
+ end
it { should contain_exec("add-apt-repository-#{title}").with(
'environment' => [],
- 'command' => "/usr/bin/add-apt-repository #{title}",
+ 'command' => "/usr/bin/add-apt-repository #{options} #{title}",
'creates' => "/etc/apt/sources.list.d/#{filename}",
'require' => ["File[/etc/apt/sources.list.d]", "Package[#{package}]"],
'notify' => "Exec[apt_update]"