$key_content = undef,
$key_source = undef,
$trusted_source = undef,
+ $notify_update = true,
) {
validate_string($architecture, $comment, $location, $repos)
validate_bool($allow_unsigned)
validate_hash($include)
- include 'apt::params'
+ # This is needed for compat with 1.8.x
+ include ::apt
$_before = Apt::Setting["list-${title}"]
}
apt::setting { "list-${name}":
- ensure => $ensure,
- content => template('apt/_header.erb', 'apt/source.list.erb'),
+ ensure => $ensure,
+ content => template('apt/_header.erb', 'apt/source.list.erb'),
+ notify_update => $notify_update,
}
if $pin {
if is_hash($pin) {
$_pin = merge($pin, { 'ensure' => $ensure, 'before' => $_before })
} elsif (is_numeric($pin) or is_string($pin)) {
- $url_split = split($location, '/')
- $host = $url_split[2]
+ $url_split = split($location, '[:\/]+')
+ $host = $url_split[1]
$_pin = {
'ensure' => $ensure,
'priority' => $pin,