7 $release = $::apt::xfacts['lsbdistcodename'],
13 $architecture = undef,
14 $trusted_source = false,
16 validate_string($architecture, $comment, $location, $repos)
17 validate_bool($trusted_source, $include_src, $include_deb)
20 fail('lsbdistcodename fact not available: release parameter required')
23 $_before = Apt::Setting["list-${title}"]
28 fail('key hash must contain at least an id entry')
30 $_key = merge($::apt::source_key_defaults, $key)
37 apt::setting { "list-${name}":
39 content => template('apt/_header.erb', 'apt/source.list.erb'),
43 # Get the host portion out of the url so we can pin to origin
44 $url_split = split($location, '/')
55 # We do not want to remove keys when the source is absent.
56 if $key and ($ensure == 'present') {
58 apt::key { "Add key: ${_key['id']} from Apt::Source ${title}":
61 server => $_key['server'],
62 content => $_key['content'],
63 source => $_key['source'],
64 options => $_key['options'],
68 apt::key { "Add key: ${_key} from Apt::Source ${title}":