On Mar 20, 2009, at 1:44 AM, Rene wrote: > > OK, that is what I thought. Then it would be a good practice to use > the full path of the file as title, as I only see the title in yaml.
Well, you can pull that or file[:path]. file[:path] will always be the fully-qualified path. > > On Mar 19, 10:53 pm, Luke Kanies <l...@madstop.com> wrote: >> On Mar 12, 2009, at 12:50 PM, Rene wrote: >> >> >> >>> Hi >> >>> Is it possible to get a file list, that are managed / edited by >>> puppet, do I have to parse the yaml file on the client manualy and >>> look for file entries? >> >> You should be able to write a small chunk of ruby that loads the >> yaml: >> >> catalog = YAML.load_file(...yaml...).to_catalog >> >> files = catalog.vertices.find_all { |r| r.class == >> Puppet::Type::File } >> >> -- >> The most overlooked advantage to owning a computer is that if they >> foul >> up there's no law against wacking them around a little. -- Joe Martin >> --------------------------------------------------------------------- >> Luke Kanies |http://reductivelabs.com|http://madstop.com > > -- Life isn't fair. It's just fairer than death, that's all. -- William Goldman --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---