Hi, Thanks again for the answers. I've haven't got to much time to play with puppet, but I always seems to forget that puppet compiles the code at the master, and sends this code to the nodes. The only thing that is transferred from the nodes regarding information, is facter information. Hence the variable ($ifconfig = generate("/usr/sbin/ ifconfig", "eth0") will be equal on all nodes when they get the compiled configuration.
The only simple way I can think of is creating a manifest which uses curl to POST a file to a HTTP server (or some other protocol). It can be quite time consuming to compare 30 httpd.conf just to verify that they are equal (they should be, but you never know without checking it) before managing them with puppet. Thanks for your help /Tore On 7 apr, 16:36, Daniel Pittman <dan...@rimspace.net> wrote: > Tore <tore.lo...@gmail.com> writes: > > What options does puppet provide to transfer information back to > > puppetmaster? > > Facter, as was already pointed out, and the option of exported and imported > resources if you have storeconfig enabled. However... > > [...] > > > I have a few cases where just retrieving file X from all nodes would > > be excellent, e.g. httpd.conf, just to diff them locally to verify > > that no differences is present, before adding a manifest for handling > > that file. > > > Does puppet have anything in stock for me here? > > ...this is not something that puppet is really designed to do, as far as I am > aware. So, it doesn't really offer many tools to support this sort of > discovery. > > I tend to use 'noop' on the specific resource and 'puppetd --test' on the > servers, or to use our ad-hoc change tools to fetch the appropriate files back > to my central system for me. > > Daniel > -- > ✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707 > ♽ made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.