I use puppetmaster on a Debian Squeeze server (packaged from Debian 2.6.2-4)
I am using a template for Debian Servers which works great for Lenny
in order to update my sources.list automagically, here goes:
deb http://ftp.ie.debian.org/debian <%= lsbdistcodename %> main contrib non-free
deb http://security.debian.org/ <%= lsbdistcodename %>/updates main
Now the problem is that for squeeze, it does not work as
lsbdistcodename gets n/a instead, is there any way to fix this?
architecture => amd64
facterversion => 1.5.7
hardwareisa => unknown
hardwaremodel => x86_64
id => root
is_virtual => true
kernel => Linux
kernelmajversion => 2.6
kernelrelease => 2.6.26-2-amd64
kernelversion => 2.6.26
lsbdistcodename => n/a
lsbdistdescription => Debian GNU/Linux 6.0 (n/a)
lsbdistid => Debian
lsbdistrelease => 6.0
lsbmajdistrelease => 6
Cheers,
Steph
If you run the command lsb_release on squeeze does it provide this
information? Looking at facter it's simply matching for the following
pattern (see lib/facter/lsb.rb):
"LSBDistCodeName" => %r{^Codename:\t(.*)$
Thanks,
Nan
Update your lsb-release package to at least version 3.2-23.2squeeze1.
Debian managed to almost release Squeeze with an lsb-release without
code for converting the version number 6.0 to the codename.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609325
HTH
Dan
That was it, turns out the upgrade hadn't finished properly hence left
a few packages pending updates.
Thanks for the reply and sorry for the noise.
Cheers,
Steph