On Sat, Jan 03, 2009 at 10:52:19PM -0800, Jos Backus wrote: > Btw, rather than parsing /etc/passwd yourself, why not let the Etc > module do the work for you? > > Etc.passwd do |pwent| > Facter.add("home_#{pwent.name}") do > setcode do > pwent.dir > end > end > end
Because I had no idea it existed. That works fine; thank you! -Robin -- They say: "The first AIs will be built by the military as weapons." And I'm thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---