- site::aptrepo { 'security':
- url => [ 'http://security-cdn.debian.org/', 'http://security.anycast-test.mirrors.debian.org/debian-security/', 'http://security.debian.org/' ],
- suite => "${mungedcodename}/updates",
- components => ['main','contrib','non-free']
+
+ if versioncmp($::lsbmajdistrelease, '8') <= 0 {
+ base::aptrepo { 'security':
+ url => [ 'http://security-cdn.debian.org/', 'http://security.debian.org/' ],
+ suite => "${::lsbdistcodename}/updates",
+ components => ['main','contrib','non-free']
+ }
+ } else {
+ base::aptrepo { 'security':
+ url => [ 'http://security.debian.org/' ],
+ suite => "${::lsbdistcodename}/updates",
+ components => ['main','contrib','non-free']
+ }