Hello all, 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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thu, Mar 3, 2011 at 4:55 AM, FRLinux <frlinux@gmail.com> wrote:> Hello all, > > 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 >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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Piddock
2011-Mar-03 18:41 UTC
Re: [Puppet Users] lsbdistcodename and Debian Squeeze
On 03/03/11 11:55, FRLinux wrote:> Hello all, > > 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?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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thu, Mar 3, 2011 at 6:41 PM, Daniel Piddock <dgp-goog@corefiling.co.uk> wrote:> Update your lsb-release package to at least version 3.2-23.2squeeze1.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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.