Ansible <https://www.ansible.com/>
_ is a radically simple IT automation engine that automates cloud provisioning, configuration management, application deployment, intra-service orchestration, and many other IT needs.
How Ansible Works | Ansible.com <https://www.ansible.com/overview/how-ansible-works>
_
Getting started with Ansible <https://www.linode.com/docs/applications/configuration-management/getting-started-with-ansible/>
_
Getting started with playbooks <https://www.digitalocean.com/community/tutorials/configuration-management-101-writing-ansible-playbooks>
_
Ansible Commvault module can be used in playbooks to automate commvault operations
Commvault module uses CVPySDK <https://github.com/CommvaultEngg/cvpysdk>
_ to perform operations
All agents supported by CVPySDK are supported by commvault ansible module
CVPySDK, in turn, uses Commvault REST API to perform operations on a Commcell via WebConsole.
CVPySDK <https://github.com/CommvaultEngg/cvpysdk>
_CVPySDK can be installed directly from PyPI using pip:
>>> pip install cvpysdk
CVPySDK is available on GitHub here <https://github.com/CommvaultEngg/cvpysdk>
_
It can also be installed from source.
After downloading, from within the cvpysdk
directory, execute:
>>> python setup.py install
Installation guide | Ansible.com <https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html>
_Login to Commcell: ::
name: Commvault Ansible gather_facts: no hosts: localhost connection: local
vars: webconsole_hostname: 'webconsole_hostname' commcell_username: 'commcell_username' commcell_password: 'commcell_password'
tasks:
Force HTTPS login using self-signed certificate ::
Run backup for a subclient: ::
Run restore in place job for a subclient: ::
Wait for the restore job to complete: ::
Get storage pool properties: ::
operation corresponds to a method name in CVPySDK modules, example "restore_in_place" method is in subclient.py module
entity_type corresponds to baisc CVPySDK class, available options are
commcell is mandatory to perform any tasks, when performing login operation commcell is registered and can later be used in other tasks
entity will contain basic CVPySDK inputs, available options are
args contains the arguments to be passed to the method
Ansible commvault module
codebase.Coding Considerations
If you have any questions or comments, please contact us here <https://ma.commvault.com/>
.
Also Check out our community for Automation <https://community.commvault.com/developer-tools-integration-and-automation-workflow-rest-powershell-etc-50>
incase of queries.
Code of Conduct
Everyone interacting in the Ansible commvault module project's codebases, issue trackers,
chat rooms, and mailing lists is expected to follow the
PyPA Code of Conduct
_.
.. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/
CVPySDK and Commvault ansible module are licensed under Apache 2.0 <https://raw.githubusercontent.com/CommvaultEngg/cvpysdk/master/LICENSE.txt>
_
.. image:: https://commvault.github.io/cvpysdk/logo.png :align: center
|
Commvault <https://www.commvault.com/>
_
(NASDAQ: CVLT) is a publicly-traded data protection and information management software company headquartered in Tinton Falls, New Jersey.
It was formed in 1988 as a development group in Bell Labs, and later became a business unit of AT&T Network Systems. It was incorporated in 1996.
Commvault software assists organizations with data backup and recovery, cloud and infrastructure management, and retention and compliance.