--- /dev/null
+//
+// THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+// USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+//
+
+DPkg::Post-Invoke { "cd /var/lib/misc/thishost/ ; dpkg-query -W -f '${Package}\n' > pkglist.tmp ; mv pkglist.tmp pkglist"; };
--- /dev/null
+pkglist = '/var/lib/misc/thishost/pkglist'
+
+if FileTest.exist?(pkglist)
+ Facter.add('pkglist') do
+ setcode do
+ open(pkglist).read().split("\n").join(' ')
+ end
+ end
+end
file { '/etc/apt/apt.conf.d/local-cainfo':
source => 'puppet:///modules/debian_org/apt.conf.d/local-cainfo',
}
+ file { '/etc/apt/apt.conf.d/local-pkglist':
+ source => 'puppet:///modules/debian_org/apt.conf.d/local-pkglist',
+ }
+
+ exec { 'dpkg list':
+ command => 'dpkg-query -W -f \'${Package}\n\' > /var/lib/misc/thishost/pkglist',
+ creates => '/var/lib/misc/thishost/pkglist',
+ }
exec { 'apt-get update':
path => '/usr/bin:/usr/sbin:/bin:/sbin',