Gino Lisignoli
2012-Mar-28 03:27 UTC
[Puppet Users] Getting server facts from a mysql server
I''m rather new to puppet and taking over an existing "work in progress" installation of puppet. The problem I have at the moment is that we have a mysql database that contain some facts about our servers (what their ip address are supposed to be, who they relay mail to, etc) and I''m not sure how to access this data from puppet. Is there an easy way to use SQL queries in puppet? -- 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/-/McohI5GTERwJ. 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.
Jan Ivar Beddari
2012-Mar-28 06:50 UTC
Re: [Puppet Users] Getting server facts from a mysql server
On 28. mars 2012 05:27, Gino Lisignoli wrote:> I''m rather new to puppet and taking over an existing "work in progress" > installation of puppet. > > The problem I have at the moment is that we have a mysql database that > contain some facts about our servers (what their ip address are supposed > to be, who they relay mail to, etc) and I''m not sure how to access this > data from puppet. Is there an easy way to use SQL queries in puppet?There''s a couple of ways but none that works out-of-the-box (does Puppet come with a box?). If this was me I''d look at Hiera and this code https://github.com/crayfishx/hiera-mysql and see if I could make it fit. However, it depends. At this stage it will most likely take a while to learn Hiera and how to design around it. -- http://www.uib.no/personer/Jan.Ivar.Beddari -- 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.