Ansible playbooks to deploy Opennebula. This playbooks support deployment on CentOS 6.x and KVM as hypervisor.
This inventory includes some roles to configure iptables and to add some necessary inventories. Feel free to integrate this into your own way of doing things.
Currently these playbooks configure a basic Opennebula setup. Things like SSL, LDAP, Gluster etc.. are not yet included.
Edit the hosts file and add your hosts.
Note
|
You need to deploy the management host first because we’ll fetch the SSH keys from this host when the hypervisor nodes get deployed. |
Edit the hosts file. Put the management host under [one-mgmt]
[one-mgmt] 192.168.122.131
Put all your hypervisor hosts under [kvmnodes]
[kvmnodes] 192.168.122.34 listen_addr=eth0
Execute the one_core playbook to deploy the management node including the Sunstone webui.
ansible-playbook -i hosts one_core.yml -u root -k
Next you can deploy the hypervisor nodes
ansible-playbook -i hosts one_kvmnode.yml -u root -k
Note
|
We assume you have libselinux-python installed on all hosts. |