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