On Apr 21, 2009, at 4:25 PM, Simon J Mudd wrote: > > brice-pup...@daysofwonder.com (Brice Figureau) writes: > > ... > >>> If I'm not mistaken it's not possible to use the file resource for >>> copying files back to the puppet master. Is that correct? >> >> Yes it is correct. > > ok. > > ... > >> I think you should have a look to the filebucket[1]. It might not be >> exactly what you are asking for, but it might still help you. > > No, not really but thanks for the pointer. As I said my idea would be > to use this to "manage" local configuration files, but to manage them > "centrally". > > In a previous job using cvs and cfengine I used this to allow us to > maintain local configuration files normally pushed to the central > server, but under configuration control could also be used to push out > the same files on to a different box for example to replace a failed > server. > > To be fair I don't expect puppet to do all of this, but it would be > nice if the current file: resource/protocol could potentially work in > both directions. This would open up a lot of possibilities.
This will at least be possible internally with the code in 0.25 (which looks like it'll go rc1 this week, I think just one more ticket), but I don't know how it would actually be useful for the client. I've been thinking about what you're looking for, though, and I think it would make more sense to directly integrate filebuckets into a version control system - the client would back modified files up to the server, the server would automagically check those files into a version control repository (into a branch named after the host, I assume), and then you could do whatever comparisons you wanted to your heart's content. I've actually got a basic proof of concept of at least replacing the filebucket store with git done[1]. It's just the client-side pieces, you'd need to add the server-side pieces that created the branch and such, but I don't think that would be a ton of work, and it'd provide everything you want while integrating nicely with how Puppet already backs files up to the server. 1 - http://gist.github.com/77811 -- When one admits that nothing is certain one must, I think, also admit that some things are much more nearly certain than others. -- Bertrand Russell --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---