On Thu, Mar 3, 2011 at 4:55 AM, FRLinux <frli...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.