class debian_org::apt {
$mirror = lookup('apt::sources::debian::location')
- # jessie
- if versioncmp($::lsbmajdistrelease, '8') <= 0 {
- base::aptrepo { 'debian':
- url => $mirror,
- suite => [ $::lsbdistcodename ],
- components => ['main','contrib','non-free']
- }
- # stretch or buster
- } else {
- base::aptrepo { 'debian':
- url => $mirror,
- suite => [ $::lsbdistcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ],
- components => ['main','contrib','non-free']
- }
+ base::aptrepo { 'debian':
+ url => $mirror,
+ suite => [ $::lsbdistcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ],
+ components => ['main','contrib','non-free']
}
base::aptrepo { 'security':