Please, describe the problem here and provide additional information below (if applicable) …
Use ansible to provision vms in Opennebula
Versions of the related components and OS (frontend, hypervisors, VMs):
The vms will be Centos 7.2
Have you already seen this to get started?
(EDIT: slides!) https://www.slideshare.net/opennebula/opennebulaconf2017us-configuration-management-with-opennebula-and-ansible-by-jaime-melis-opennebula
basically, you’re asking “how to provision servers with ansible” - when they are deployed, opennebula is out of the equation.
Opennebula just deploys them, with a ansible user and ssh key if you want (defined in context), and the provisioning part is done with the playbooks you define using ansible. If you get opennebula to deploy a VM with the ansible user and key, all you need to do is apply your playbooks
hope this helps!
“If you get opennebula to deploy a VM with the ansible user and key, all you need to do is apply your playbooks” - such approach is limited, compared to existing ansible modules for actual deployments of VMs on AWS http://docs.ansible.com/ansible/latest/guide_aws.html and saltstack opennebula module https://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.opennebula.html (mentioned in https://forum.opennebula.io/t/automate-vm-creation-with-configurations-with-a-click-of-a-button/)
When recording talks in the future please make sure the slides are readable.
is anyone used ansible to provision vm’s in opennebula?
Ansible 2.6 is having opennebula module, but I am not sure how to use it.
where to provide opennebula details like, username, password, url etc… please help.
Thanks… I am able to do it now…
requirement “python-oca” is supposed to be installed on opennebula host