- template => 'debian-org/etc/apt/sources.list.d/debian.org.list.erb',
- key => 'puppet:///modules/debian-org/db.debian.org.asc',
+ url => 'http://db.debian.org/debian-admin',
+ suite => 'debian-all',
+ components => 'main',
+ key => 'puppet:///modules/debian-org/db.debian.org.gpg',
+ }
+ site::aptrepo { 'db.debian.org-suite':
+ url => 'http://db.debian.org/debian-admin',
+ suite => $::lsbdistcodename,
+ components => 'main',
+ }
+
+ augeas { 'inittab_replicate':
+ context => '/files/etc/inittab',
+ changes => [
+ 'set ud/runlevels 2345',
+ 'set ud/action respawn',
+ 'set ud/process "/usr/bin/ud-replicated -d"',
+ ],
+ notify => Exec['init q'],
+ }
+
+ if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
+ site::aptrepo { 'debian':
+ url => getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'),
+ suite => $mungedcodename,
+ components => ['main','contrib','non-free']
+ }