diff --git a/manifests/swh/apt_config.pp b/manifests/swh/apt_config.pp index ec790e7..5e3ceef 100644 --- a/manifests/swh/apt_config.pp +++ b/manifests/swh/apt_config.pp @@ -1,17 +1,22 @@ # Base class for Software Heritage-specific apt configuration class profile::swh::apt_config { include ::apt + class {'::apt::backports': + pin => 100, + } + $swh_mirror_location = hiera('swh::debian_mirror::location') ::apt::source {'softwareheritage': comment => 'Software Heritage specific package repository', location => $swh_mirror_location, release => $::lsbdistcodename, repos => 'main', allow_unsigned => true, + notify_update => true, } - Apt::Source <||> ~> Exec['apt_update'] -> Package <| provider == 'apt' |> + Class['apt::update'] -> Package <| provider == 'apt' |> }