marco
2012-Sep-17 14:54 UTC
[Puppet Users] storeconfigs: are there any benefits giving a client access to the dabase?
A coworker and me are currently trying out puppet (2.7). We enabled storeconfigs on client and server. The client has been given access to the mysql-db that the puppet-master uses for storeconfigs. The client does not have any manifests on its local disk. If we run ''puppet agent'' on this client, it tells us that it is connecting to the database. With my limited understanding of the puppet workflow, I was thinking this database-connection would actually do nothing, but I couldn''t find any documentation to back this. Does the puppetmaster compile a catalog _including_ data from the mysql-db and push it to the client? Or does the puppetmaster just tell the client: fetch _this_ from the database? Is there any benefit from giving the client access to the mysql-db on the puppet-master? Am I missing something that is obvious to everybody but me? Puzzled, Marco -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/UbGf1yhc34QJ. 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.
Nan Liu
2012-Sep-17 17:26 UTC
Re: [Puppet Users] storeconfigs: are there any benefits giving a client access to the dabase?
On Mon, Sep 17, 2012 at 7:54 AM, marco <joedhonny@googlemail.com> wrote:> A coworker and me are currently trying out puppet (2.7). > > We enabled storeconfigs on client and server. > > The client has been given access to the mysql-db that the puppet-master uses > for storeconfigs. > The client does not have any manifests on its local disk. > If we run ''puppet agent'' on this client, it tells us that it is connecting > to the database.Typically, you don''t need to enable this on the agent.> With my limited understanding of the puppet workflow, I was thinking this > database-connection would actually do nothing, but I couldn''t find any > documentation to back this.The main reason to enable stored config option is to take advantage of export/collect resource.> Does the puppetmaster compile a catalog _including_ data from the mysql-db > and push it to the client? > Or does the puppetmaster just tell the client: fetch _this_ from the > database?The information flows in both direction, export resource writes information as the result of the catalog compilation, and collect resource query the database. Since catalog compilation is normally puppet master''s responsibility, the client have no reason to interact with the database directly.> Is there any benefit from giving the client access to the mysql-db on the > puppet-master? > Am I missing something that is obvious to everybody but me?Enabling storeconfigs on the client supports exported/collect resource via puppet apply, but that is a fairly unusual use case. Nan -- 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.
marco
2012-Sep-17 20:03 UTC
Re: [Puppet Users] storeconfigs: are there any benefits giving a client access to the dabase?
Hello Nan, Am Montag, 17. September 2012 19:26:59 UTC+2 schrieb Nan Liu:> > On Mon, Sep 17, 2012 at 7:54 AM, marco <joed...@googlemail.com<javascript:>> > wrote: > > Does the puppetmaster compile a catalog _including_ data from the > mysql-db > > and push it to the client? > > Or does the puppetmaster just tell the client: fetch _this_ from the > > database? > > The information flows in both direction, export resource writes > information as the result of the catalog compilation, and collect > resource query the database. Since catalog compilation is normally > puppet master''s responsibility, the client have no reason to interact > with the database directly. > > > Is there any benefit from giving the client access to the mysql-db on > the > > puppet-master? > > Am I missing something that is obvious to everybody but me? > > Enabling storeconfigs on the client supports exported/collect resource > via puppet apply, but that is a fairly unusual use case. >Thank you for your reply! Just to double-check if I understand this correctly: Enabling the storeconfigs on the client *and* allow it to access the mysql-db is *only* useful if - I distribute my manifest via rsync or git or a puppet file resource. - and run ''puppet apply somemanifest'' by a cronjob on the client? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/HYLQQt-0D58J. 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.
Nan Liu
2012-Sep-17 20:43 UTC
Re: [Puppet Users] storeconfigs: are there any benefits giving a client access to the dabase?
On Mon, Sep 17, 2012 at 1:03 PM, marco <joedhonny@googlemail.com> wrote:> Just to double-check if I understand this correctly: > > Enabling the storeconfigs on the client *and* allow it to access the > mysql-db is *only* useful if > - I distribute my manifest via rsync or git or a puppet file resource. > - and run ''puppet apply somemanifest'' by a cronjob on the client?Yes, and you depend on export/collect resources in the manifests. Nan -- 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.