On Monday, August 5, 2013 9:55:48 AM UTC-5, root wrote: > > Yes, I do intend to list all the files and their expected mode and > ownership, I just want to figure out the nicest, most succinct way to do > that. > > Wildcards and recursive listings will do me no good -- these files are > scattered all over. > >
You are giving inconsistent criteria. Are you looking for succinct or pretty? The two are not well correlated. In your case, you need to create a separate File resource for each of the files you are talking about. Without some kind of regular organization to the target files, the most succinct way to do this is the one you described in your original post. You can pretty it up a little bit with nice formatting, but that can only take you so far. Alternatively, you can create a hash of hashes describing all the files you want to manage, and use Puppet's create_resources() function to actually declare them. See the documentation and other threads on this group for details. That would make the actual declaration very succinct indeed, but when you include the data (the hash of hashes), the whole will be longer. Or you can just write a separate declaration for each file, with or without the aid of in-scope resource defaults. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.