cohesity.dataprotect.cohesity_oracle_restore (1.1.9) — module

Restore one or more Virtual Machines from Cohesity Protection Jobs

| "added in version" 1.1.9 of cohesity.dataprotect"

Authors: Naveena (@naveena-maplelabs)

Install collection

Install with ansible-galaxy collection install cohesity.dataprotect:==1.1.9


Add to requirements.yml

  collections:
    - name: cohesity.dataprotect
      version: 1.1.9

Description

Ansible Module used to start a Cohesity Recovery Job on a Cohesity Cluster.

When executed in a playbook, the Cohesity Recovery Job will be validated and the appropriate state action

will be applied.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Restore Oracle database.
- name: Restore Oracle database.
  cohesity_oracle_restore:
    source_db: cdb1
    task_name: recover_tasks
    source_server: "192.168.1.1"
    target_server: "192.168.1.1"
    target_db: cdb2
    oracle_home: /u01/app/oracle/product/12.1.0.2/db_1
    oracle_base: /u01/app/oracle
    oracle_data: /u01/app/oracle/product/12.1.0.2/db_1

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Determines if the oracle recovery should be C(present) or C(absent).
    - absent is currently not implemented.
    type: str

cluster:
    aliases:
    - cohesity_server
    description:
    - IP or FQDN for the Cohesity Cluster
    type: str

bct_file:
    default: ''
    description: Yet to be implemented.
    type: str

channels:
    description: Yet to be implemented.
    required: false
    type: str

fra_path:
    default: ''
    description: Fra Path.  Yet to be implemented.
    type: str

log_time:
    default: ''
    description: Log Time. Yet to be implemented.
    type: str

diag_path:
    default: ''
    description: Yet to be implemented.
    type: str

overwrite:
    default: false
    description: Enabling this option will overwrite the database, if already available.
    type: bool

source_db:
    description: Specifies the name of the database which needs to be recovered.
    required: true
    type: str

target_db:
    description:
    - Specifies the name of the target database that will be restored.
    - If the database is not already available new database will be created.
    required: true
    type: str

task_name:
    description: Specifies the restore task name
    type: str

audit_path:
    default: ''
    description: Yet to be implemented.
    type: str

fra_size_mb:
    default: 2048
    description: Specifies the Fra size Mb.
    type: int

no_recovery:
    default: false
    description: No recovery. Yet to be implemented.
    type: bool

oracle_base:
    description: Specifies the oracle base directory.
    required: true
    type: str

oracle_data:
    description: Oracle Data. Yet to be implemented.
    required: true
    type: str

oracle_home:
    description: Specifies the Oracle home directory path.
    required: true
    type: str

control_file:
    default: ''
    description: Yet to be implemented.
    type: str

redo_log_path:
    default: ''
    description: Redo Log Path. Yet to be implemented.
    type: str

source_server:
    description: Specifies the source server name where database is located.
    required: true
    type: str

target_server:
    description: Specifies the oracle server where database is restored.
    required: true
    type: str

clone_app_view:
    default: false
    description: Enabling this option will clone app view.
    type: bool

cohesity_admin:
    aliases:
    - admin_name
    - cohesity_user
    - username
    description:
    - Username with which Ansible will connect to the Cohesity Cluster. Domain Specific
      credentails can be configured in following formats
    - AD.domain.com/username
    - AD.domain.com/username@tenant
    - LOCAL/username@tenant
    type: str

validate_certs:
    aliases:
    - cohesity_validate_certs
    default: true
    description:
    - Switch determines if SSL Validation should be enabled.
    type: bool

cohesity_password:
    aliases:
    - password
    - admin_pass
    description:
    - Password belonging to the selected Username.  This parameter will not be logged.
    type: str