$mirror = [ $fallbackmirror ]
}
- if versioncmp($::lsbmajdistrelease, '9') <= 0 {
+ # jessie
+ if versioncmp($::lsbmajdistrelease, '8') <= 0 {
+ site::aptrepo { 'debian':
+ url => $mirror,
+ suite => [ $::lsbdistcodename ],
+ components => ['main','contrib','non-free']
+ }
+ # stretch
+ } elsif versioncmp($::lsbmajdistrelease, '9') <= 0 {
site::aptrepo { 'debian':
url => $mirror,
suite => [ $::lsbdistcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ],
components => ['main','contrib','non-free']
}
+ # buster or newer
} else {
site::aptrepo { 'debian':
url => $mirror,