+ site::aptrepo { 'db.debian.org':
+ url => 'http://db.debian.org/debian-admin',
+ suite => 'lenny',
+ components => 'main',
+ key => 'puppet:///modules/debian-org/db.debian.org.asc',
+ }
+
+ if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
+ site::aptrepo { 'debian':
+ url => getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'),
+ suite => $::lsbdistcodename,
+ components => ['main','contrib','non-free']
+ }
+ }
+
+ file { '/etc/facter':
+ ensure => directory,
+ purge => true,
+ force => true,
+ recurse => true,
+ source => 'puppet:///files/empty/',
+ }
+ file { '/etc/facter/facts.d':
+ ensure => directory,
+ }
+ file { '/etc/facter/facts.d/debian_facts.yaml':
+ content => template('debian-org/debian_facts.yaml.erb')
+ }