Spacefish / powerdns-webinterface

Automatically exported from code.google.com/p/powerdns-webinterface
Apache License 2.0
10 stars 4 forks source link

Wishlist: simple integration with for mass creation of domains or migration #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have either functions ready to be integrated into existing 
platforms or to be used with simple wrappers to create command line management 
with the same functionality and according to the same rules that exist in the 
web interface.

examples; add domain based on template X ; reset user password to Y; add record 
a ttt.xxx 1.1.1.1 ...etc ; delete domain; delete record ...etc.

it would be useful only if it does not depend on numeric IDs of the entries in 
the database; thus the functions can be sets and gets where one would be able 
to build scripts for automation around it.

Original issue reported on code.google.com by maysara....@gmail.com on 30 Sep 2011 at 4:06

GoogleCodeExporter commented 9 years ago
thats also a good idea for automated setups.
i agree that it should not have numeric ids inside cli commands. i thought one 
could modify the database directly if he wants automation, but if the interface 
could manage many dns servers at once and so on, it would make sense to have a 
nice cli tool.

For this to happen, a littlebit of rework has to be done.. the application 
logic for the different "actions" has to be packed into extra classes which 
could then be called by the cli tool aswell as the webinterface.. Currently 
there is a class for each Page which has the different actions in separate 
function, so it would be some copy past of these function into a new class and 
write a wrapper inside the Page classes. I will make a new ticket for this!

Original comment by timo.witte on 30 Sep 2011 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by timo.witte on 30 Sep 2011 at 6:58