- path => "${sources_list_d}/${name}.list",
- owner => root,
- group => root,
- mode => '0644',
- content => template("${module_name}/source.list.erb"),
- notify => Exec['apt_update'],
- }
-
-
- if ($pin != false) {
- # Get the host portion out of the url so we can pin to origin
- $url_split = split($location, '/')
- $host = $url_split[2]
-
- apt::pin { $name:
- ensure => $ensure,
- priority => $pin,
- before => File["${name}.list"],
- origin => $host,
- }