On 11/22/2014 04:33 AM, Abhijeet Rastogi wrote: > Hi everyone, > > I've this unique requirement where I have to manage "rows" in a > database using puppet. Well, these rows actually represent "dns > entries". (I'm using powerdns witih mysql > http://doc.powerdns.com/html/generic-mypgsql-backends.html ). > > What do you guys thing is the right way to approach this? Below are > the couple of things I can think of:- > > 1. First write various command line scripts like show_rows, add_rows & > delete_rows. And then call "exec" with conditionals to alter these > rows. > 2. Write a custom type/resource which connects to mysql instance and > does it's job. > > Although, second option is the most optimal way to do, it also > requires more man hours. I would be happy to choose something that's > already built and tested. Any ideas? > >
Yes, option 1 is likely more economic. Perhaps you can start from this: http://serverfault.com/a/560568/216487 HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/547102A2.7010301%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/d/optout.