7 $release = $::apt::xfacts['lsbdistcodename'],
12 $architecture = undef,
13 $trusted_source = false,
15 validate_string($architecture, $comment, $location, $repos)
16 validate_bool($trusted_source)
17 validate_hash($include)
20 fail('lsbdistcodename fact not available: release parameter required')
23 $_before = Apt::Setting["list-${title}"]
24 $_include = merge($::apt::include_defaults, $include)
29 fail('key hash must contain at least an id entry')
31 $_key = merge($::apt::source_key_defaults, $key)
38 apt::setting { "list-${name}":
40 content => template('apt/_header.erb', 'apt/source.list.erb'),
44 # Get the host portion out of the url so we can pin to origin
45 $url_split = split($location, '/')
56 # We do not want to remove keys when the source is absent.
57 if $key and ($ensure == 'present') {
59 apt::key { "Add key: ${_key['id']} from Apt::Source ${title}":
62 server => $_key['server'],
63 content => $_key['content'],
64 source => $_key['source'],
65 options => $_key['options'],
69 apt::key { "Add key: ${_key} from Apt::Source ${title}":