Hi,
I just wanted to know whether an azure module is planned or in work? Anybody knows that?
Best
Martin
Hi,
I just wanted to know whether an azure module is planned or in work? Anybody knows that?
Best
Martin
I have not heard anything regarding one, but we’re always open to new contributions. It does appear the Microsoft has a python API library on PyPI: https://pypi.python.org/pypi/azure/0.8.0 which is Apache-licensed, so using that should be no problem. Let us know if you or anyone else is interested in writing this, and if you have any questions.
Thanks!
K, thanks for the info. I'll look into that. Good starting point would be to do it similar like the aws modules right?
Best regards
Martin
Yes, the AWS/EC2 modules are pretty well used and break the functionality of different parts of their offering into manageable chunks. Definitely don’t try to cram every feature Azure supports into a single module. The aws and rax modules also make a good use of the code-reuse functionality we offer, to remove a lot of boilerplate code like authentication, etc.
We’re very open to pull requests.
I have been approached by some folks interested in working on them. Details still TBD.
If this is something you’d like to work on, please do!
Hi,
I just started a small not useful module here (it’s just for learning how things work): https://github.com/matlockx/ansible/commit/f0eb61e2f3dc938c8d4e77639f20b9f1c39e2fe2
Let me know if i’m on the right track since i’m not really a python dev and used to be an ansible user only.
When it’s ok i start implementing starting and stopping instances.
Best
Martin
You might want to remove the common_argument_spec() function from your class, as it doesn’t really need to be there but beyond that it looks like a good starting point.
Hi,
Thanks for the quick answer. One last question: where to better put the common_argument_spec? Or do you mean just somewhere else but not in this class?
Thx
Yes, just move it out of the class but keep it in that module. That’s the way the other shared code modules like ec2 work.
Hi folks,
As this is a development topic, let’s move this thread over to ansible-devel.
Thanks!
It looks like we’ve received another contribution for this: https://github.com/ansible/ansible/pull/7593
This has not yet been merged in, but you may want to look at it and see if it meets your needs. If you’ve gotten pretty far in developing your version, you may also want to compare them to see if yours covers any areas that this one does not, and either move that functionality into the one above if/when it is merged or submit a competing version.
As Michael requested, any further discussion on this topic should now be moved to ansible-devel.
Thanks!
Moved to ansible devel with same name.
Thanks for the info. I left a comment at the pull request cause I’m also right before a pull request.