OneProvision Installation

All functionality is distributed as an optional operating system package opennebula-provision, which must be installed on your frontend alongside with the server packages.

Important

The tool requires Ansible to be installed on the same host(s) as well. There is no automatic dependency which would install Ansible automatically; you have to manage the installation of the required Ansible version on your own.

Supported versions: Ansible 2.5.x or 2.6.x. Note that the Ansible packages in CentOS 7+ and Debian 10+ are too new, and Ubuntu 16.04’s is too old.

Step 1. Tools

Installation of the tools is as easy as the installation of any operating system package. Choose from the sections below based on your operating system. You also need to have installed the OpenNebula front-end packages.

CentOS/RHEL 7

sudo yum install opennebula-provision

Debian/Ubuntu

sudo apt-get install opennebula-provision

Step 2. Ansible

It’s necessary to have Ansible installed. You can use a distribution package if there is a suitable version. Otherwise, you can install the required version via pip the following way:

CentOS/RHEL 7

sudo yum install python-pip

Debian/Ubuntu

sudo apt-get install python-pip

and, then install Ansible:

sudo pip install 'ansible>=2.5.0,<2.7.0'

Check that Ansible is installed properly:

ansible --version
ansible 2.5.3
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]