Deploy VMs using Ansible
-
Cool, will look at this if I find some time somehow...
-
Would be interesting to have an Ansible module for XO, because you also have an API, but this one it's connected to all your pool master. So it's an idea central point
-
@olivierlambert First thing first
-
So did anyone have a chance to test the module? I need some feedback (good, bad, anything...) if module is to be included as an official Ansible module. Lack of external testers is currently a show stopper .
-
Up-ing this topic in case it helps finding testers.
-
Thanks stormi. Still no testers thou. I found one critical bug that effectively prevents deployment . Reconfiguration of existing VMs works as expected . I have prepared a commit to fix a bunch of bugs I found in the mean time but I haven't pushed it to GitHub repo yet. To lazy I guess . If someone is eager to test, I'll push it right away.
-
Hi everyone. For anyone interested in testing, GitHub repo is now updated with latest commit that includes fixes for a number of bugs including a bug that effectively prevented deployment of new VMs. Also, the module is now based on the latest Ansible 2.8 devel code base.
As always, any testing feedback would be very much appreciated, good or bad.
-
@bvitnik
I cant do any testing yet tho my internet is not connected until oct 31..
But I will see what I can help with later on -
@Adde just wondered how you sent these letters to the forum ... magic ... without the internetzzz...
-
@borzel Shhhh....Not so loud,,, my boss can hear u
Kidding....lol sitting at work, there I have internet
-
I am running XCP-NG vn 7.6 on two HP Proliant 380G5s and would love to help develop. I'll get it going and let you know how it goes. My machines don't run anything that is mission critical so if something breaks - it's all good. I don't check forums very often so if you want to communicate directly I can be reached at bitsprocket at g mail dot com
-
@BitSprocket Hi. Thanks for stopping by. Info in the first post is a little outdated. I'll update it soon. The main thing is that my Ansible module for deployment of VMs is now merged in upstream Ansible so you should just get development version of Ansible to get access to my module. Feel free to ask me anything here. I'll be glad to help you get it up and running.
UPDATE: I've updated the first post with fresh info.
-
I just set up xcp-ng on a host, in the next week or so, i might give this a try! thank you for putting together this module!
-
@desnudopenguino Thanks .
I've updated the first post with some more info and clarified some confusing stuff.
-
I hate to be one of those double posters... Forgive me, as I have not been following the whole split of xenserver opensource vs. closed source. Just not sure which forum gets checked more often these days.
I was testing out this ansible module with XenServer 7.1 CU2 and running into some errors.
Posted about it here: -
@jthompson333 No problem. I'm following both forums so I'll try to respond same day.
-
First post has been updated with new info. Another module has been merged upstream. Also some bugs were fixed.
-
A milestone has been achieved . All of my modules have been merged upstream. I've updated the first post with new info.
That will most probably be all for Ansible 2.8. I'm keeping some improvements and possibly more modules for Ansible 2.9. Currently, I'm thinking about what other modules could be useful so I could implement them. Any suggestion or wish would be much appreciated.
-
Great news , i will test your module in our DR environment and will provide any feedbacks (good or bad ) , please bear with me .....
-
@bvitnik I can confirm the most simple of tasks where I used your module to create a new VM based on an existing template.
I'm still figuring out how to use this best.
Does setting an IP work on any template (e.g. Linux Ubuntu) with XenTools installed?
MM