Deploy VMs using Ansible
@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.
desnudopenguino last edited by
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.
jthompson333 last edited by
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.
cmuzyunda last edited by
Great news , i will test your module in our DR environment and will provide any feedbacks (good or bad ) , please bear with me .....
jedimarcus last edited by
@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?
@jedimarcus Network configuration (IP, subnet, gateway) only works for Windows guests because there is proper support for it in XenServer Guest Tools for Windows. There is no such support (as far as I know) in XenServer Guest Tools for *nix based systems. Unlike tools for Windows, tools for *nix based systems only contain a few xenstore tools and a daemon (xe-daemon) that collects OS metrics. There is no management agent.
My idea is to write a proper agent for *nix based systems at some point but it won't be any time soon. Maybe Citrix (or Vates ?) will implement one before I do.
For now, you can use custom based network configuration trough xenstore and custom scripts. It's described in Notes section of the module documentation.