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?
--
Cheers,
Abhijeet Rastogi (shadyabhi)