On Tue, Mar 24, 2009 at 4:18 PM, Luke Kanies <[email protected]> wrote:
> > On Mar 24, 2009, at 2:55 PM, lance dillon wrote: > > > > > > > On Tue, Mar 24, 2009 at 3:53 PM, lance dillon > > <[email protected]> wrote: > > > > > > > > -- > > > > Actually, I haven't tested since then. Let me do some tests and > > I'll let you know if it is working yet or not. > > > > > > > > > > I just did a quick test. facter grabs all the information, but > > facter lsbdistid returns nothing. facter|grep lsbdistid returns > > lsbdistid though. I think it is still a problem. > > Yeah, that's a filed bug; I just wanted to clarify that it's not a > problem in Puppet, just when you use the facter executable on its own. > > We'd prefer to fix the actual problem rather than have a bunch of > nearly empty files around for each of the discovered facts, i think. > > > > Mar 24 15:57:41 rhqqaccms03 puppetd[11584]: Could not retrieve catalog: Could no t find template /etc/puppet/modules/repo/templates/RedHat-/rhel5.repo at /etc/pu ppet/modules/repo/manifests/init.pp:18 on node rhqqaccms03 Well, it is a problem in puppet though. The above error is produced because of the following recipe: class repo { package { yum-priorities: name => $operatingsystem ? { default => "yum-priorities", }, ensure => present, } file { "rhel.repo": name => $lsbmajdistrelease ? { 4 => "/etc/yum.repos.d/rhel4.repo", default => "/etc/yum.repos.d/rhel5.repo", }, mode => 644, owner => root, group => root, ensure => present, content => $lsbmajdistrelease ? { 4 => template("repo/${operatingsystem}-${lsbmajdistrelease}/rhel4.repo"), default => template("repo/${operatingsystem}-${lsbmajdistrelease}/ rhel5.re po"), }, } } $lsbmajdistrelease ends up empty unless I put those files in, and this is run from puppet, not just facter on its own. I have a simple recipe that distributes the simple files so that I can get those facts. It's a workaround, but it works for now. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
