- if $::lsbmajdistrelease <= '8' {
- $fallbackmirror = 'http://cdn-fastly.deb.debian.org/debian/'
- } else {
- $fallbackmirror = 'http://deb.debian.org/debian/'
- }
-
- if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
- $mirror = [ getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'), $fallbackmirror, 'http://debian.anycast-test.mirrors.debian.org/debian/' ]
- } else {
- $mirror = [ $fallbackmirror, 'http://debian.anycast-test.mirrors.debian.org/debian/' ]
- }
-
- site::aptrepo { 'debian':