We are excited to announce that you can now use Ansible playbooks to automate repeatable IT tasks (like creating and deleting Virtual Machines, deploying databases and applications) on Oracle Private Cloud Appliance 2.3.1 and Oracle VM 3.4 and newer. Automation is a key requirement for achieving cloud like agility and Ansible is the tool of choice to automate and accelerate provisioning, configuration management and application deployment on remote systems.
Ansible is an open-source IT automation engine that automates provisioning, configuration management, application deployment on remote systems. It is an agentless automation solution that works by executing code blocks called "modules" on remote systems over SSH and uses YAML based "playbooks" to describe automation jobs.Why Ansible?
- Ansible is the de-facto tool for cloud automation and can be used for automating deployments across Oracle PCA, Oracle VM and Oracle ZFSSA.
- It is Agentless, which means it just needs to be installed on a central “Control Machine” and interfaces with the Oracle VM REST API to control deployments on PCA
- It saves time and effort, so reduces OpEx – One of our retail customers saw savings of up to 90% in database deployment times on PCA with Ansible
- Ansible playbook are a lightweight evolution of Oracle VM Templates
Ansible manages configuration and application deployment on the Oracle Private Cloud Applinace by connecting to the REST APIs for Oracle VM Manager (accessible by HTTPS over port 7002 as shown in figure).
Fig: Architecture diagram for Ansible managing Oracle PCA (Oracle VM 3.4)
The setup requires the following components:
- Control Machine: The central machine where Ansible is installed. It is an Oracle Linux 7 system with Ansible package installed from ol7_developer_EPEL yum repository
- Managed Nodes: The remote machines that Ansible communicates with and automates tasks on. PCA Management Node would be the managed node in this case. You must have a PCA 2.3.1 or newer for using this version of the REST APIs
Automating Infrastructure Lifecycle Management on PCA
The first custom Ansible module in a series of planned Infrastructure Lifecycle Management modules is now available for Oracle Private Cloud Appliance and Oracle VM. The Ansible module and accompanying playbooks automate
- Creation of VMs attached to VNICs and disks of desired specifications
- Deletion of an existing VM along with all the attached disks
- Starting and stopping VMs
Step-by-step procedures to execute the module on Oracle Private Cloud Appliance are in this whitepaperResults/Benefits
- Deploy a VM with 2 disks and 2 VNICs in 9 seconds as opposed to ~50 seconds using OVM GUI
- Reduce DB deployment times by 90%
This module can be used in conjunction with playbooks to automate deployment of DBs and applications.
The Ansible module and accompanying playbooks can be downloaded as an RPM from OTN