I am adding the Hetzner (www.hetzner.de) compute api. They rent out dedicated hardware which can be configured and rebooted via an api.
I have the basic setup working, I can see my servers, reboot them, get the available images. I could really use a couple of hints on how to proceed to get this more in line with the fog standards (although I tried following them) the current changes: https://github.com/ahmeij/fog/compare/hetzner
Also a question, in a lot of implementations there is a method 'setup' on the server model, which seems to be a duplicate for most of them, should this method be moved to the core/server model? (I can make the change in another feature branch if needed)
@ahmeij - Seems like a good start, though we will want to flesh out some tests before we get this merged in. Nothing jumped out at me as being too far off, but there may be some subtle differences. Did you have particular questions?
Moving setup to core/server could make a lot of sense, but we should be careful as I think there may be some small/subtle differences from one provider to another in this realm.
Thanks @geemus, I planned to add some specific questions but other work took my attention. My questions:
Any pointers to good reference implementations or some documentation would be helpful, currently a lack of understanding is blocking my progress :)
@ahmeij - sure thing, hopefully I can clear things up.
Would be great to see this released!
I have taken all my hetzner instances into production, limiting my options of testing this code. I'll see if I can add the required tests anyway, testing based on the mocks should give a good start.
I hope to get this done this week
@ahmeij - thanks for the update, just let me know if you have any questions along the way.
Closing as this hasn't been touched in a year. If this was closed in error or is still an issue, please re-open. Thanks!