Azure support

116 views
Skip to first unread message

Martin Jöhren

unread,
May 22, 2014, 10:09:26 AM5/22/14
to ansible...@googlegroups.com
Hi,

I just wanted to know whether an azure module is planned or in work? Anybody knows that?

Best
Martin

James Cammarata

unread,
May 22, 2014, 10:17:41 AM5/22/14
to ansible...@googlegroups.com
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!


Martin

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5f47b103-621e-48f5-b2d3-bfb433248a52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Jöhren

unread,
May 22, 2014, 10:30:45 AM5/22/14
to ansible...@googlegroups.com
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

James Cammarata

unread,
May 22, 2014, 11:47:24 AM5/22/14
to ansible...@googlegroups.com
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.


Martin

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Michael DeHaan

unread,
May 23, 2014, 8:24:21 AM5/23/14
to ansible...@googlegroups.com
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!




Martin Jöhren

unread,
May 24, 2014, 3:51:20 AM5/24/14
to ansible...@googlegroups.com
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

James Cammarata

unread,
May 24, 2014, 7:23:25 AM5/24/14
to ansible...@googlegroups.com
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.


Martin Jöhren

unread,
May 24, 2014, 8:06:33 AM5/24/14
to ansible...@googlegroups.com

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

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/WBLXEUBZl4I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.

James Cammarata

unread,
May 24, 2014, 9:25:49 AM5/24/14
to ansible...@googlegroups.com

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.

Michael DeHaan

unread,
May 25, 2014, 4:54:43 PM5/25/14
to ansible...@googlegroups.com
Hi folks,

As this is a development topic, let's move this thread over to ansible-devel.

Thanks!


James Cammarata

unread,
May 30, 2014, 9:26:08 AM5/30/14
to ansible...@googlegroups.com
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!


Martin

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Martin Jöhren

unread,
May 30, 2014, 10:02:54 AM5/30/14
to ansible...@googlegroups.com

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. :)

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/WBLXEUBZl4I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages