tung dang
2008-Jun-09 02:45 UTC
[Puppet Users] How to upload files from client to server ?
Hi all, Have you ever written a module or function to upload files from client to server? I want to upload some files to server after puppet-client implement the configuration. I intend defining a new type, that''s based on the filebucket type to do that But it''s seemly quite difficult, because i don''t understand about the puppet''s system Do you have any idea or suggest for me the way to upload file to server? Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Jun-09 16:53 UTC
[Puppet Users] Re: How to upload files from client to server ?
On Sun, Jun 8, 2008 at 9:45 PM, tung dang <danghuutung@gmail.com> wrote:> Hi all, > Have you ever written a module or function to upload files from client to > server? > I want to upload some files to server after puppet-client implement the > configuration. > I intend defining a new type, that''s based on the filebucket type to do that > But it''s seemly quite difficult, because i don''t understand about the > puppet''s system > Do you have any idea or suggest for me the way to upload file to server? > > Thanks in advance >Can you explain a bit better what you are trying to achieve? Why are you needing to copy files back to teh server after they get manipulated by the client? Using exported resources might be better. Evan --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
tung dang
2008-Jun-10 01:43 UTC
[Puppet Users] Re: How to upload files from client to server ?
Thanks for your answer, I want to manage configuration status of clients. The manifests is divided into many tags, and the server want to know what tags client has implemented. Now i recorded the configuration status of client into text file on the client, and i want to upload it to the server. Can you explain more clearly about exported resources? Thanks you very much --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Jun-10 15:58 UTC
[Puppet Users] Re: How to upload files from client to server ?
On Mon, Jun 9, 2008 at 8:43 PM, tung dang <danghuutung@gmail.com> wrote:> Thanks for your answer, > I want to manage configuration status of clients. The manifests is divided > into many tags, and the server want to know what tags client has > implemented. Now i recorded the configuration status of client into text > file on the client, and i want to upload it to the server. > Can you explain more clearly about exported resources? >Your puppet node manifests already tell the server what resources the client is going to have installed, including tags. Your client configuration information should be stored on the server not on the clients using manifests or and external node source like LDAP. As I understand your description, you currently have puppet manifests for configuring your clients, that after the client is configured by puppet puppet writes out a list of tags to a file. You want to copy this tag file back up to the server. Am I understanding this right? Evan --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
tung dang
2008-Jun-11 02:42 UTC
[Puppet Users] Re: How to upload files from client to server ?
On Tue, Jun 10, 2008 at 10:58 PM, Evan Hisey <ehisey@gmail.com> wrote:> > As I understand your description, you currently have puppet manifests > for configuring your clients, that after the client is configured by > puppet puppet writes out a list of tags to a file. You want to copy > this tag file back up to the server. Am I understanding this right? >Yes, you are right> > Your puppet node manifests already tell the server what resources the > client is going to have installed, including tags. Your client > configuration information should be stored on the server not on the > clients using manifests or and external node source like LDAP. > > Yes, with report function, server can know what resource the clientimplemented. But it includes too many information, and doesn''t have the format, that i want. Actually, i don''t want to store configuration information on the client, the final purpose is storing on the server, but i can''t do like that. I have done as the following description: *class a { log_information("a") #Do something } * *class b { log_information("b") #Do something } node default { include a include b } * log_information() is used to log information on the server. If i run client with --tags a, it will log both informaions from class a and class b. As i understand when client communicates with server, it will download all manifests (all tags), so it logs all informations from class a and class b. Am i understanding right ? I can''t do like above, so i must to use the other way, log information on the client and upload file to server. But now i meet problem with uploading. Can you suggest for me the best way, and how can i do that ? Thanks for your help --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---